Lines Matching refs:shbp

776 	struct section_header_block *shbp;  in pcap_ng_check_header()  local
863 if (total_length < sizeof(*bhdrp) + sizeof(*shbp) + sizeof(struct block_trailer) || in pcap_ng_check_header()
867 sizeof(*bhdrp) + sizeof(*shbp) + sizeof(struct block_trailer), in pcap_ng_check_header()
944 shbp = (struct section_header_block *)((u_char *)p->buffer + sizeof(struct block_header)); in pcap_ng_check_header()
947 shbp->byte_order_magic = byte_order_magic; in pcap_ng_check_header()
958 shbp->major_version = SWAPSHORT(shbp->major_version); in pcap_ng_check_header()
959 shbp->minor_version = SWAPSHORT(shbp->minor_version); in pcap_ng_check_header()
979 if (! (shbp->major_version == PCAP_NG_VERSION_MAJOR && in pcap_ng_check_header()
980 (shbp->minor_version == PCAP_NG_VERSION_MINOR || in pcap_ng_check_header()
981 shbp->minor_version == 2))) { in pcap_ng_check_header()
984 shbp->major_version, shbp->minor_version); in pcap_ng_check_header()
987 p->version_major = shbp->major_version; in pcap_ng_check_header()
988 p->version_minor = shbp->minor_version; in pcap_ng_check_header()
1110 struct section_header_block *shbp; in pcap_ng_next_packet() local
1281 shbp = get_from_block_data(&cursor, sizeof(*shbp), in pcap_ng_next_packet()
1283 if (shbp == NULL) in pcap_ng_next_packet()
1292 shbp->byte_order_magic = in pcap_ng_next_packet()
1293 SWAPLONG(shbp->byte_order_magic); in pcap_ng_next_packet()
1294 shbp->major_version = in pcap_ng_next_packet()
1295 SWAPSHORT(shbp->major_version); in pcap_ng_next_packet()
1303 switch (shbp->byte_order_magic) { in pcap_ng_next_packet()
1332 if (shbp->major_version != PCAP_NG_VERSION_MAJOR) { in pcap_ng_next_packet()
1335 shbp->major_version); in pcap_ng_next_packet()