Lines Matching full:length
49 nd_uint16_t length; /* Length, in bytes, including header */
71 ipx_print(netdissect_options *ndo, const u_char *p, u_int length)
87 /* take length from ipx header */
88 length = GET_BE_U_2(ipx->length);
90 if (length < ipxSize) {
91 ND_PRINT("[length %u < %u]", length, ipxSize);
95 ipx_decode(ndo, ipx, p + ipxSize, length - ipxSize);
112 ipx_decode(netdissect_options *ndo, const struct ipxHdr *ipx, const u_char *datap, u_int length)
119 ND_PRINT("ipx-ncp %u", length);
122 ipx_sap_print(ndo, datap, length);
125 ipx_rip_print(ndo, datap, length);
128 ND_PRINT("ipx-netbios %u", length);
130 ipx_netbios_print(ndo, datap, length);
134 ND_PRINT("ipx-diags %u", length);
137 ND_PRINT("ipx-nwlink-dgm %u", length);
139 ipx_netbios_print(ndo, datap, length);
143 eigrp_print(ndo, datap, length);
146 ND_PRINT("ipx-#%x %u", dstSkt, length);
152 ipx_sap_print(netdissect_options *ndo, const u_char *ipx, u_int length)
157 ND_ICHECK_U(length, <, 2);
159 length -= 2;
179 for (i = 0; i < 8 && length != 0; i++) {
181 if (length < 2)
185 length -= 2;
186 if (length < 48) {
193 length -= 48;
198 if (length < 10)
203 length -= 10;
209 if (length < 4)
212 length -= 4;
226 ipx_rip_print(netdissect_options *ndo, const u_char *ipx, u_int length)
231 ND_ICHECK_U(length, <, 2);
233 length -= 2;
238 if (length != 0) {
239 if (length < 8)
247 for (i = 0; i < 50 && length != 0; i++) {
248 if (length < 8)
254 length -= 8;