-
-
Notifications
You must be signed in to change notification settings - Fork 176
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tests: make decode work without libcheck
- Loading branch information
1 parent
29203ab
commit 837d5d1
Showing
4 changed files
with
48 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
#ifndef _PCAP_HDR_H | ||
#define _PCAP_HDR_H | ||
|
||
#include <stdint.h> | ||
|
||
/* See: | ||
* http://wiki.wireshark.org/Development/LibpcapFileFormat | ||
*/ | ||
struct pcap_hdr { | ||
uint32_t magic_number; /* magic number */ | ||
uint16_t version_major; /* major version number */ | ||
uint16_t version_minor; /* minor version number */ | ||
uint32_t thiszone; /* GMT to local correction */ | ||
uint32_t sigfigs; /* accuracy of timestamps */ | ||
uint32_t snaplen; /* max length of captured packets, in octets */ | ||
uint32_t network; /* data link type */ | ||
}; | ||
struct pcaprec_hdr { | ||
uint32_t ts_sec; /* timestamp seconds */ | ||
uint32_t ts_usec; /* timestamp microseconds */ | ||
uint32_t incl_len; /* number of octets of packet saved in file */ | ||
uint32_t orig_len; /* actual length of packet */ | ||
}; | ||
|
||
#endif |