Home
last modified time | relevance | path

Searched refs:magic_int (Results 1 – 2 of 2) sorted by relevance

/freebsd-13.1/contrib/libpcap/
H A Dsf-pcap.c156 bpf_u_int32 magic_int; in pcap_check_header() local
173 memcpy(&magic_int, magic, sizeof(magic_int)); in pcap_check_header()
174 if (magic_int != TCPDUMP_MAGIC && in pcap_check_header()
175 magic_int != KUZNETZOV_TCPDUMP_MAGIC && in pcap_check_header()
176 magic_int != NSEC_TCPDUMP_MAGIC) { in pcap_check_header()
177 magic_int = SWAPLONG(magic_int); in pcap_check_header()
178 if (magic_int != TCPDUMP_MAGIC && in pcap_check_header()
180 magic_int != NSEC_TCPDUMP_MAGIC) in pcap_check_header()
189 hdr.magic = magic_int; in pcap_check_header()
270 if (magic_int == NSEC_TCPDUMP_MAGIC) { in pcap_check_header()
[all …]
H A Dsf-pcapng.c767 bpf_u_int32 magic_int; in pcap_ng_check_header() local
789 memcpy(&magic_int, magic, sizeof(magic_int)); in pcap_ng_check_header()
790 if (magic_int != BT_SHB) { in pcap_ng_check_header()
941 bhdrp->block_type = magic_int; in pcap_ng_check_header()
945 (u_char *)p->buffer + (sizeof(magic_int) + sizeof(total_length) + sizeof(byte_order_magic)), in pcap_ng_check_header()
946 total_length - (sizeof(magic_int) + sizeof(total_length) + sizeof(byte_order_magic)), in pcap_ng_check_header()