libpcap
1.10.1
About: libpcap is a packet filter library used by tools like tcpdump.
![]() ![]() |
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) |
#define SWAPLONG | ( | y | ) |
Definition at line 37 of file pcap-common.h.
#define SWAPSHORT | ( | y | ) |
Definition at line 42 of file pcap-common.h.
int dlt_to_linktype | ( | int | dlt | ) |
Definition at line 1271 of file pcap-common.c.
References linktype_map::dlt, DLT_MATCHING_MAX, DLT_MATCHING_MIN, DLT_PFSYNC, DLT_PKTAP, LINKTYPE_PFSYNC, LINKTYPE_PKTAP, and map.
Referenced by pcap_dump_fopen(), pcap_dump_open(), and pcap_dump_open_append().
int linktype_to_dlt | ( | int | linktype | ) |
Definition at line 1311 of file pcap-common.c.
References DLT_PFSYNC, DLT_PKTAP, linktype_map::linktype, LINKTYPE_ATM_CLIP, LINKTYPE_MATCHING_MAX, LINKTYPE_MATCHING_MIN, LINKTYPE_PFSYNC, LINKTYPE_PKTAP, and map.
Referenced by pcap_check_header(), and pcap_ng_check_header().
u_int max_snaplen_for_dlt | ( | int | dlt | ) |
Definition at line 1377 of file pcap-common.c.
References DLT_DBUS, DLT_EBHSCR, DLT_USBPCAP, and MAXIMUM_SNAPLEN.
Referenced by pcap_adjust_snapshot(), pcap_next_packet(), and pcap_ng_check_header().
void swap_pseudo_headers | ( | int | linktype, |
struct pcap_pkthdr * | hdr, | ||
u_char * | data | ||
) |
Definition at line 1651 of file pcap-common.c.
References DLT_LINUX_SLL, DLT_NFLOG, DLT_USB_LINUX, DLT_USB_LINUX_MMAPPED, swap_linux_sll_header(), swap_linux_usb_header(), and swap_nflog_header().
Referenced by pcap_next_packet(), and pcap_ng_next_packet().