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.c161 bpf_u_int32 magic_int; in pcap_check_header() local
178 memcpy(&magic_int, magic, sizeof(magic_int)); in pcap_check_header()
179 if (magic_int != TCPDUMP_MAGIC && in pcap_check_header()
180 magic_int != KUZNETZOV_TCPDUMP_MAGIC && in pcap_check_header()
181 magic_int != NSEC_TCPDUMP_MAGIC) { in pcap_check_header()
182 magic_int = SWAPLONG(magic_int); in pcap_check_header()
183 if (magic_int != TCPDUMP_MAGIC && in pcap_check_header()
185 magic_int != NSEC_TCPDUMP_MAGIC) in pcap_check_header()
194 hdr.magic = magic_int; in pcap_check_header()
274 if (magic_int == NSEC_TCPDUMP_MAGIC) { in pcap_check_header()
[all …]
H A Dsf-pcapng.c773 bpf_u_int32 magic_int; in pcap_ng_check_header() local
795 memcpy(&magic_int, magic, sizeof(magic_int)); in pcap_ng_check_header()
796 if (magic_int != BT_SHB) { in pcap_ng_check_header()
947 bhdrp->block_type = magic_int; in pcap_ng_check_header()
951 (u_char *)p->buffer + (sizeof(magic_int) + sizeof(total_length) + sizeof(byte_order_magic)), in pcap_ng_check_header()
952 total_length - (sizeof(magic_int) + sizeof(total_length) + sizeof(byte_order_magic)), in pcap_ng_check_header()