Lines Matching refs:bp
106 register const u_char *bp, register u_int len, in vrrp_print() argument
112 ND_TCHECK(bp[0]); in vrrp_print()
113 version = (bp[0] & 0xf0) >> 4; in vrrp_print()
114 type = bp[0] & 0x0f; in vrrp_print()
121 ND_TCHECK(bp[2]); in vrrp_print()
122 ND_PRINT((ndo, ", vrid %u, prio %u", bp[1], bp[2])); in vrrp_print()
123 ND_TCHECK(bp[5]); in vrrp_print()
126 auth_type = bp[4]; in vrrp_print()
128 ND_PRINT((ndo, ", intvl %us, length %u", bp[5], len)); in vrrp_print()
130 uint16_t intvl = (bp[4] & 0x0f) << 8 | bp[5]; in vrrp_print()
135 int naddrs = bp[3]; in vrrp_print()
139 if (version == 2 && ND_TTEST2(bp[0], len)) { in vrrp_print()
142 vec[0].ptr = bp; in vrrp_print()
146 EXTRACT_16BITS(&bp[6]))); in vrrp_print()
149 if (version == 3 && ND_TTEST2(bp[0], len)) { in vrrp_print()
150 uint16_t cksum = nextproto4_cksum(ndo, (struct ip *)bp2, bp, in vrrp_print()
154 EXTRACT_16BITS(&bp[6]))); in vrrp_print()
162 bp += 8; in vrrp_print()
164 ND_TCHECK(bp[3]); in vrrp_print()
165 ND_PRINT((ndo, "%c%s", c, ipaddr_string(ndo, bp))); in vrrp_print()
167 bp += 4; in vrrp_print()
170 ND_TCHECK(bp[7]); in vrrp_print()
172 if (fn_printn(ndo, bp, 8, ndo->ndo_snapend)) { in vrrp_print()