Home
last modified time | relevance | path

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

/dragonfly/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()
269 if (magic_int == NSEC_TCPDUMP_MAGIC) { in pcap_check_header()
[all …]
H A Dsf-pcapng.c772 bpf_u_int32 magic_int; in pcap_ng_check_header() local
794 memcpy(&magic_int, magic, sizeof(magic_int)); in pcap_ng_check_header()
795 if (magic_int != BT_SHB) { in pcap_ng_check_header()
946 bhdrp->block_type = magic_int; in pcap_ng_check_header()
950 (u_char *)p->buffer + (sizeof(magic_int) + sizeof(total_length) + sizeof(byte_order_magic)), in pcap_ng_check_header()
951 total_length - (sizeof(magic_int) + sizeof(total_length) + sizeof(byte_order_magic)), in pcap_ng_check_header()