Home
last modified time | relevance | path

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

/freebsd/contrib/libpcap/
H A Dsf-pcap.c222 bpf_u_int32 magic_int; in pcap_check_header() local
239 memcpy(&magic_int, magic, sizeof(magic_int)); in pcap_check_header()
240 if (magic_int != TCPDUMP_MAGIC && in pcap_check_header()
241 magic_int != KUZNETZOV_TCPDUMP_MAGIC && in pcap_check_header()
242 magic_int != NSEC_TCPDUMP_MAGIC) { in pcap_check_header()
243 magic_int = SWAPLONG(magic_int); in pcap_check_header()
244 if (magic_int != TCPDUMP_MAGIC && in pcap_check_header()
245 magic_int != KUZNETZOV_TCPDUMP_MAGIC && in pcap_check_header()
246 magic_int != NSEC_TCPDUMP_MAGIC) in pcap_check_header()
255 hdr.magic = magic_int; in pcap_check_header()
[all …]
H A Dsf-pcapng.c771 bpf_u_int32 magic_int; in pcap_ng_check_header() local
793 memcpy(&magic_int, magic, sizeof(magic_int)); in pcap_ng_check_header()
794 if (magic_int != BT_SHB) { in pcap_ng_check_header()
945 bhdrp->block_type = magic_int; in pcap_ng_check_header()
949 (u_char *)p->buffer + (sizeof(magic_int) + sizeof(total_length) + sizeof(byte_order_magic)), in pcap_ng_check_header()
950 total_length - (sizeof(magic_int) + sizeof(total_length) + sizeof(byte_order_magic)), in pcap_ng_check_header()