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

1234567

/external/tcpdump/
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-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
75 ep = (const u_char *)ndo->ndo_snapend;
89 ND_PRINT((ndo, " Probe"));
90 if (ndo->ndo_vflag) {
91 if (print_probe(ndo, bp, ep, len) < 0)
97 ND_PRINT((ndo, " Report"));
98 if (ndo->ndo_vflag > 1) {
99 if (print_report(ndo, bp, ep, len) < 0)
105 ND_PRINT((ndo, " Ask-neighbors(old)"));
109 ND_PRINT((ndo, " Neighbor
163 print_report(netdissect_options *ndo, register const u_char *bp, register const u_char *ep, register u_int len) argument
221 print_probe(netdissect_options *ndo, register const u_char *bp, register const u_char *ep, register u_int len) argument
252 print_neighbors(netdissect_options *ndo, register const u_char *bp, register const u_char *ep, register u_int len) argument
284 print_neighbors2(netdissect_options *ndo, register const u_char *bp, register const u_char *ep, register u_int len) 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
787 nfs_printfh(netdissect_options *ndo, register const uint32_t *dp, const u_int len) argument
864 xid_map_enter(netdissect_options *ndo, const struct sunrpc_msg *rp, const u_char *bp) argument
974 parserep(netdissect_options *ndo, register const struct sunrpc_msg *rp, register u_int length) argument
1024 parsestatus(netdissect_options *ndo, const uint32_t *dp, int *er) argument
1046 parsefattr(netdissect_options *ndo, const uint32_t *dp, int verbose, int v3) argument
1115 parseattrstat(netdissect_options *ndo, const uint32_t *dp, int verbose, int v3) argument
1130 parsediropres(netdissect_options *ndo, const uint32_t *dp) argument
1148 parselinkres(netdissect_options *ndo, const uint32_t *dp, int v3) argument
1165 parsestatfs(netdissect_options *ndo, const uint32_t *dp, int v3) argument
1218 parserddires(netdissect_options *ndo, const uint32_t *dp) argument
1243 parse_wcc_attr(netdissect_options *ndo, const uint32_t *dp) argument
1257 parse_pre_op_attr(netdissect_options *ndo, const uint32_t *dp, int verbose) argument
1279 parse_post_op_attr(netdissect_options *ndo, const uint32_t *dp, int verbose) argument
1295 parse_wcc_data(netdissect_options *ndo, const uint32_t *dp, int verbose) argument
1309 parsecreateopres(netdissect_options *ndo, const uint32_t *dp, int verbose) argument
1340 parsewccres(netdissect_options *ndo, const uint32_t *dp, int verbose) argument
1351 parsev3rddirres(netdissect_options *ndo, const uint32_t *dp, int verbose) argument
1375 parsefsinfo(netdissect_options *ndo, const uint32_t *dp) argument
1413 parsepathconf(netdissect_options *ndo, const uint32_t *dp) argument
1444 interp_reply(netdissect_options *ndo, const struct sunrpc_msg *rp, uint32_t proc, uint32_t vers, int length) argument
[all...]
H A Dprint-sll.c135 sll_print(netdissect_options *ndo, register const struct sll_header *sllp, u_int length) argument
139 ND_PRINT((ndo, "%3s ",tok2str(sll_pkttype_values,"?",EXTRACT_16BITS(&sllp->sll_pkttype))));
147 ND_PRINT((ndo, "%s ", etheraddr_string(ndo, sllp->sll_addr)));
149 if (!ndo->ndo_qflag) {
162 ND_PRINT((ndo, "802.3"));
169 ND_PRINT((ndo, "802.2"));
176 ND_PRINT((ndo, "ethertype Unknown (0x%04x)",
181 ND_PRINT((ndo, "ethertype %s (0x%04x)",
185 ND_PRINT((ndo, ", lengt
196 sll_if_print(netdissect_options *ndo, const struct pcap_pkthdr *h, const u_char *p) 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-802_15_4.c91 ieee802_15_4_if_print(netdissect_options *ndo, argument
100 ND_PRINT((ndo, "[|802.15.4] %x", caplen));
112 ND_PRINT((ndo,"IEEE 802.15.4 %s packet ", ftypes[fc & 0x7]));
113 if (ndo->ndo_vflag)
114 ND_PRINT((ndo,"seq %02x ", seq));
116 ND_PRINT((ndo,"invalid! "));
121 if (!ndo->ndo_vflag) {
129 ND_PRINT((ndo,"none "));
132 ND_PRINT((ndo,"reserved destination addressing mode"));
137 ND_PRINT((ndo,"
[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-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-beep.c41 beep_print(netdissect_options *ndo, const u_char *bp, u_int length) argument
45 ND_PRINT((ndo, " BEEP MSG"));
47 ND_PRINT((ndo, " BEEP RPY"));
49 ND_PRINT((ndo, " BEEP ERR"));
51 ND_PRINT((ndo, " BEEP ANS"));
53 ND_PRINT((ndo, " BEEP NUL"));
55 ND_PRINT((ndo, " BEEP SEQ"));
57 ND_PRINT((ndo, " BEEP END"));
59 ND_PRINT((ndo, " BEEP (payload or undecoded)"));
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, ")"));
776 dhcp6_print(netdissect_options *ndo, const u_char *cp, u_int length) argument
[all...]
H A Dprint-vxlan-gpe.c61 vxlan_gpe_print(netdissect_options *ndo, const u_char *bp, u_int len) argument
81 ND_PRINT((ndo, "VXLAN-GPE, "));
82 ND_PRINT((ndo, "flags [%s], ",
84 ND_PRINT((ndo, "vni %u", vni));
85 ND_PRINT((ndo, ndo->ndo_vflag ? "\n " : ": "));
89 ip_print(ndo, bp, len - 8);
92 ip6_print(ndo, bp, len - 8);
95 ether_print(ndo, bp, len - 8, ndo
[all...]

Completed in 214 milliseconds

1234567