Lines Matching refs:bp
59 const u_char *bp) in print_btp_body() argument
66 version = bp[0]; in print_btp_body()
67 msg_type = bp[1]; in print_btp_body()
75 const u_char *bp) in print_btp() argument
77 uint16_t dest = EXTRACT_16BITS(bp+0); in print_btp()
78 uint16_t src = EXTRACT_16BITS(bp+2); in print_btp()
84 const u_char *bp) in print_long_pos_vector() argument
88 ND_PRINT((ndo, "GN_ADDR:%s ", linkaddr_string (ndo, bp, 0, GEONET_ADDR_LEN))); in print_long_pos_vector()
90 if (!ND_TTEST2(*(bp+12), 8)) in print_long_pos_vector()
92 lat = EXTRACT_32BITS(bp+12); in print_long_pos_vector()
94 lon = EXTRACT_32BITS(bp+16); in print_long_pos_vector()
105 geonet_print(netdissect_options *ndo, const u_char *eth, const u_char *bp, u_int length) in geonet_print() argument
123 ND_TCHECK2(*bp, 7); in geonet_print()
124 version = bp[0] >> 4; in geonet_print()
125 next_hdr = bp[0] & 0x0f; in geonet_print()
126 hdr_type = bp[1] >> 4; in geonet_print()
127 hdr_subtype = bp[1] & 0x0f; in geonet_print()
128 payload_length = EXTRACT_16BITS(bp+4); in geonet_print()
129 hop_limit = bp[7]; in geonet_print()
171 if (print_long_pos_vector(ndo, bp + 8) == -1) in geonet_print()
176 bp += 36; in geonet_print()
228 ND_TCHECK2(*bp, hdr_size); in geonet_print()
230 bp += hdr_size; in geonet_print()
238 ND_TCHECK2(*bp, 4); in geonet_print()
239 print_btp(ndo, bp); in geonet_print()
241 bp += 4; in geonet_print()
250 ND_TCHECK2(*bp, 2); in geonet_print()
251 print_btp_body(ndo, bp); in geonet_print()
261 ND_DEFAULTPRINT(bp, length); in geonet_print()