libpcap
1.10.1
About: libpcap is a packet filter library used by tools like tcpdump.
![]() ![]() |
Go to the source code of this file.
Functions | |
pcap_t * | pcap_ng_check_header (const uint8_t *magic, FILE *fp, u_int precision, char *errbuf, int *err) |
pcap_t* pcap_ng_check_header | ( | const uint8_t * | magic, |
FILE * | fp, | ||
u_int | precision, | ||
char * | errbuf, | ||
int * | err | ||
) |
Definition at line 769 of file sf-pcapng.c.
References add_interface(), block_header::block_type, block_cursor::block_type, BT_EPB, BT_IDB, BT_PB, BT_SHB, BT_SHB_INSANE_MAX, BT_SPB, pcap::buffer, pcap::bufsize, section_header_block::byte_order_magic, BYTE_ORDER_MAGIC, pcap::cleanup_op, errno, get_from_block_data(), pcap_ng_sf::ifaces, INITIAL_MAX_BLOCKSIZE, pcap::linktype, interface_description_block::linktype, pcap::linktype_ext, linktype_to_dlt(), section_header_block::major_version, pcap_ng_sf::max_blocksize, MAX_BLOCKSIZE_FOR_SNAPLEN, max_snaplen_for_dlt(), section_header_block::minor_version, pcap::next_packet_op, pcap::opt, pcap_adjust_snapshot(), PCAP_ERRBUF_SIZE, pcap_fmt_errmsg_for_errno(), pcap_ng_cleanup(), pcap_ng_next_packet(), PCAP_NG_VERSION_MAJOR, PCAP_NG_VERSION_MINOR, PCAP_OPEN_OFFLINE_COMMON, PCAP_TSTAMP_PRECISION_MICRO, PCAP_TSTAMP_PRECISION_NANO, pcap::priv, read_block(), read_bytes(), interface_description_block::snaplen, pcap::snapshot, snprintf(), SWAPLONG, pcap::swapped, SWAPSHORT, block_header::total_length, pcap_opt::tstamp_precision, pcap_ng_sf::user_tsresol, pcap::version_major, and pcap::version_minor.