Lines Matching refs:bp
49 nsh_print(netdissect_options *ndo, const u_char *bp, u_int len) in nsh_print() argument
69 ND_TCHECK2(*bp, NSH_BASE_HDR_LEN + NSH_SERVICE_PATH_HDR_LEN); in nsh_print()
71 ver = (uint8_t)(*bp >> 6); in nsh_print()
72 flags = *bp; in nsh_print()
73 bp += 1; in nsh_print()
74 length = *bp; in nsh_print()
75 bp += 1; in nsh_print()
76 md_type = *bp; in nsh_print()
77 bp += 1; in nsh_print()
78 next_protocol = *bp; in nsh_print()
79 bp += 1; in nsh_print()
80 service_path_id = EXTRACT_24BITS(bp); in nsh_print()
81 bp += 3; in nsh_print()
82 service_index = *bp; in nsh_print()
83 bp += 1; in nsh_print()
104 ND_TCHECK2(*bp, length * NSH_HDR_WORD_SIZE); in nsh_print()
120 ctx = EXTRACT_32BITS(bp); in nsh_print()
121 bp += NSH_HDR_WORD_SIZE; in nsh_print()
128 tlv_class = EXTRACT_16BITS(bp); in nsh_print()
129 bp += 2; in nsh_print()
130 tlv_type = *bp; in nsh_print()
131 bp += 1; in nsh_print()
132 tlv_len = *bp; in nsh_print()
133 bp += 1; in nsh_print()
146 ctx = EXTRACT_32BITS(bp); in nsh_print()
147 bp += NSH_HDR_WORD_SIZE; in nsh_print()
159 bp += (length - 2) * NSH_HDR_WORD_SIZE; in nsh_print()
167 ip_print(ndo, bp, next_len); in nsh_print()
170 ip6_print(ndo, bp, next_len); in nsh_print()
173 ether_print(ndo, bp, next_len, ndo->ndo_snapend - bp, NULL, NULL); in nsh_print()