Searched refs:ndo (Results 1 - 25 of 157) sorted by relevance

1234567

/freebsd-12-stable/contrib/tcpdump/
H A Dprint-beep.c31 l_strnstart(netdissect_options *ndo, const char *tstr1, u_int tl1, argument
49 beep_print(netdissect_options *ndo, const u_char *bp, u_int length) argument
52 if (l_strnstart(ndo, "MSG", 4, (const char *)bp, length)) /* A REQuest */
53 ND_PRINT((ndo, " BEEP MSG"));
54 else if (l_strnstart(ndo, "RPY ", 4, (const char *)bp, length))
55 ND_PRINT((ndo, " BEEP RPY"));
56 else if (l_strnstart(ndo, "ERR ", 4, (const char *)bp, length))
57 ND_PRINT((ndo, " BEEP ERR"));
58 else if (l_strnstart(ndo, "ANS ", 4, (const char *)bp, length))
59 ND_PRINT((ndo, " BEE
[all...]
H A Dprint-vjc.c86 vjc_print(netdissect_options *ndo, register const char *bp, u_short proto _U_) argument
92 if (ndo->ndo_eflag)
93 ND_PRINT((ndo, "(vjc type=IP) "));
96 if (ndo->ndo_eflag)
97 ND_PRINT((ndo, "(vjc type=raw TCP) "));
100 if (ndo->ndo_eflag)
101 ND_PRINT((ndo, "(vjc type=compressed TCP) "));
104 ND_PRINT((ndo, "%c", "?CI?SAWU"[i]));
107 ND_PRINT((ndo, " "));
108 ND_PRINT((ndo, "
[all...]
H A Dprint-igmp.c106 print_mtrace(netdissect_options *ndo, argument
113 ND_PRINT((ndo, " [invalid len %d]", len));
116 ND_PRINT((ndo, "mtrace %u: %s to %s reply-to %s",
118 ipaddr_string(ndo, &tr->tr_src), ipaddr_string(ndo, &tr->tr_dst),
119 ipaddr_string(ndo, &tr->tr_raddr)));
121 ND_PRINT((ndo, " with-ttl %d", TR_GETTTL(EXTRACT_32BITS(&tr->tr_rttlqid))));
124 ND_PRINT((ndo, "%s", tstr));
128 print_mresp(netdissect_options *ndo, argument
135 ND_PRINT((ndo, " [invali
150 print_igmpv3_report(netdissect_options *ndo, register const u_char *bp, register u_int len) argument
204 print_igmpv3_query(netdissect_options *ndo, register const u_char *bp, register u_int len) argument
260 igmp_print(netdissect_options *ndo, register const u_char *bp, register u_int len) argument
[all...]
H A Dprint-calm-fast.c40 calm_fast_print(netdissect_options *ndo, const u_char *bp, u_int length, const struct lladdr_info *src) argument
53 ND_PRINT((ndo, "CALM FAST"));
55 ND_PRINT((ndo, " src:%s", (src->addr_string)(ndo, src->addr)));
56 ND_PRINT((ndo, "; "));
57 ND_PRINT((ndo, "SrcNwref:%d; ", srcNwref));
58 ND_PRINT((ndo, "DstNwref:%d; ", dstNwref));
60 if (ndo->ndo_vflag)
65 ND_PRINT((ndo, "[|calm fast]"));
H A Dprint-802_15_4.c65 ieee802_15_4_if_print(netdissect_options *ndo, argument
75 ND_PRINT((ndo, "[|802.15.4]"));
86 ND_PRINT((ndo,"IEEE 802.15.4 %s packet ", ftypes[FC_FRAME_TYPE(fc)]));
87 if (ndo->ndo_vflag)
88 ND_PRINT((ndo,"seq %02x ", seq));
101 ND_PRINT((ndo, "[|802.15.4]"));
104 if (ndo->ndo_vflag)
105 ND_PRINT((ndo,"none "));
108 if (ndo->ndo_vflag)
109 ND_PRINT((ndo,"reserve
[all...]
H A Dprint-msdp.c34 msdp_print(netdissect_options *ndo, const u_char *sp, u_int length) argument
44 ND_PRINT((ndo, " msdp:"));
49 if (len > 1400 || ndo->ndo_vflag)
50 ND_PRINT((ndo, " [len %u]", len));
59 ND_PRINT((ndo, " SA"));
61 ND_PRINT((ndo, " SA-Response"));
63 ND_PRINT((ndo, " %u entries", *sp));
65 ND_PRINT((ndo, " [w/data]"));
66 if (ndo->ndo_vflag > 1) {
67 ND_PRINT((ndo, " "));
[all...]
H A Dprint-ah.c38 ah_print(netdissect_options *ndo, register const u_char *bp) argument
49 ND_PRINT((ndo, "AH(spi=0x%08x", EXTRACT_32BITS(&ah->ah_spi)));
50 if (ndo->ndo_vflag)
51 ND_PRINT((ndo, ",sumlen=%d", sumlen));
53 ND_PRINT((ndo, ",seq=0x%x", EXTRACT_32BITS(ah + 1)));
55 ND_PRINT((ndo, "[truncated]):"));
58 ND_PRINT((ndo, "): "));
62 ND_PRINT((ndo, "[|AH]"));
H A Dprint-otv.c42 otv_print(netdissect_options *ndo, const u_char *bp, u_int len) argument
46 ND_PRINT((ndo, "OTV, "));
52 ND_PRINT((ndo, "flags [%s] (0x%02x), ", flags & 0x08 ? "I" : ".", flags));
56 ND_PRINT((ndo, "overlay %u, ", EXTRACT_24BITS(bp)));
60 ND_PRINT((ndo, "instance %u\n", EXTRACT_24BITS(bp)));
67 ether_print(ndo, bp, len - 8, ndo->ndo_snapend - bp, NULL, NULL);
71 ND_PRINT((ndo, " [|OTV]"));
H A Dprint-dvmrp.c69 dvmrp_print(netdissect_options *ndo, argument
76 ep = (const u_char *)ndo->ndo_snapend;
90 ND_PRINT((ndo, " Probe"));
91 if (ndo->ndo_vflag) {
92 if (print_probe(ndo, bp, ep, len) < 0)
98 ND_PRINT((ndo, " Report"));
99 if (ndo->ndo_vflag > 1) {
100 if (print_report(ndo, bp, ep, len) < 0)
106 ND_PRINT((ndo, " Ask-neighbors(old)"));
110 ND_PRINT((ndo, " Neighbor
164 print_report(netdissect_options *ndo, register const u_char *bp, register const u_char *ep, register u_int len) argument
222 print_probe(netdissect_options *ndo, register const u_char *bp, register const u_char *ep, register u_int len) argument
253 print_neighbors(netdissect_options *ndo, register const u_char *bp, register const u_char *ep, register u_int len) argument
285 print_neighbors2(netdissect_options *ndo, register const u_char *bp, register const u_char *ep, register u_int len, uint8_t major_version, uint8_t minor_version) argument
334 print_prune(netdissect_options *ndo, register const u_char *bp) argument
348 print_graft(netdissect_options *ndo, register const u_char *bp) argument
359 print_graft_ack(netdissect_options *ndo, register const u_char *bp) argument
[all...]
H A Dprint-null.c56 null_hdr_print(netdissect_options *ndo, u_int family, u_int length) argument
58 if (!ndo->ndo_qflag) {
59 ND_PRINT((ndo, "AF %s (%u)",
62 ND_PRINT((ndo, "%s",
66 ND_PRINT((ndo, ", length %u: ", length));
76 null_if_print(netdissect_options *ndo, const struct pcap_pkthdr *h, const u_char *p) argument
83 ND_PRINT((ndo, "[|null]"));
100 if (ndo->ndo_eflag)
101 null_hdr_print(ndo, family, length);
110 ip_print(ndo,
[all...]
H A Dprint-hsrp.c96 hsrp_print(netdissect_options *ndo, register const uint8_t *bp, register u_int len) argument
101 ND_PRINT((ndo, "HSRPv%d", hp->hsrp_version));
105 ND_PRINT((ndo, "-"));
106 ND_PRINT((ndo, "%s ", tok2strary(op_code_str, "unknown (%d)", hp->hsrp_op_code)));
107 ND_PRINT((ndo, "%d: ", len));
109 ND_PRINT((ndo, "state=%s ", tok2str(states, "Unknown (%d)", hp->hsrp_state)));
111 ND_PRINT((ndo, "group=%d ", hp->hsrp_group));
114 ND_PRINT((ndo, "[reserved=%d!] ", hp->hsrp_reserved));
117 ND_PRINT((ndo, "addr=%s", ipaddr_string(ndo,
[all...]
H A Dprint-raw.c37 raw_if_print(netdissect_options *ndo, const struct pcap_pkthdr *h, const u_char *p) argument
39 if (ndo->ndo_eflag)
40 ND_PRINT((ndo, "ip: "));
42 ipN_print(ndo, p, h->len);
H A Dprint.h31 void init_print(netdissect_options *ndo, uint32_t localnet, uint32_t mask,
36 if_printer get_if_printer(netdissect_options *ndo, int type);
38 void pretty_print_packet(netdissect_options *ndo,
42 void ndo_set_function_pointers(netdissect_options *ndo);
H A Dprint-msnlb.c51 msnlb_print(netdissect_options *ndo, const u_char *bp) argument
58 ND_PRINT((ndo, "MS NLB heartbeat, host priority: %u,",
60 ND_PRINT((ndo, " cluster IP: %s,", ipaddr_string(ndo, &(hb->virtual_ip))));
61 ND_PRINT((ndo, " host IP: %s", ipaddr_string(ndo, &(hb->host_ip))));
64 ND_PRINT((ndo, "[|MS NLB]"));
H A Dprint-vxlan.c48 vxlan_print(netdissect_options *ndo, const u_char *bp, u_int len) argument
64 ND_PRINT((ndo, "VXLAN, "));
65 ND_PRINT((ndo, "flags [%s] (0x%02x), ", flags & 0x08 ? "I" : ".", flags));
66 ND_PRINT((ndo, "vni %u\n", vni));
68 ether_print(ndo, bp, len - VXLAN_HDR_LEN, ndo->ndo_snapend - bp, NULL, NULL);
73 ND_PRINT((ndo, "%s", tstr));
H A Dprint-ipx.c72 ipx_print(netdissect_options *ndo, const u_char *p, u_int length) argument
76 if (!ndo->ndo_eflag)
77 ND_PRINT((ndo, "IPX "));
80 ND_PRINT((ndo, "%s.%04x > ",
84 ND_PRINT((ndo, "%s.%04x: ",
92 ipx_decode(ndo, ipx, p + ipxSize, length - ipxSize);
95 ND_PRINT((ndo, "[|ipx %d]", length));
110 ipx_decode(netdissect_options *ndo, const struct ipxHdr *ipx, const u_char *datap, u_int length) argument
117 ND_PRINT((ndo, "ipx-ncp %d", length));
120 ipx_sap_print(ndo, (cons
150 ipx_sap_print(netdissect_options *ndo, const u_short *ipx, u_int length) argument
202 ipx_rip_print(netdissect_options *ndo, const u_short *ipx, u_int length) argument
[all...]
H A Dprint-cdp.c94 cdp_print(netdissect_options *ndo, argument
101 ND_PRINT((ndo, "%s", tstr));
108 ND_PRINT((ndo, "CDPv%u, ttl: %us", *(tptr + CDP_HEADER_VERSION_OFFSET),
110 if (ndo->ndo_vflag)
111 ND_PRINT((ndo, ", checksum: 0x%04x (unverified), length %u", EXTRACT_16BITS(tptr+CDP_HEADER_CHECKSUM_OFFSET), length));
119 if (ndo->ndo_vflag)
120 ND_PRINT((ndo, "\n\t%s (0x%02x), TLV length: %u byte%s (too short)",
126 ND_PRINT((ndo, ", %s TLV length %u too short",
136 if (ndo->ndo_vflag || type == 1) { /* in non-verbose mode just print Device-ID */
138 if (ndo
279 cdp_print_addr(netdissect_options *ndo, const u_char * p, int l) argument
372 cdp_print_prefixes(netdissect_options *ndo, const u_char * p, int l) argument
[all...]
H A Dprint-nfs.c202 print_nfsaddr(netdissect_options *ndo, argument
213 strlcpy(srcaddr, ipaddr_string(ndo, &ip->ip_src), sizeof(srcaddr));
214 strlcpy(dstaddr, ipaddr_string(ndo, &ip->ip_dst), sizeof(dstaddr));
218 strlcpy(srcaddr, ip6addr_string(ndo, &ip6->ip6_src),
220 strlcpy(dstaddr, ip6addr_string(ndo, &ip6->ip6_dst),
229 ND_PRINT((ndo, "%s.%s > %s.%s: ", srcaddr, s, dstaddr, d));
233 parse_sattr3(netdissect_options *ndo, argument
302 print_sattr3(netdissect_options *ndo, argument
306 ND_PRINT((ndo, " mode %o", sa3->sa_mode));
308 ND_PRINT((ndo, " ui
322 nfsreply_print(netdissect_options *ndo, register const u_char *bp, u_int length, register const u_char *bp2) argument
353 nfsreply_print_noaddr(netdissect_options *ndo, register const u_char *bp, u_int length, register const u_char *bp2) argument
418 parsereq(netdissect_options *ndo, register const struct sunrpc_msg *rp, register u_int length) argument
449 parsefh(netdissect_options *ndo, register const uint32_t *dp, int v3) argument
474 parsefn(netdissect_options *ndo, register const uint32_t *dp) argument
510 parsefhn(netdissect_options *ndo, register const uint32_t *dp, int v3) argument
521 nfsreq_print_noaddr(netdissect_options *ndo, register const u_char *bp, u_int length, register const u_char *bp2) argument
785 nfs_printfh(netdissect_options *ndo, register const uint32_t *dp, const u_int len) argument
866 xid_map_enter(netdissect_options *ndo, const struct sunrpc_msg *rp, const u_char *bp) argument
976 parserep(netdissect_options *ndo, register const struct sunrpc_msg *rp, register u_int length) argument
1026 parsestatus(netdissect_options *ndo, const uint32_t *dp, int *er) argument
1048 parsefattr(netdissect_options *ndo, const uint32_t *dp, int verbose, int v3) argument
1117 parseattrstat(netdissect_options *ndo, const uint32_t *dp, int verbose, int v3) argument
1132 parsediropres(netdissect_options *ndo, const uint32_t *dp) argument
1150 parselinkres(netdissect_options *ndo, const uint32_t *dp, int v3) argument
1167 parsestatfs(netdissect_options *ndo, const uint32_t *dp, int v3) argument
1220 parserddires(netdissect_options *ndo, const uint32_t *dp) argument
1245 parse_wcc_attr(netdissect_options *ndo, const uint32_t *dp) argument
1260 parse_pre_op_attr(netdissect_options *ndo, const uint32_t *dp, int verbose) argument
1282 parse_post_op_attr(netdissect_options *ndo, const uint32_t *dp, int verbose) argument
1298 parse_wcc_data(netdissect_options *ndo, const uint32_t *dp, int verbose) argument
1312 parsecreateopres(netdissect_options *ndo, const uint32_t *dp, int verbose) argument
1343 parsewccres(netdissect_options *ndo, const uint32_t *dp, int verbose) argument
1354 parsev3rddirres(netdissect_options *ndo, const uint32_t *dp, int verbose) argument
1378 parsefsinfo(netdissect_options *ndo, const uint32_t *dp) argument
1416 parsepathconf(netdissect_options *ndo, const uint32_t *dp) argument
1447 interp_reply(netdissect_options *ndo, const struct sunrpc_msg *rp, uint32_t proc, uint32_t vers, int length) argument
[all...]
H A Dprint-nsh.c49 nsh_print(netdissect_options *ndo, const u_char *bp, u_int len) argument
85 ND_PRINT((ndo, "NSH, "));
86 if (ndo->ndo_vflag > 1) {
87 ND_PRINT((ndo, "ver %d, ", ver));
89 ND_PRINT((ndo, "flags [%s], ", bittok2str_nosep(nsh_flags, "none", flags)));
90 if (ndo->ndo_vflag > 2) {
91 ND_PRINT((ndo, "length %d, ", length));
92 ND_PRINT((ndo, "md type 0x%x, ", md_type));
94 if (ndo->ndo_vflag > 1) {
95 ND_PRINT((ndo, "nex
[all...]
H A Dprint-usb.c84 usb_header_print(netdissect_options *ndo, const pcap_usb_header *uh) argument
91 ND_PRINT((ndo, "ISOCHRONOUS"));
94 ND_PRINT((ndo, "INTERRUPT"));
97 ND_PRINT((ndo, "CONTROL"));
100 ND_PRINT((ndo, "BULK"));
103 ND_PRINT((ndo, " ?"));
109 ND_PRINT((ndo, " SUBMIT"));
112 ND_PRINT((ndo, " COMPLETE"));
115 ND_PRINT((ndo, " ERROR"));
118 ND_PRINT((ndo, "
138 usb_linux_48_byte_print(netdissect_options *ndo, const struct pcap_pkthdr *h, register const u_char *p) argument
161 usb_linux_64_byte_print(netdissect_options *ndo, const struct pcap_pkthdr *h, register const u_char *p) argument
[all...]
H A Dprint-ip6opts.c45 ip6_sopt_print(netdissect_options *ndo, const u_char *bp, int len) argument
64 ND_PRINT((ndo, ", pad1"));
68 ND_PRINT((ndo, ", padn: trunc"));
71 ND_PRINT((ndo, ", padn"));
75 ND_PRINT((ndo, ", sopt_type %d: trunc)", bp[i]));
78 ND_PRINT((ndo, ", sopt_type 0x%02x: len=%d", bp[i], bp[i + 1]));
85 ND_PRINT((ndo, "[trunc] "));
89 ip6_opt_print(netdissect_options *ndo, const u_char *bp, int len) argument
110 ND_PRINT((ndo, "(pad1)"));
114 ND_PRINT((ndo, "(pad
174 hbhopt_print(netdissect_options *ndo, register const u_char *bp) argument
194 dstopt_print(netdissect_options *ndo, register const u_char *bp) argument
[all...]
H A Dprint-dhcp6.c280 dhcp6opt_print(netdissect_options *ndo, argument
306 ND_PRINT((ndo, " (%s", tok2str(dh6opt_str, "opt_%u", opttype)));
313 ND_PRINT((ndo, " ?)"));
320 ND_PRINT((ndo, " hwaddr/time type %u time %u ",
324 ND_PRINT((ndo, "%02x", tp[i]));
326 ND_PRINT((ndo, ")"));
329 ND_PRINT((ndo, " ?)"));
334 ND_PRINT((ndo, " vid "));
336 ND_PRINT((ndo, "%02x", tp[i]));
338 ND_PRINT((ndo, ")"));
780 dhcp6_print(netdissect_options *ndo, const u_char *cp, u_int length) argument
[all...]
H A Dprint-domain.c54 ns_nskip(netdissect_options *ndo, argument
87 blabel_print(netdissect_options *ndo, argument
102 ND_PRINT((ndo, "\\[x"));
105 ND_PRINT((ndo, "%02x", *bitp));
110 ND_PRINT((ndo, "%02x", tc & (0xff << (8 - b))));
114 ND_PRINT((ndo, "%1x", ((tc >> 4) & 0x0f) & (0x0f << (4 - b))));
116 ND_PRINT((ndo, "/%d]", bitlen));
119 ND_PRINT((ndo, ".../%d]", bitlen));
124 labellen(netdissect_options *ndo, argument
135 ND_PRINT((ndo, "<EL
148 ns_nprint(netdissect_options *ndo, register const u_char *cp, register const u_char *bp) argument
234 ns_cprint(netdissect_options *ndo, register const u_char *cp) argument
323 ns_qprint(netdissect_options *ndo, register const u_char *cp, register const u_char *bp, int is_mdns) argument
358 ns_rprint(netdissect_options *ndo, register const u_char *cp, register const u_char *bp, int is_mdns) argument
577 ns_print(netdissect_options *ndo, register const u_char *bp, u_int length, int is_mdns) argument
[all...]
H A Dprint-geonet.c59 print_btp_body(netdissect_options *ndo, argument
71 ND_PRINT((ndo, "; ItsPduHeader v:%d t:%d-%s", version, msg_type, msg_type_str));
75 print_btp(netdissect_options *ndo, argument
80 ND_PRINT((ndo, "; BTP Dst:%u Src:%u", dest, src));
84 print_long_pos_vector(netdissect_options *ndo, argument
91 ND_PRINT((ndo, "GN_ADDR:%s ", linkaddr_string (ndo, bp, 0, GEONET_ADDR_LEN)));
96 ND_PRINT((ndo, "lat:%d ", lat));
98 ND_PRINT((ndo, "lon:%d", lon));
108 geonet_print(netdissect_options *ndo, cons argument
[all...]
H A Dprint-tftp.c91 tftp_print(netdissect_options *ndo, argument
99 ND_PRINT((ndo, " %d", length));
107 ND_PRINT((ndo, " %s", cp));
120 ND_PRINT((ndo, " "));
122 ND_PRINT((ndo, "\""));
123 ui = fn_printztn(ndo, bp, length, ndo->ndo_snapend);
124 ND_PRINT((ndo, "\""));
133 ND_PRINT((ndo, " "));
134 ui = fn_printztn(ndo, b
[all...]

Completed in 167 milliseconds

1234567