Lines Matching refs:bp
147 register const u_char *bp, register u_int length, in pgm_print() argument
166 pgm = (struct pgm_header *)bp; in pgm_print()
263 bp = (u_char *) (spm + 1); in pgm_print()
264 ND_TCHECK2(*bp, addr_size); in pgm_print()
265 nla = bp; in pgm_print()
266 bp += addr_size; in pgm_print()
285 bp = (u_char *) (poll + 1); in pgm_print()
310 bp = (u_char *) (polr + 1); in pgm_print()
311 ND_TCHECK2(*bp, addr_size); in pgm_print()
312 nla = bp; in pgm_print()
313 bp += addr_size; in pgm_print()
317 ND_TCHECK2(*bp, sizeof(uint32_t)); in pgm_print()
318 ivl = EXTRACT_32BITS(bp); in pgm_print()
319 bp += sizeof(uint32_t); in pgm_print()
321 ND_TCHECK2(*bp, sizeof(uint32_t)); in pgm_print()
322 rnd = EXTRACT_32BITS(bp); in pgm_print()
323 bp += sizeof(uint32_t); in pgm_print()
325 ND_TCHECK2(*bp, sizeof(uint32_t)); in pgm_print()
326 mask = EXTRACT_32BITS(bp); in pgm_print()
327 bp += sizeof(uint32_t); in pgm_print()
342 bp = (u_char *) (odata + 1); in pgm_print()
354 bp = (u_char *) (rdata + 1); in pgm_print()
392 bp = (u_char *) (nak + 1); in pgm_print()
393 ND_TCHECK2(*bp, addr_size); in pgm_print()
394 source = bp; in pgm_print()
395 bp += addr_size; in pgm_print()
401 switch (EXTRACT_16BITS(bp)) { in pgm_print()
416 bp += (2 * sizeof(uint16_t)); in pgm_print()
417 ND_TCHECK2(*bp, addr_size); in pgm_print()
418 group = bp; in pgm_print()
419 bp += addr_size; in pgm_print()
451 bp = (u_char *) (ack + 1); in pgm_print()
469 if (!ND_TTEST2(*bp, PGM_MIN_OPT_LEN)) { in pgm_print()
478 opt_type = *bp++; in pgm_print()
483 opt_len = *bp++; in pgm_print()
488 opts_len = EXTRACT_16BITS(bp); in pgm_print()
493 bp += sizeof(uint16_t); in pgm_print()
502 opt_type = *bp++; in pgm_print()
503 opt_len = *bp++; in pgm_print()
513 if (!ND_TTEST2(*bp, opt_len - 2)) { in pgm_print()
524 ND_PRINT((ndo, " OPTS LEN (extra?) %d", EXTRACT_16BITS(bp))); in pgm_print()
525 bp += sizeof(uint16_t); in pgm_print()
534 bp += 2; in pgm_print()
535 seq = EXTRACT_32BITS(bp); in pgm_print()
536 bp += sizeof(uint32_t); in pgm_print()
537 offset = EXTRACT_32BITS(bp); in pgm_print()
538 bp += sizeof(uint32_t); in pgm_print()
539 len = EXTRACT_32BITS(bp); in pgm_print()
540 bp += sizeof(uint32_t); in pgm_print()
546 bp += 2; in pgm_print()
554 ND_TCHECK2(*bp, sizeof(uint32_t)); in pgm_print()
555 ND_PRINT((ndo, " %u", EXTRACT_32BITS(bp))); in pgm_print()
556 bp += sizeof(uint32_t); in pgm_print()
567 bp += 2; in pgm_print()
568 seq = EXTRACT_32BITS(bp); in pgm_print()
569 bp += sizeof(uint32_t); in pgm_print()
579 bp += 2; in pgm_print()
580 offset = EXTRACT_32BITS(bp); in pgm_print()
581 bp += sizeof(uint32_t); in pgm_print()
582 seq = EXTRACT_32BITS(bp); in pgm_print()
583 bp += sizeof(uint32_t); in pgm_print()
593 bp += 2; in pgm_print()
594 offset = EXTRACT_32BITS(bp); in pgm_print()
595 bp += sizeof(uint32_t); in pgm_print()
596 seq = EXTRACT_32BITS(bp); in pgm_print()
597 bp += sizeof(uint32_t); in pgm_print()
603 bp += 2; in pgm_print()
604 switch (EXTRACT_16BITS(bp)) { in pgm_print()
619 bp += (2 * sizeof(uint16_t)); in pgm_print()
624 ND_TCHECK2(*bp, addr_size); in pgm_print()
625 nla = bp; in pgm_print()
626 bp += addr_size; in pgm_print()
638 bp += 2; in pgm_print()
639 len = EXTRACT_32BITS(bp); in pgm_print()
640 bp += sizeof(uint32_t); in pgm_print()
650 bp += 2; in pgm_print()
651 seq = EXTRACT_32BITS(bp); in pgm_print()
652 bp += sizeof(uint32_t); in pgm_print()
662 bp += 2; in pgm_print()
663 len = EXTRACT_32BITS(bp); in pgm_print()
664 bp += sizeof(uint32_t); in pgm_print()
674 bp += 2; in pgm_print()
681 bp += opt_len; in pgm_print()
690 bp += 2; in pgm_print()
700 bp += 2; in pgm_print()
710 bp += 2; in pgm_print()
717 bp += opt_len; in pgm_print()
726 bp += 2; in pgm_print()
732 bp += 2; in pgm_print()
733 offset = EXTRACT_32BITS(bp); in pgm_print()
734 bp += sizeof(uint32_t); in pgm_print()
735 switch (EXTRACT_16BITS(bp)) { in pgm_print()
750 bp += (2 * sizeof(uint16_t)); in pgm_print()
755 ND_TCHECK2(*bp, addr_size); in pgm_print()
756 nla = bp; in pgm_print()
757 bp += addr_size; in pgm_print()
765 bp += 2; in pgm_print()
766 offset = EXTRACT_32BITS(bp); in pgm_print()
767 bp += sizeof(uint32_t); in pgm_print()
768 switch (EXTRACT_16BITS(bp)) { in pgm_print()
783 bp += (2 * sizeof(uint16_t)); in pgm_print()
788 ND_TCHECK2(*bp, addr_size); in pgm_print()
789 nla = bp; in pgm_print()
790 bp += addr_size; in pgm_print()
799 bp += opt_len; in pgm_print()
812 zmtp1_print_datagram(ndo, bp, EXTRACT_16BITS(&pgm->pgm_length)); in pgm_print()