Home
last modified time | relevance | path

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

/external/libpcap/
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()
179 magic_int != KUZNETZOV_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()
[all …]
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()