Skip to content

herrin/ipstructs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

C struct overlay for IPv4 and IPv6 packet headers.

Conveniently access fields within the headers instead of using a bunch of
macros.


#include "addresses.h"

struct *ipv4_header *h;

h = (struct ipv4_header *) ipv4_packet;
if (h->dont_fragment) printf("Don't fragment bit set!\n");


About

Bitwise access to IPv4 headers in C

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published