libpcap  1.10.1
About: libpcap is a packet filter library used by tools like tcpdump.
  Fossies Dox: libpcap-1.10.1.tar.gz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

pcap-common.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define SWAPLONG(y)
 
#define SWAPSHORT(y)
 

Functions

int dlt_to_linktype (int dlt)
 
int linktype_to_dlt (int linktype)
 
void swap_pseudo_headers (int linktype, struct pcap_pkthdr *hdr, u_char *data)
 
u_int max_snaplen_for_dlt (int dlt)
 

Macro Definition Documentation

◆ SWAPLONG

#define SWAPLONG (   y)
Value:
(((((u_int)(y))&0xff)<<24) | \
((((u_int)(y))&0xff00)<<8) | \
((((u_int)(y))&0xff0000)>>8) | \
((((u_int)(y))>>24)&0xff))

Definition at line 37 of file pcap-common.h.

◆ SWAPSHORT

#define SWAPSHORT (   y)
Value:
((u_short)(((((u_int)(y))&0xff)<<8) | \
((((u_int)(y))&0xff00)>>8)))

Definition at line 42 of file pcap-common.h.

Function Documentation

◆ dlt_to_linktype()

int dlt_to_linktype ( int  dlt)

◆ linktype_to_dlt()

◆ max_snaplen_for_dlt()

u_int max_snaplen_for_dlt ( int  dlt)

◆ swap_pseudo_headers()

void swap_pseudo_headers ( int  linktype,
struct pcap_pkthdr hdr,
u_char *  data 
)