Skip to content

Instantly share code, notes, and snippets.

@silv3rm00n
Created December 10, 2011 06:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save silv3rm00n/1454686 to your computer and use it in GitHub Desktop.
Save silv3rm00n/1454686 to your computer and use it in GitHub Desktop.
typedef struct pseudo_header //needed for checksum calculation
{
unsigned int source_address;
unsigned int dest_address;
unsigned char placeholder;
unsigned char protocol;
unsigned short tcp_length;
struct tcphdr tcp;
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment