Lines Matching refs:ndo

193 tpaddr_print_ip(netdissect_options *ndo,  in tpaddr_print_ip()  argument
197 ND_PRINT((ndo, "<wrong proto type>")); in tpaddr_print_ip()
199 ND_PRINT((ndo, "<wrong len>")); in tpaddr_print_ip()
201 ND_PRINT((ndo, "%s", ipaddr_string(ndo, TPA(ap)))); in tpaddr_print_ip()
205 spaddr_print_ip(netdissect_options *ndo, in spaddr_print_ip() argument
209 ND_PRINT((ndo, "<wrong proto type>")); in spaddr_print_ip()
211 ND_PRINT((ndo, "<wrong len>")); in spaddr_print_ip()
213 ND_PRINT((ndo, "%s", ipaddr_string(ndo, SPA(ap)))); in spaddr_print_ip()
217 atmarp_addr_print(netdissect_options *ndo, in atmarp_addr_print() argument
222 ND_PRINT((ndo, "<No address>")); in atmarp_addr_print()
224 ND_PRINT((ndo, "%s", linkaddr_string(ndo, ha, LINKADDR_ATM, ha_len))); in atmarp_addr_print()
226 ND_PRINT((ndo, ",%s", in atmarp_addr_print()
227 linkaddr_string(ndo, srca, LINKADDR_ATM, srca_len))); in atmarp_addr_print()
232 atmarp_tpaddr_print(netdissect_options *ndo, in atmarp_tpaddr_print() argument
236 ND_PRINT((ndo, "<wrong proto type>")); in atmarp_tpaddr_print()
238 ND_PRINT((ndo, "<wrong tplen>")); in atmarp_tpaddr_print()
240 ND_PRINT((ndo, "%s", ipaddr_string(ndo, ATMTPA(ap)))); in atmarp_tpaddr_print()
244 atmarp_spaddr_print(netdissect_options *ndo, in atmarp_spaddr_print() argument
248 ND_PRINT((ndo, "<wrong proto type>")); in atmarp_spaddr_print()
250 ND_PRINT((ndo, "<wrong splen>")); in atmarp_spaddr_print()
252 ND_PRINT((ndo, "%s", ipaddr_string(ndo, ATMSPA(ap)))); in atmarp_spaddr_print()
256 atmarp_print(netdissect_options *ndo, in atmarp_print() argument
270 ND_PRINT((ndo, "%s", tstr)); in atmarp_print()
275 if (!ndo->ndo_eflag) { in atmarp_print()
276 ND_PRINT((ndo, "ARP, ")); in atmarp_print()
282 ndo->ndo_vflag) { in atmarp_print()
283 ND_PRINT((ndo, "%s, %s (len %u/%u)", in atmarp_print()
290 if (!ndo->ndo_vflag) { in atmarp_print()
296 ND_PRINT((ndo, "%s%s ", in atmarp_print()
297 ndo->ndo_vflag ? ", " : "", in atmarp_print()
303 ND_PRINT((ndo, "who-has ")); in atmarp_print()
304 atmarp_tpaddr_print(ndo, ap, pro); in atmarp_print()
306 ND_PRINT((ndo, " (")); in atmarp_print()
307 atmarp_addr_print(ndo, ATMTHA(ap), ATMTHRD_LEN(ap), in atmarp_print()
309 ND_PRINT((ndo, ")")); in atmarp_print()
311 ND_PRINT((ndo, " tell ")); in atmarp_print()
312 atmarp_spaddr_print(ndo, ap, pro); in atmarp_print()
316 atmarp_spaddr_print(ndo, ap, pro); in atmarp_print()
317 ND_PRINT((ndo, " is-at ")); in atmarp_print()
318 atmarp_addr_print(ndo, ATMSHA(ap), ATMSHRD_LEN(ap), ATMSSA(ap), in atmarp_print()
323 ND_PRINT((ndo, "who-is ")); in atmarp_print()
324 atmarp_addr_print(ndo, ATMTHA(ap), ATMTHRD_LEN(ap), ATMTSA(ap), in atmarp_print()
326 ND_PRINT((ndo, " tell ")); in atmarp_print()
327 atmarp_addr_print(ndo, ATMSHA(ap), ATMSHRD_LEN(ap), ATMSSA(ap), in atmarp_print()
332 atmarp_addr_print(ndo, ATMSHA(ap), ATMSHRD_LEN(ap), ATMSSA(ap), in atmarp_print()
334 ND_PRINT((ndo, "at ")); in atmarp_print()
335 atmarp_spaddr_print(ndo, ap, pro); in atmarp_print()
339 ND_PRINT((ndo, "for ")); in atmarp_print()
340 atmarp_spaddr_print(ndo, ap, pro); in atmarp_print()
349 ND_PRINT((ndo, ", length %u", length)); in atmarp_print()
353 ND_PRINT((ndo, "%s", tstr)); in atmarp_print()
357 arp_print(netdissect_options *ndo, in arp_print() argument
378 atmarp_print(ndo, bp, length, caplen); in arp_print()
389 ND_PRINT((ndo, "%s", tstr)); in arp_print()
394 if (!ndo->ndo_eflag) { in arp_print()
395 ND_PRINT((ndo, "ARP, ")); in arp_print()
402 ndo->ndo_vflag) { in arp_print()
403 ND_PRINT((ndo, "%s (len %u), %s (len %u)", in arp_print()
410 if (!ndo->ndo_vflag) { in arp_print()
416 ND_PRINT((ndo, "%s%s ", in arp_print()
417 ndo->ndo_vflag ? ", " : "", in arp_print()
423 ND_PRINT((ndo, "who-has ")); in arp_print()
424 tpaddr_print_ip(ndo, ap, pro); in arp_print()
426 ND_PRINT((ndo, " (%s)", in arp_print()
427 linkaddr_string(ndo, THA(ap), linkaddr, HRD_LEN(ap)))); in arp_print()
428 ND_PRINT((ndo, " tell ")); in arp_print()
429 spaddr_print_ip(ndo, ap, pro); in arp_print()
433 spaddr_print_ip(ndo, ap, pro); in arp_print()
434 ND_PRINT((ndo, " is-at %s", in arp_print()
435 linkaddr_string(ndo, SHA(ap), linkaddr, HRD_LEN(ap)))); in arp_print()
439 ND_PRINT((ndo, "who-is %s tell %s", in arp_print()
440 linkaddr_string(ndo, THA(ap), linkaddr, HRD_LEN(ap)), in arp_print()
441 linkaddr_string(ndo, SHA(ap), linkaddr, HRD_LEN(ap)))); in arp_print()
445 ND_PRINT((ndo, "%s at ", in arp_print()
446 linkaddr_string(ndo, THA(ap), linkaddr, HRD_LEN(ap)))); in arp_print()
447 tpaddr_print_ip(ndo, ap, pro); in arp_print()
451 ND_PRINT((ndo, "who-is %s tell %s", in arp_print()
452 linkaddr_string(ndo, THA(ap), linkaddr, HRD_LEN(ap)), in arp_print()
453 linkaddr_string(ndo, SHA(ap), linkaddr, HRD_LEN(ap)))); in arp_print()
457 ND_PRINT((ndo,"%s at ", in arp_print()
458 linkaddr_string(ndo, SHA(ap), linkaddr, HRD_LEN(ap)))); in arp_print()
459 spaddr_print_ip(ndo, ap, pro); in arp_print()
468 ND_PRINT((ndo, ", length %u", length)); in arp_print()
472 ND_PRINT((ndo, "%s", tstr)); in arp_print()