Home
last modified time | relevance | path

Searched refs:ndo (Results 1 – 25 of 156) sorted by relevance

1234567

/external/tcpdump/
Dprint-pim.c140 pimv1_join_prune_print(netdissect_options *ndo, in pimv1_join_prune_print() argument
151 ND_PRINT((ndo, " RPF %s ", ipaddr_string(ndo, bp))); in pimv1_join_prune_print()
154 ND_PRINT((ndo, "Hold ")); in pimv1_join_prune_print()
155 relts_print(ndo, hold); in pimv1_join_prune_print()
157 ND_PRINT((ndo, "%s (%s/%d, %s", njoin ? "Join" : "Prune", in pimv1_join_prune_print()
158 ipaddr_string(ndo, &bp[26]), bp[25] & 0x3f, in pimv1_join_prune_print()
159 ipaddr_string(ndo, &bp[12]))); in pimv1_join_prune_print()
161 ND_PRINT((ndo, "/%s", ipaddr_string(ndo, &bp[16]))); in pimv1_join_prune_print()
162 ND_PRINT((ndo, ") %s%s %s", in pimv1_join_prune_print()
170 if (ndo->ndo_vflag > 1) in pimv1_join_prune_print()
[all …]
Dprint-rx.c523 rx_print(netdissect_options *ndo, in rx_print() argument
531 if (ndo->ndo_snapend - bp < (int)sizeof (struct rx_header)) { in rx_print()
532 ND_PRINT((ndo, " [|rx] (%d)", length)); in rx_print()
538 ND_PRINT((ndo, " rx %s", tok2str(rx_types, "type %d", rxh->type))); in rx_print()
540 if (ndo->ndo_vflag) { in rx_print()
543 if (ndo->ndo_vflag > 1) in rx_print()
544 ND_PRINT((ndo, " cid %08x call# %d", in rx_print()
548 ND_PRINT((ndo, " seq %d ser %d", in rx_print()
552 if (ndo->ndo_vflag > 2) in rx_print()
553 ND_PRINT((ndo, " secindex %d serviceid %hu", in rx_print()
[all …]
Dprint-pptp.c272 pptp_bearer_cap_print(netdissect_options *ndo, in pptp_bearer_cap_print() argument
275 ND_PRINT((ndo, " BEARER_CAP(%s%s)", in pptp_bearer_cap_print()
288 pptp_bearer_type_print(netdissect_options *ndo, in pptp_bearer_type_print() argument
291 ND_PRINT((ndo, " BEARER_TYPE(%s)", in pptp_bearer_type_print()
296 pptp_call_id_print(netdissect_options *ndo, in pptp_call_id_print() argument
299 ND_PRINT((ndo, " CALL_ID(%u)", EXTRACT_16BITS(call_id))); in pptp_call_id_print()
303 pptp_call_ser_print(netdissect_options *ndo, in pptp_call_ser_print() argument
306 ND_PRINT((ndo, " CALL_SER_NUM(%u)", EXTRACT_16BITS(call_ser))); in pptp_call_ser_print()
310 pptp_cause_code_print(netdissect_options *ndo, in pptp_cause_code_print() argument
313 ND_PRINT((ndo, " CAUSE_CODE(%u)", EXTRACT_16BITS(cause_code))); in pptp_cause_code_print()
[all …]
Dprint-igmp.c105 print_mtrace(netdissect_options *ndo, in print_mtrace() argument
112 ND_PRINT((ndo, " [invalid len %d]", len)); in print_mtrace()
115 ND_PRINT((ndo, "mtrace %u: %s to %s reply-to %s", in print_mtrace()
117 ipaddr_string(ndo, &tr->tr_src), ipaddr_string(ndo, &tr->tr_dst), in print_mtrace()
118 ipaddr_string(ndo, &tr->tr_raddr))); in print_mtrace()
120 ND_PRINT((ndo, " with-ttl %d", TR_GETTTL(EXTRACT_32BITS(&tr->tr_rttlqid)))); in print_mtrace()
123 ND_PRINT((ndo, "%s", tstr)); in print_mtrace()
127 print_mresp(netdissect_options *ndo, in print_mresp() argument
134 ND_PRINT((ndo, " [invalid len %d]", len)); in print_mresp()
137 ND_PRINT((ndo, "mresp %lu: %s to %s reply-to %s", in print_mresp()
[all …]
Dprint-dhcp6.c276 dhcp6opt_print(netdissect_options *ndo, in dhcp6opt_print() argument
302 ND_PRINT((ndo, " (%s", tok2str(dh6opt_str, "opt_%u", opttype))); in dhcp6opt_print()
308 ND_PRINT((ndo, " ?)")); in dhcp6opt_print()
315 ND_PRINT((ndo, " hwaddr/time type %u time %u ", in dhcp6opt_print()
319 ND_PRINT((ndo, "%02x", tp[i])); in dhcp6opt_print()
321 ND_PRINT((ndo, ")")); in dhcp6opt_print()
324 ND_PRINT((ndo, " ?)")); in dhcp6opt_print()
329 ND_PRINT((ndo, " vid ")); in dhcp6opt_print()
331 ND_PRINT((ndo, "%02x", tp[i])); in dhcp6opt_print()
333 ND_PRINT((ndo, ")")); in dhcp6opt_print()
[all …]
Dprint-nfs.c203 print_nfsaddr(netdissect_options *ndo, in print_nfsaddr() argument
221 strlcpy(srcaddr, ipaddr_string(ndo, &ip->ip_src), sizeof(srcaddr)); in print_nfsaddr()
222 strlcpy(dstaddr, ipaddr_string(ndo, &ip->ip_dst), sizeof(dstaddr)); in print_nfsaddr()
227 strlcpy(srcaddr, ip6addr_string(ndo, &ip6->ip6_src), in print_nfsaddr()
229 strlcpy(dstaddr, ip6addr_string(ndo, &ip6->ip6_dst), in print_nfsaddr()
239 ND_PRINT((ndo, "%s.%s > %s.%s: ", srcaddr, s, dstaddr, d)); in print_nfsaddr()
243 parse_sattr3(netdissect_options *ndo, in parse_sattr3() argument
312 print_sattr3(netdissect_options *ndo, in print_sattr3() argument
316 ND_PRINT((ndo, " mode %o", sa3->sa_mode)); in print_sattr3()
318 ND_PRINT((ndo, " uid %u", sa3->sa_uid)); in print_sattr3()
[all …]
Dprint-udp.c97 vat_print(netdissect_options *ndo, const void *hdr, register const struct udphdr *up) in vat_print() argument
103 ND_PRINT((ndo, "udp/vt %u %d / %d", in vat_print()
110 ND_PRINT((ndo, "udp/vat %u c%d %u%s", in vat_print()
116 ND_PRINT((ndo, " f%d", (i0 >> 16) & 0x1f)); in vat_print()
118 ND_PRINT((ndo, " s%d", (i0 >> 24) & 0x3f)); in vat_print()
123 rtp_print(netdissect_options *ndo, const void *hdr, u_int len, in rtp_print() argument
155 ND_PRINT((ndo, "udp/%s %d c%d %s%s %d %u", in rtp_print()
163 if (ndo->ndo_vflag) { in rtp_print()
164 ND_PRINT((ndo, " %u", EXTRACT_32BITS(&((u_int *)hdr)[2]))); in rtp_print()
171 ND_PRINT((ndo, " !opt")); in rtp_print()
[all …]
Dprint-ppp.c413 handle_ctrl_proto(netdissect_options *ndo, in handle_ctrl_proto() argument
425 ND_PRINT((ndo, "%s, ", typestr)); in handle_ctrl_proto()
433 ND_PRINT((ndo, "%s (0x%02x), id %u, length %u", in handle_ctrl_proto()
439 if (!ndo->ndo_vflag) in handle_ctrl_proto()
449 ND_PRINT((ndo, "\n\tencoded length %u (=Option(s) length %u)", len, len - 4)); in handle_ctrl_proto()
451 if (ndo->ndo_vflag > 1) in handle_ctrl_proto()
452 print_unknown_data(ndo, pptr - 2, "\n\t", 6); in handle_ctrl_proto()
460 ND_PRINT((ndo, "\n\t Magic-Num 0x%08x", EXTRACT_32BITS(tptr))); in handle_ctrl_proto()
463 ND_PRINT((ndo, " Vendor: %s (%u)", in handle_ctrl_proto()
502 if ((j = (*pfunc)(ndo, tptr, len)) == 0) in handle_ctrl_proto()
[all …]
Dprint-domain.c52 ns_nskip(netdissect_options *ndo, in ns_nskip() argument
85 blabel_print(netdissect_options *ndo, in blabel_print() argument
100 ND_PRINT((ndo, "\\[x")); in blabel_print()
103 ND_PRINT((ndo, "%02x", *bitp)); in blabel_print()
108 ND_PRINT((ndo, "%02x", tc & (0xff << (8 - b)))); in blabel_print()
112 ND_PRINT((ndo, "%1x", ((tc >> 4) & 0x0f) & (0x0f << (4 - b)))); in blabel_print()
114 ND_PRINT((ndo, "/%d]", bitlen)); in blabel_print()
117 ND_PRINT((ndo, ".../%d]", bitlen)); in blabel_print()
122 labellen(netdissect_options *ndo, in labellen() argument
133 ND_PRINT((ndo, "<ELT %d>", elt)); in labellen()
[all …]
Dprint-icmp6.c479 static void print_lladdr(netdissect_options *ndo, const u_char *, size_t);
480 static void icmp6_opt_print(netdissect_options *ndo, const u_char *, int);
481 static void mld6_print(netdissect_options *ndo, const u_char *);
482 static void mldv2_report_print(netdissect_options *ndo, const u_char *, u_int);
483 static void mldv2_query_print(netdissect_options *ndo, const u_char *, u_int);
484 static const struct udphdr *get_upperlayer(netdissect_options *ndo, const u_char *, u_int *);
485 static void dnsname_print(netdissect_options *ndo, const u_char *, const u_char *);
486 static void icmp6_nodeinfo_print(netdissect_options *ndo, u_int, const u_char *, const u_char *);
487 static void icmp6_rrenum_print(netdissect_options *ndo, const u_char *, const u_char *);
611 print_lladdr(netdissect_options *ndo, const uint8_t *p, size_t l) in print_lladdr() argument
[all …]
Dprint-dvmrp.c68 dvmrp_print(netdissect_options *ndo, in dvmrp_print() argument
74 ep = (const u_char *)ndo->ndo_snapend; in dvmrp_print()
88 ND_PRINT((ndo, " Probe")); in dvmrp_print()
89 if (ndo->ndo_vflag) { in dvmrp_print()
90 if (print_probe(ndo, bp, ep, len) < 0) in dvmrp_print()
96 ND_PRINT((ndo, " Report")); in dvmrp_print()
97 if (ndo->ndo_vflag > 1) { in dvmrp_print()
98 if (print_report(ndo, bp, ep, len) < 0) in dvmrp_print()
104 ND_PRINT((ndo, " Ask-neighbors(old)")); in dvmrp_print()
108 ND_PRINT((ndo, " Neighbors(old)")); in dvmrp_print()
[all …]
Dprint-l2tp.c266 print_string(netdissect_options *ndo, const u_char *dat, u_int length) in print_string() argument
270 ND_PRINT((ndo, "%c", *dat++)); in print_string()
275 print_octets(netdissect_options *ndo, const u_char *dat, u_int length) in print_octets() argument
279 ND_PRINT((ndo, "%02x", *dat++)); in print_octets()
284 print_16bits_val(netdissect_options *ndo, const uint16_t *dat) in print_16bits_val() argument
286 ND_PRINT((ndo, "%u", EXTRACT_16BITS(dat))); in print_16bits_val()
290 print_32bits_val(netdissect_options *ndo, const uint32_t *dat) in print_32bits_val() argument
292 ND_PRINT((ndo, "%lu", (u_long)EXTRACT_32BITS(dat))); in print_32bits_val()
299 l2tp_msgtype_print(netdissect_options *ndo, const u_char *dat) in l2tp_msgtype_print() argument
303 ND_PRINT((ndo, "%s", tok2str(l2tp_msgtype2str, "MSGTYPE-#%u", in l2tp_msgtype_print()
[all …]
Dprint-babel.c48 babel_print(netdissect_options *ndo, in babel_print() argument
51 ND_PRINT((ndo, "babel")); in babel_print()
56 ND_PRINT((ndo, " malformed header")); in babel_print()
59 ND_PRINT((ndo, " %d", cp[1])); in babel_print()
64 babel_print_v2(ndo, cp, length); in babel_print()
67 ND_PRINT((ndo, " unknown version")); in babel_print()
74 ND_PRINT((ndo, " %s", tstr)); in babel_print()
120 format_prefix(netdissect_options *ndo, const u_char *prefix, unsigned char plen) in format_prefix() argument
124 snprintf(buf, 50, "%s/%u", ipaddr_string(ndo, prefix + 12), plen - 96); in format_prefix()
127 snprintf(buf, 50, "%s/%u", ip6addr_string(ndo, prefix), plen); in format_prefix()
[all …]
Dprint-ether.c90 ether_hdr_print(netdissect_options *ndo, in ether_hdr_print() argument
98 ND_PRINT((ndo, "%s > %s", in ether_hdr_print()
99 etheraddr_string(ndo, ESRC(ep)), in ether_hdr_print()
100 etheraddr_string(ndo, EDST(ep)))); in ether_hdr_print()
103 if (!ndo->ndo_qflag) { in ether_hdr_print()
105 ND_PRINT((ndo, ", 802.3")); in ether_hdr_print()
107 ND_PRINT((ndo, ", ethertype %s (0x%04x)", in ether_hdr_print()
112 ND_PRINT((ndo, ", 802.3")); in ether_hdr_print()
114 … ND_PRINT((ndo, ", %s", tok2str(ethertype_values,"Unknown Ethertype (0x%04x)", ether_type))); in ether_hdr_print()
117 ND_PRINT((ndo, ", length %u: ", length)); in ether_hdr_print()
[all …]
Dprint-ip.c57 ip_printroute(netdissect_options *ndo, in ip_printroute() argument
64 ND_PRINT((ndo, " [bad length %u]", length)); in ip_printroute()
68 ND_PRINT((ndo, " [bad length %u]", length)); in ip_printroute()
71 ND_PRINT((ndo, " [bad ptr %u]", cp[2])); in ip_printroute()
74 ND_PRINT((ndo, " %s", ipaddr_string(ndo, &cp[len]))); in ip_printroute()
76 ND_PRINT((ndo, ",")); in ip_printroute()
88 ip_finddst(netdissect_options *ndo, in ip_finddst() argument
134 nextproto4_cksum(netdissect_options *ndo, in nextproto4_cksum() argument
155 ph.dst = ip_finddst(ndo, ip); in nextproto4_cksum()
165 ip_printts(netdissect_options *ndo, in ip_printts() argument
[all …]
Dprint-atalk.c65 static const struct atNBPtuple *nbp_tuple_print(netdissect_options *ndo, const struct atNBPtuple *,
78 ltalk_if_print(netdissect_options *ndo, in ltalk_if_print() argument
81 return (llap_print(ndo, p, h->caplen)); in ltalk_if_print()
88 llap_print(netdissect_options *ndo, in llap_print() argument
98 ND_PRINT((ndo, " [|llap %u]", length)); in llap_print()
109 ND_PRINT((ndo, " [|sddp %u]", length)); in llap_print()
113 ND_PRINT((ndo, "%s.%s", in llap_print()
114 ataddr_string(ndo, 0, lp->src), ddpskt_string(ndo, sdp->srcSkt))); in llap_print()
115 ND_PRINT((ndo, " > %s.%s:", in llap_print()
116 ataddr_string(ndo, 0, lp->dst), ddpskt_string(ndo, sdp->dstSkt))); in llap_print()
[all …]
Dprint-snmp.c315 ND_PRINT((ndo, suppressdot?"%s":".%s", objp->desc)); \
318 ND_PRINT((ndo, suppressdot?"%u":".%u", (o))); \
403 asn1_parse(netdissect_options *ndo, in asn1_parse() argument
412 ND_PRINT((ndo, "[nothing to parse]")); in asn1_parse()
451 ND_PRINT((ndo, "[Xtagfield?]")); in asn1_parse()
458 ND_PRINT((ndo, "[Xtagfield?]")); in asn1_parse()
468 ND_PRINT((ndo, "[no asnlen]")); in asn1_parse()
478 ND_PRINT((ndo, "[asnlen? %d<%d]", len, noct)); in asn1_parse()
486 ND_PRINT((ndo, "[len%d<asnlen%u]", len, elem->asnlen)); in asn1_parse()
490 ND_PRINT((ndo, "[form?%d]", form)); in asn1_parse()
[all …]
Dprint-cdp.c93 cdp_print(netdissect_options *ndo, in cdp_print() argument
100 ND_PRINT((ndo, "%s", tstr)); in cdp_print()
107 ND_PRINT((ndo, "CDPv%u, ttl: %us", *(tptr + CDP_HEADER_VERSION_OFFSET), in cdp_print()
109 if (ndo->ndo_vflag) in cdp_print()
110 …ND_PRINT((ndo, ", checksum: 0x%04x (unverified), length %u", EXTRACT_16BITS(tptr+CDP_HEADER_CHECKS… in cdp_print()
118 if (ndo->ndo_vflag) in cdp_print()
119 ND_PRINT((ndo, "\n\t%s (0x%02x), TLV length: %u byte%s (too short)", in cdp_print()
125 ND_PRINT((ndo, ", %s TLV length %u too short", in cdp_print()
135 if (ndo->ndo_vflag || type == 1) { /* in non-verbose mode just print Device-ID */ in cdp_print()
137 if (ndo->ndo_vflag) in cdp_print()
[all …]
Dprint-lldp.c606 print_ets_priority_assignment_table(netdissect_options *ndo, in print_ets_priority_assignment_table() argument
609 ND_PRINT((ndo, "\n\t Priority Assignment Table")); in print_ets_priority_assignment_table()
610 ND_PRINT((ndo, "\n\t Priority : 0 1 2 3 4 5 6 7")); in print_ets_priority_assignment_table()
611 ND_PRINT((ndo, "\n\t Value : %-3d %-3d %-3d %-3d %-3d %-3d %-3d %-3d", in print_ets_priority_assignment_table()
617 print_tc_bandwidth_table(netdissect_options *ndo, in print_tc_bandwidth_table() argument
620 ND_PRINT((ndo, "\n\t TC Bandwidth Table")); in print_tc_bandwidth_table()
621 ND_PRINT((ndo, "\n\t TC%% : 0 1 2 3 4 5 6 7")); in print_tc_bandwidth_table()
622 ND_PRINT((ndo, "\n\t Value : %-3d %-3d %-3d %-3d %-3d %-3d %-3d %-3d", in print_tc_bandwidth_table()
627 print_tsa_assignment_table(netdissect_options *ndo, in print_tsa_assignment_table() argument
630 ND_PRINT((ndo, "\n\t TSA Assignment Table")); in print_tsa_assignment_table()
[all …]
Dprint-isoclns.c667 void isoclns_print(netdissect_options *ndo, in isoclns_print() argument
671 ND_PRINT((ndo, "|OSI")); in isoclns_print()
675 if (ndo->ndo_eflag) in isoclns_print()
676 ND_PRINT((ndo, "OSI NLPID %s (0x%02x): ", tok2str(nlpid_values, "Unknown", *p), *p)); in isoclns_print()
681 if (!clnp_print(ndo, p, length)) in isoclns_print()
682 print_unknown_data(ndo, p, "\n\t", caplen); in isoclns_print()
686 esis_print(ndo, p, length); in isoclns_print()
690 if (!isis_print(ndo, p, length)) in isoclns_print()
691 print_unknown_data(ndo, p, "\n\t", caplen); in isoclns_print()
695 ND_PRINT((ndo, "%slength: %u", ndo->ndo_eflag ? "" : ", ", length)); in isoclns_print()
[all …]
Dprint-gre.c86 gre_print(netdissect_options *ndo, const u_char *bp, u_int length) in gre_print() argument
91 ND_PRINT((ndo, "%s", tstr)); in gre_print()
95 ND_PRINT((ndo, "GREv%u",vers)); in gre_print()
99 gre_print_0(ndo, bp, len); in gre_print()
102 gre_print_1(ndo, bp, len); in gre_print()
105 ND_PRINT((ndo, " ERROR: unknown-version")); in gre_print()
111 gre_print_0(netdissect_options *ndo, const u_char *bp, u_int length) in gre_print_0() argument
117 if (ndo->ndo_vflag) in gre_print_0()
118 ND_PRINT((ndo, ", Flags [%s]", in gre_print_0()
133 if (ndo->ndo_vflag) in gre_print_0()
[all …]
Dprint-ospf.c183 ospf_print_grace_lsa(netdissect_options *ndo, in ospf_print_grace_lsa() argument
192 ND_PRINT((ndo, "\n\t Remaining LS length %u < 4", ls_length)); in ospf_print_grace_lsa()
200 ND_PRINT((ndo, "\n\t %s TLV (%u), length %u, value: ", in ospf_print_grace_lsa()
206 ND_PRINT((ndo, "\n\t Bogus length %u > %u", tlv_length, in ospf_print_grace_lsa()
221 ND_PRINT((ndo, "\n\t Bogus length %u != 4", tlv_length)); in ospf_print_grace_lsa()
224 ND_PRINT((ndo, "%us", EXTRACT_32BITS(tptr))); in ospf_print_grace_lsa()
229 ND_PRINT((ndo, "\n\t Bogus length %u != 1", tlv_length)); in ospf_print_grace_lsa()
232 ND_PRINT((ndo, "%s (%u)", in ospf_print_grace_lsa()
239 ND_PRINT((ndo, "\n\t Bogus length %u != 4", tlv_length)); in ospf_print_grace_lsa()
242 ND_PRINT((ndo, "%s", ipaddr_string(ndo, tptr))); in ospf_print_grace_lsa()
[all …]
Dprint-bootp.c282 bootp_print(netdissect_options *ndo, in bootp_print() argument
292 ND_PRINT((ndo, "BOOTP/DHCP, %s", in bootp_print()
297 ND_PRINT((ndo, " from %s", etheraddr_string(ndo, bp->bp_chaddr))); in bootp_print()
300 ND_PRINT((ndo, ", length %u", length)); in bootp_print()
302 if (!ndo->ndo_vflag) in bootp_print()
309 ND_PRINT((ndo, ", htype %d", bp->bp_htype)); in bootp_print()
313 ND_PRINT((ndo, ", hlen %d", bp->bp_hlen)); in bootp_print()
317 ND_PRINT((ndo, ", hops %d", bp->bp_hops)); in bootp_print()
319 ND_PRINT((ndo, ", xid 0x%x", EXTRACT_32BITS(&bp->bp_xid))); in bootp_print()
321 ND_PRINT((ndo, ", secs %d", EXTRACT_16BITS(&bp->bp_secs))); in bootp_print()
[all …]
Dprint-openflow-1.0.c720 of10_bitmap_print(netdissect_options *ndo, in of10_bitmap_print() argument
730 ND_PRINT((ndo, "%s%s", sep, t->s)); in of10_bitmap_print()
734 ND_PRINT((ndo, v & u ? ") (bogus)" : ")")); in of10_bitmap_print()
738 of10_data_print(netdissect_options *ndo, in of10_data_print() argument
744 ND_PRINT((ndo, "\n\t data (%u octets)", len)); in of10_data_print()
746 if (ndo->ndo_vflag >= 2) in of10_data_print()
747 hex_and_ascii_print(ndo, "\n\t ", cp, len); in of10_data_print()
751 ND_PRINT((ndo, "%s", tstr)); in of10_data_print()
756 of10_bsn_message_print(netdissect_options *ndo, in of10_bsn_message_print() argument
768 ND_PRINT((ndo, "\n\t subtype %s", tok2str(bsn_subtype_str, "unknown (0x%08x)", subtype))); in of10_bsn_message_print()
[all …]
Dprint-smb.c90 trans2_findfirst(netdissect_options *ndo, in trans2_findfirst() argument
100 smb_fdata(ndo, param, fmt, param + pcnt, unicodestr); in trans2_findfirst()
102 ND_PRINT((ndo, "data:\n")); in trans2_findfirst()
103 print_data(ndo, data, dcnt); in trans2_findfirst()
108 trans2_qfsinfo(netdissect_options *ndo, in trans2_qfsinfo() argument
118 smb_fdata(ndo, param, fmt, param + pcnt, unicodestr); in trans2_qfsinfo()
134 smb_fdata(ndo, data, fmt, data + dcnt, unicodestr); in trans2_qfsinfo()
137 ND_PRINT((ndo, "data:\n")); in trans2_qfsinfo()
138 print_data(ndo, data, dcnt); in trans2_qfsinfo()
142 ND_PRINT((ndo, "%s", tstr)); in trans2_qfsinfo()
[all …]

1234567