28 #ifndef _RTXPCAPFILE_H_ 29 #define _RTXPCAPFILE_H_ 33 typedef struct pcap_hdr_s {
34 OSOCTET magic_number[4];
35 OSUINT16 version_major;
36 OSUINT16 version_minor;
43 typedef struct pcaprec_hdr_s {
50 typedef struct ether_header_s {
51 OSUINT8 ether_dhost[6];
52 OSUINT8 ether_shost[6];
71 (
OSCTXT* pctxt, pcap_hdr_t* pPcapHdr, OSBOOL* pswapped);
84 (
OSCTXT* pctxt, pcaprec_hdr_t* pPcapRecHdr, OSBOOL swapped);
97 (
OSCTXT* pctxt, ether_header_t* pEtherHdr, OSBOOL swapped);
EXTERNRT int rtxDecEtherHdr(OSCTXT *pctxt, ether_header_t *pEtherHdr, OSBOOL swapped)
This function decodes an Ethernet header structure.
Common run-time context definitions.
EXTERNRT void rtxPrintPcapRecHdr(const pcaprec_hdr_t *pPcapRecHdr)
This function prints the contents of a PCAP record header structure to stdout.
EXTERNRT void rtxPrintPcapHdr(const pcap_hdr_t *pPcapHdr)
This function prints the contents of a PCAP global header structure to stdout.
EXTERNRT int rtxDecPcapHdr(OSCTXT *pctxt, pcap_hdr_t *pPcapHdr, OSBOOL *pswapped)
This function decodes a PCAP global header structure.
Run-time context structure.
EXTERNRT int rtxDecPcapRecHdr(OSCTXT *pctxt, pcaprec_hdr_t *pPcapRecHdr, OSBOOL swapped)
This function decodes a PCAP record header structure.