Home
last modified time | relevance | path

Searched refs:ND_PRINT (Results 1 – 25 of 159) sorted by relevance

1234567

/netbsd/src/external/bsd/tcpdump/dist/
Dprint-rx.c542 ND_PRINT(" [|rx] (%u)", length); in rx_print()
549 ND_PRINT(" rx %s", tok2str(rx_types, "type %u", type)); in rx_print()
556 ND_PRINT(" cid %08x call# %u", in rx_print()
560 ND_PRINT(" seq %u ser %u", in rx_print()
565 ND_PRINT(" secindex %u serviceid %hu", in rx_print()
576 ND_PRINT(" "); in rx_print()
578 ND_PRINT(","); in rx_print()
580 ND_PRINT("<%s>", rx_flags[i].s); in rx_print()
681 ND_PRINT(" (%u)", length); in rx_print()
767 ND_PRINT(" fid %u/%u/%u", n1, n2, n3); \
[all …]
Dprint-802_15_4.c546 ND_PRINT("none"); in ieee802_15_4_print_addr()
549 ND_PRINT("%04x", GET_LE_U_2(p)); in ieee802_15_4_print_addr()
552 ND_PRINT("%s", GET_LE64ADDR_STRING(p)); in ieee802_15_4_print_addr()
569 ND_PRINT("\n\tBeacon order = %d, Superframe order = %d, ", in ieee802_15_4_print_superframe_specification()
571 ND_PRINT("Final CAP Slot = %d", in ieee802_15_4_print_superframe_specification()
573 if (CHECK_BIT(ss, 12)) { ND_PRINT(", BLE enabled"); } in ieee802_15_4_print_superframe_specification()
574 if (CHECK_BIT(ss, 14)) { ND_PRINT(", PAN Coordinator"); } in ieee802_15_4_print_superframe_specification()
575 if (CHECK_BIT(ss, 15)) { ND_PRINT(", Association Permit"); } in ieee802_15_4_print_superframe_specification()
598 ND_PRINT("\n\tGTS Descriptor Count = %d, ", gts_cnt); in ieee802_15_4_print_gts_info()
605 ND_PRINT(" [ERROR: Truncated GTS Info List]"); in ieee802_15_4_print_gts_info()
[all …]
Dprint-dhcp6.c318 ND_PRINT(" (%s", tok2str(dh6opt_str, "opt_%u", opttype)); in dhcp6opt_print()
325 ND_PRINT(" ?)"); in dhcp6opt_print()
332 ND_PRINT(" hwaddr/time type %u time %u ", in dhcp6opt_print()
336 ND_PRINT("%02x", in dhcp6opt_print()
339 ND_PRINT(")"); in dhcp6opt_print()
342 ND_PRINT(" ?)"); in dhcp6opt_print()
347 ND_PRINT(" enterprise %u ", GET_BE_U_4(tp + 2)); in dhcp6opt_print()
349 ND_PRINT("%02x", in dhcp6opt_print()
352 ND_PRINT(")"); in dhcp6opt_print()
355 ND_PRINT(" ?)"); in dhcp6opt_print()
[all …]
Dprint-l2tp.c285 ND_PRINT("%02x", GET_U_1(dat)); in print_octets()
293 ND_PRINT("%u", GET_BE_U_2(dat)); in print_16bits_val()
299 ND_PRINT("%u", GET_BE_U_4(dat)); in print_32bits_val()
309 ND_PRINT("AVP too short"); in l2tp_msgtype_print()
312 ND_PRINT("%s", tok2str(l2tp_msgtype2str, "MSGTYPE-#%u", in l2tp_msgtype_print()
321 ND_PRINT("AVP too short"); in l2tp_result_code_print()
324 ND_PRINT("%u", GET_BE_U_2(dat)); in l2tp_result_code_print()
332 ND_PRINT(" AVP too short"); in l2tp_result_code_print()
335 ND_PRINT("/%u", GET_BE_U_2(dat)); in l2tp_result_code_print()
342 ND_PRINT(" "); in l2tp_result_code_print()
[all …]
Dprint-lmp.c377 ND_PRINT("\n\t Subobject, Type: %s (%u), Length: %u", in lmp_print_data_link_subobjs()
384 ND_PRINT(" (too short)"); in lmp_print_data_link_subobjs()
388 ND_PRINT(" (not a multiple of 4)"); in lmp_print_data_link_subobjs()
392 ND_PRINT(" (goes past the end of the object)"); in lmp_print_data_link_subobjs()
397 ND_PRINT("\n\t Switching Type: %s (%u)", in lmp_print_data_link_subobjs()
402 ND_PRINT("\n\t Encoding Type: %s (%u)", in lmp_print_data_link_subobjs()
408 ND_PRINT("\n\t Min Reservable Bandwidth: %.3f Mbps", in lmp_print_data_link_subobjs()
411 ND_PRINT("\n\t Max Reservable Bandwidth: %.3f Mbps", in lmp_print_data_link_subobjs()
415 ND_PRINT("\n\t Wavelength: %u", in lmp_print_data_link_subobjs()
456 ND_PRINT("LMP version %u packet not supported", in lmp_print()
[all …]
Dprint-pim.c175 ND_PRINT(" RPF %s ", GET_IPADDR_STRING(bp)); in pimv1_join_prune_print()
178 ND_PRINT("Hold "); in pimv1_join_prune_print()
181 ND_PRINT("%s (%s/%u, %s", njoin ? "Join" : "Prune", in pimv1_join_prune_print()
185 ND_PRINT("/%s", GET_IPADDR_STRING(bp + 16)); in pimv1_join_prune_print()
186 ND_PRINT(") %s%s %s", in pimv1_join_prune_print()
196 ND_PRINT("\n"); in pimv1_join_prune_print()
197 ND_PRINT(" Upstream Nbr: %s", GET_IPADDR_STRING(bp)); in pimv1_join_prune_print()
203 ND_PRINT("\n"); in pimv1_join_prune_print()
204 ND_PRINT(" Hold time: "); in pimv1_join_prune_print()
223 ND_PRINT("\n\tGroup: %s", GET_IPADDR_STRING(bp)); in pimv1_join_prune_print()
[all …]
Dprint-igmp.c122 ND_PRINT(" [invalid len %u]", len); in print_mtrace()
125 ND_PRINT("%s %u: %s to %s reply-to %s", in print_mtrace()
131 ND_PRINT(" with-ttl %u", GET_U_1(tr->tr_rttl)); in print_mtrace()
143 ND_PRINT(" [invalid len %u]", len); in print_igmpv3_report()
147 ND_PRINT(", %u group record(s)", ngroups); in print_igmpv3_report()
153 ND_PRINT(" [invalid number of groups]"); in print_igmpv3_report()
156 ND_PRINT(" [gaddr %s", GET_IPADDR_STRING(bp + group + 4)); in print_igmpv3_report()
157 ND_PRINT(" %s", tok2str(igmpv3report2str, " [v3-report-#%u]", in print_igmpv3_report()
162 ND_PRINT(" [invalid number of sources %u]", nsrcs); in print_igmpv3_report()
166 ND_PRINT(", %u source(s)", nsrcs); in print_igmpv3_report()
[all …]
Dprint-bootp.c298 ND_PRINT("BOOTP/DHCP, %s", in bootp_print()
304 ND_PRINT(" from %s", GET_ETHERADDR_STRING(bp->bp_chaddr)); in bootp_print()
307 ND_PRINT(", length %u", length); in bootp_print()
316 ND_PRINT(", htype %u", bp_htype); in bootp_print()
320 ND_PRINT(", hlen %u", bp_hlen); in bootp_print()
324 ND_PRINT(", hops %u", GET_U_1(bp->bp_hops)); in bootp_print()
326 ND_PRINT(", xid 0x%x", GET_BE_U_4(bp->bp_xid)); in bootp_print()
328 ND_PRINT(", secs %u", GET_BE_U_2(bp->bp_secs)); in bootp_print()
330 ND_PRINT(", Flags [%s]", in bootp_print()
333 ND_PRINT(" (0x%04x)", GET_BE_U_2(bp->bp_flags)); in bootp_print()
[all …]
Dprint-openflow-1.0.c705 ND_PRINT("\n\t"); in of10_bsn_message_print()
710 ND_PRINT(" subtype %s", tok2str(bsn_subtype_str, "unknown (0x%08x)", subtype)); in of10_bsn_message_print()
727 ND_PRINT(", index %u", GET_U_1(cp)); in of10_bsn_message_print()
749 ND_PRINT(", index %u", GET_U_1(cp)); in of10_bsn_message_print()
754 ND_PRINT(", mask %s", GET_IPADDR_STRING(cp)); in of10_bsn_message_print()
771 ND_PRINT(", report_mirror_ports %s", in of10_bsn_message_print()
806 ND_PRINT(", vport_no %u", GET_BE_U_4(cp)); in of10_bsn_message_print()
823 ND_PRINT(", service %u", GET_BE_U_4(cp)); in of10_bsn_message_print()
826 ND_PRINT(", data '"); in of10_bsn_message_print()
828 ND_PRINT("'"); in of10_bsn_message_print()
[all …]
Dprint-isoclns.c743 ND_PRINT("OSI NLPID %s (0x%02x): ", in isoclns_print()
764 ND_PRINT("%slength: %u", ndo->ndo_eflag ? "" : ", ", length); in isoclns_print()
785 ND_PRINT("OSI NLPID 0x%02x unknown", GET_U_1(p)); in isoclns_print()
786 ND_PRINT("%slength: %u", ndo->ndo_eflag ? "" : ", ", length); in isoclns_print()
855 ND_PRINT("version %u packet not supported", in clnp_print()
861 ND_PRINT(" length indicator(%u) > PDU size (%u)!", li, length); in clnp_print()
866 ND_PRINT(" length indicator %u < min PDU size:", li); in clnp_print()
868 ND_PRINT("%02X", GET_U_1(pptr)); in clnp_print()
883 ND_PRINT("li < size of fixed part of CLNP header and addresses"); in clnp_print()
890 ND_PRINT("li < size of fixed part of CLNP header and addresses"); in clnp_print()
[all …]
Dprint-babel.c63 ND_PRINT("babel"); in babel_print()
68 ND_PRINT(" invalid header"); in babel_print()
71 ND_PRINT(" %u", GET_U_1(cp + 1)); in babel_print()
79 ND_PRINT(" unknown version"); in babel_print()
313 ND_PRINT(" sub-pad1"); in subtlvs_print()
317 ND_PRINT(" (M)"); in subtlvs_print()
327 ND_PRINT(" sub-padn"); in subtlvs_print()
331 ND_PRINT(" sub-diversity"); in subtlvs_print()
333 ND_PRINT(" empty"); in subtlvs_print()
338 ND_PRINT("%s%s", sep, in subtlvs_print()
[all …]
Dprint-ospf.c196 ND_PRINT("\n\t Remaining LS length %u < 4", ls_length); in ospf_grace_lsa_print()
204 ND_PRINT("\n\t %s TLV (%u), length %u, value: ", in ospf_grace_lsa_print()
210 ND_PRINT("\n\t Bogus length %u > %u", tlv_length, in ospf_grace_lsa_print()
225 ND_PRINT("\n\t Bogus length %u != 4", tlv_length); in ospf_grace_lsa_print()
228 ND_PRINT("%us", GET_BE_U_4(tptr)); in ospf_grace_lsa_print()
233 ND_PRINT("\n\t Bogus length %u != 1", tlv_length); in ospf_grace_lsa_print()
236 ND_PRINT("%s (%u)", in ospf_grace_lsa_print()
243 ND_PRINT("\n\t Bogus length %u != 4", tlv_length); in ospf_grace_lsa_print()
246 ND_PRINT("%s", GET_IPADDR_STRING(tptr)); in ospf_grace_lsa_print()
283 ND_PRINT("\n\t Remaining LS length %u < 4", ls_length); in ospf_te_lsa_print()
[all …]
Dprint-icmp6.c768 ND_PRINT(":"); in print_lladdr()
769 ND_PRINT("%02x", GET_U_1(q)); in print_lladdr()
815 ND_PRINT(" opt:pad1"); in rpl_printopts()
820 ND_PRINT(" opt:%s len:%u ", in rpl_printopts()
848 ND_PRINT(" [dagid:%s,seq:%u,instance:%u,rank:%u,%smop:%s,prf:%u]", in rpl_dio_print()
891 ND_PRINT(" [dagid:%s,seq:%u,instance:%u%s%s,flags:%02x]", in rpl_dao_print()
909 ND_PRINT(" [|length too short]"); in rpl_dao_print()
934 ND_PRINT(" [dagid:%s,seq:%u,instance:%u,status:%u]", in rpl_daoack_print()
951 ND_PRINT(" [|dao-length too short]"); in rpl_daoack_print()
964 ND_PRINT(", (SEC) [worktodo]"); in rpl_print()
[all …]
Dprint-dccp.c260 ND_PRINT("(ack=%" PRIu64 ") ", ackno); in dccp_print_ack_no()
298 ND_PRINT("truncated-dccp - %zu bytes missing!", in dccp_print()
306 ND_PRINT("truncated-dccp - %u bytes missing!", in dccp_print()
317 ND_PRINT("%s.%u > %s.%u: ", in dccp_print()
321 ND_PRINT("%s.%u > %s.%u: ", in dccp_print()
329 ND_PRINT(" %u", len - hlen); in dccp_print()
331 ND_PRINT(" [bad hdr length %u - too long, > %u]", in dccp_print()
339 ND_PRINT(" (CCVal %u, CsCov %u", DCCPH_CCVAL(dh), DCCPH_CSCOV(dh)); in dccp_print()
347 ND_PRINT(", cksum 0x%04x ", dccp_sum); in dccp_print()
353 ND_PRINT("(incorrect -> 0x%04x)",in_cksum_shouldbe(dccp_sum, sum)); in dccp_print()
[all …]
Dprint-lldp.c622 ND_PRINT("\n\t Priority Assignment Table"); in print_ets_priority_assignment_table()
623 ND_PRINT("\n\t Priority : 0 1 2 3 4 5 6 7"); in print_ets_priority_assignment_table()
624 ND_PRINT("\n\t Value : %-3d %-3d %-3d %-3d %-3d %-3d %-3d %-3d", in print_ets_priority_assignment_table()
635 ND_PRINT("\n\t TC Bandwidth Table"); in print_tc_bandwidth_table()
636 ND_PRINT("\n\t TC%% : 0 1 2 3 4 5 6 7"); in print_tc_bandwidth_table()
637 ND_PRINT("\n\t Value : %-3d %-3d %-3d %-3d %-3d %-3d %-3d %-3d", in print_tc_bandwidth_table()
647 ND_PRINT("\n\t TSA Assignment Table"); in print_tsa_assignment_table()
648 ND_PRINT("\n\t Traffic Class: 0 1 2 3 4 5 6 7"); in print_tsa_assignment_table()
649 ND_PRINT("\n\t Value : %-3d %-3d %-3d %-3d %-3d %-3d %-3d %-3d", in print_tsa_assignment_table()
673 ND_PRINT("\n\t %s Subtype (%u)", in lldp_private_8021_print()
[all …]
Dprint-ppp.c429 ND_PRINT("%s, ", typestr); in handle_ctrl_proto()
438 ND_PRINT("%s (0x%02x), id %u, length %u", in handle_ctrl_proto()
452 ND_PRINT("\n\tencoded length %u (< 4))", len); in handle_ctrl_proto()
457 ND_PRINT("\n\tencoded length %u (> packet length %u))", len, length); in handle_ctrl_proto()
462 ND_PRINT("\n\tencoded length %u (=Option(s) length %u)", len, len - 4); in handle_ctrl_proto()
475 ND_PRINT("\n\t Magic-Num 0x%08x", GET_BE_U_4(tptr)); in handle_ctrl_proto()
477 ND_PRINT(" Vendor: %s (%u)", in handle_ctrl_proto()
519 ND_PRINT(" [remaining options length %u < %u]", in handle_ctrl_proto()
539 ND_PRINT("\n\t Rejected %s Protocol (0x%04x)", in handle_ctrl_proto()
544 ND_PRINT("\n\t Rejected Packet"); in handle_ctrl_proto()
[all …]
Dprint-pgm.c173 ND_PRINT("%s > %s:", in pgm_print()
177 ND_PRINT("%s > %s:", in pgm_print()
190 ND_PRINT("%s.%s > %s.%s: ", in pgm_print()
196 ND_PRINT("%s > %s: ", in pgm_print()
201 ND_PRINT("%s.%s > %s.%s: ", in pgm_print()
207 ND_PRINT("%s > %s: ", in pgm_print()
214 ND_PRINT("PGM, length %u", GET_BE_U_2(pgm->pgm_length)); in pgm_print()
220 ND_PRINT(" 0x%02x%02x%02x%02x%02x%02x ", in pgm_print()
251 ND_PRINT("SPM seq %u trail %u lead %u nla %s", in pgm_print()
292 ND_PRINT("POLL seq %u round %u nla %s ivl %u rnd 0x%08x " in pgm_print()
[all …]
Dprint-domain.c131 ND_PRINT("\\[x"); in blabel_print()
133 ND_PRINT("%02x", GET_U_1(bitp)); in blabel_print()
138 ND_PRINT("%02x", tc & (0xff << (8 - b))); in blabel_print()
142 ND_PRINT("%1x", ((tc >> 4) & 0x0f) & (0x0f << (4 - b))); in blabel_print()
144 ND_PRINT("/%u]", bitlen); in blabel_print()
162 ND_PRINT("<ELT %d>", elt); in labellen()
181 ND_PRINT("<BAD LABEL TYPE>"); in labellen()
233 ND_PRINT("<BAD PTR>"); in fqdn_print()
255 ND_PRINT("<ELT %u>", elt); in fqdn_print()
261 ND_PRINT("<BAD LABEL TYPE>"); in fqdn_print()
[all …]
Dprint-ptp.c310 ND_PRINT(", %s", st); in print_field()
312 ND_PRINT(" 0x%x", u8_val); in print_field()
314 ND_PRINT(" %u", u8_val); in print_field()
319 ND_PRINT(", %s", st); in print_field()
321 ND_PRINT(" 0x%x", u16_val); in print_field()
323 ND_PRINT(" %u", u16_val); in print_field()
328 ND_PRINT(", %s", st); in print_field()
330 ND_PRINT(" 0x%x", u32_val); in print_field()
332 ND_PRINT(" %u", u32_val); in print_field()
337 ND_PRINT(", %s", st); in print_field()
[all …]
Dprint-isakmp.c730 ND_PRINT(" [|%s]", NPSTR(np)); \
851 ND_PRINT("%02x", p[i] & 0xff); in hexprint()
886 ND_PRINT(" data=("); in ike_show_somedata()
888 ND_PRINT("..."); in ike_show_somedata()
892 ND_PRINT(")"); in ike_show_somedata()
919 ND_PRINT("[|attr]"); in ikev1_attrmap_print()
923 ND_PRINT("("); in ikev1_attrmap_print()
926 ND_PRINT("type=%s ", map[t].type); in ikev1_attrmap_print()
928 ND_PRINT("type=#%u ", t); in ikev1_attrmap_print()
930 ND_PRINT("value="); in ikev1_attrmap_print()
[all …]
Dprint-decnet.c484 ND_PRINT(" (length %u < %zu)", length, sizeof(struct shorthdr)); in decnet_print()
490 ND_PRINT(" (pktlen %u < %zu)", pktlen, sizeof(struct shorthdr)); in decnet_print()
494 ND_PRINT(" (pktlen %u > %u)", pktlen, length); in decnet_print()
506 ND_PRINT("[pad:%u] ", padlen); in decnet_print()
508 ND_PRINT(" (length %u < %u)", length, padlen + 2); in decnet_print()
520 ND_PRINT("future-version-decnet"); in decnet_print()
535 ND_PRINT(" (length %u < %zu)", length, sizeof(struct longhdr)); in decnet_print()
555 ND_PRINT("unknown message flags under mask"); in decnet_print()
560 ND_PRINT("%s > %s %u ", in decnet_print()
564 ND_PRINT("RQR "); in decnet_print()
[all …]
Dprint-radius.c110 ND_PRINT("%02X", GET_U_1(ptr_data)); \
784 ND_PRINT("Tag[%u] ", GET_U_1(data)); in print_attr_string()
786 ND_PRINT("Tag[Unused] "); in print_attr_string()
789 ND_PRINT("Salt %u ", GET_BE_U_2(data)); in print_attr_string()
803 ND_PRINT("Tag[%u] ", GET_U_1(data)); in print_attr_string()
805 ND_PRINT("Tag[Unused] "); in print_attr_string()
813 ND_PRINT("%s (0x%02x) ", in print_attr_string()
827 ND_PRINT("%c", ND_ASCII_ISPRINT(GET_U_1(data)) ? GET_U_1(data) : '.'); in print_attr_string()
853 ND_PRINT("Vendor: %s (%u)", in print_vendor_attr()
862 ND_PRINT("\n\t Vendor Attribute: %u, Length: %u (bogus, must be >= 2)", in print_vendor_attr()
[all …]
Dprint-ip.c65 ND_PRINT(" [bad length %u]", length); in ip_printroute()
69 ND_PRINT(" [bad length %u]", length); in ip_printroute()
72 ND_PRINT(" [bad ptr %u]", GET_U_1(cp + 2)); in ip_printroute()
76 ND_PRINT(" %s", GET_IPADDR_STRING(cp + len)); in ip_printroute()
78 ND_PRINT(","); in ip_printroute()
180 ND_PRINT("[bad length %u]", length); in ip_printts()
183 ND_PRINT(" TS{"); in ip_printts()
186 ND_PRINT("[bad length %u]", length); in ip_printts()
190 ND_PRINT("[bad ptr %u]", GET_U_1(cp + 2)); in ip_printts()
193 ND_PRINT("TSONLY"); in ip_printts()
[all …]
Dprint-cdp.c74 ND_PRINT("'"); in cdp_print_string()
76 ND_PRINT("'"); in cdp_print_string()
96 ND_PRINT("%1.2fW", val / 1000.0); in cdp_print_power()
105 ND_PRINT("(0x%08x): %s", val, in cdp_print_capability()
116 ND_PRINT("\n\t "); in cdp_print_version()
121 ND_PRINT("\n\t "); in cdp_print_version()
131 ND_PRINT("%u", GET_BE_U_2(cp)); in cdp_print_uint16()
138 ND_PRINT("%s", GET_U_1(cp) ? "full": "half"); in cdp_print_duplex()
158 ND_PRINT("unknown 0x%04x", GET_BE_U_2(cp)); in cdp_print_ata186()
160 ND_PRINT("app %u, vlan %u", GET_U_1(cp), GET_BE_U_2(cp + 1)); in cdp_print_ata186()
[all …]
Dprint-snmp.c340 ND_PRINT(suppressdot?"%s":".%s", objp->desc); \
343 ND_PRINT(suppressdot?"%u":".%u", (o)); \
434 ND_PRINT("[nothing to parse]"); in asn1_parse()
473 ND_PRINT("[Xtagfield?]"); in asn1_parse()
482 ND_PRINT("[Xtagfield?]"); in asn1_parse()
491 ND_PRINT("[no asnlen]"); in asn1_parse()
500 ND_PRINT("[asnlen? %d<%d]", len, noct); in asn1_parse()
510 ND_PRINT("[len%d<asnlen%u]", len, elem->asnlen); in asn1_parse()
514 ND_PRINT("[form?%d]", form); in asn1_parse()
518 ND_PRINT("[class?%c/%d]", *Form[form], class); in asn1_parse()
[all …]

1234567