Lines Matching full:shbp
713 struct section_header_block *shbp;
801 if (total_length < sizeof(*bhdrp) + sizeof(*shbp) + sizeof(struct block_trailer)) {
805 (unsigned long)(sizeof(*bhdrp) + sizeof(*shbp) + sizeof(struct block_trailer)));
874 shbp = (struct section_header_block *)((u_char *)p->buffer + sizeof(struct block_header));
877 shbp->byte_order_magic = byte_order_magic;
888 shbp->major_version = SWAPSHORT(shbp->major_version);
889 shbp->minor_version = SWAPSHORT(shbp->minor_version);
896 if (! (shbp->major_version == PCAP_NG_VERSION_MAJOR &&
897 shbp->minor_version == PCAP_NG_VERSION_MINOR)) {
900 shbp->major_version, shbp->minor_version);
903 p->version_major = shbp->major_version;
904 p->version_minor = shbp->minor_version;
1030 struct section_header_block *shbp;
1195 shbp = get_from_block_data(&cursor, sizeof(*shbp),
1197 if (shbp == NULL)
1206 shbp->byte_order_magic =
1207 SWAPLONG(shbp->byte_order_magic);
1208 shbp->major_version =
1209 SWAPSHORT(shbp->major_version);
1217 switch (shbp->byte_order_magic) {
1246 if (shbp->major_version != PCAP_NG_VERSION_MAJOR) {
1249 shbp->major_version);