Lines Matching refs:len
89 geneve_opts_print(netdissect_options *ndo, const u_char *bp, u_int len)
93 while (len > 0) {
105 ND_PRINT((ndo, "class %s (0x%x) type 0x%x%s len %u",
109 if (opt_len > len) {
127 len -= opt_len;
132 geneve_print(netdissect_options *ndo, const u_char *bp, u_int len)
148 len -= 1;
158 len -= 1;
162 len -= 2;
166 len -= 3;
170 len -= 1;
185 if (len < opts_len) {
187 len - opts_len));
205 len -= opts_len;
212 if (ethertype_print(ndo, prot, bp, len, len) == 0) {
214 ether_print(ndo, bp, len, len, NULL, NULL);