Skip to content

Instantly share code, notes, and snippets.

@run
Created September 21, 2015 03:05
Show Gist options
  • Save run/85ce5605e70e01f04292 to your computer and use it in GitHub Desktop.
Save run/85ce5605e70e01f04292 to your computer and use it in GitHub Desktop.
typedef struct pcap_hdr_s {
guint32 magic_number; /* magic number */
guint16 version_major; /* major version number */
guint16 version_minor; /* minor version number */
gint32 thiszone; /* GMT to local correction */
guint32 sigfigs; /* accuracy of timestamps */
guint32 snaplen; /* max length of captured packets, in octets */
guint32 network; /* data link type */
} pcap_hdr_t;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment