Home | History | Annotate | Download | only in dist

Lines Matching defs:shbp

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