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

/freebsd-9.3-release/contrib/tcpdump/
H A Dprint-ipnet.c24 ipnet_hdr_print(struct netdissect_options *ndo, const u_char *bp, u_int length) argument
29 ND_PRINT((ndo, "%d > %d", hdr->iph_zsrc, hdr->iph_zdst));
31 if (!ndo->ndo_qflag) {
32 ND_PRINT((ndo,", family %s (%d)",
37 ND_PRINT((ndo,", %s",
43 ND_PRINT((ndo, ", length %u: ", length));
47 ipnet_print(struct netdissect_options *ndo, const u_char *p, u_int length, u_int caplen) argument
52 ND_PRINT((ndo, "[|ipnet]"));
56 if (ndo->ndo_eflag)
57 ipnet_hdr_print(ndo,
94 ipnet_if_print(struct netdissect_options *ndo, const struct pcap_pkthdr *h, const u_char *p) argument
[all...]
H A Dprint-ether.c94 ether_hdr_print(netdissect_options *ndo, argument
102 (void)ND_PRINT((ndo, "%s > %s",
107 if (!ndo->ndo_qflag) {
109 (void)ND_PRINT((ndo, ", 802.3"));
111 (void)ND_PRINT((ndo, ", ethertype %s (0x%04x)",
116 (void)ND_PRINT((ndo, ", 802.3"));
118 (void)ND_PRINT((ndo, ", %s", tok2str(ethertype_values,"Unknown Ethertype (0x%04x)", ether_type)));
121 (void)ND_PRINT((ndo, ", length %u: ", length));
131 ether_print(netdissect_options *ndo, argument
133 void (*print_encap_header)(netdissect_options *ndo, cons
250 ether_if_print(netdissect_options *ndo, const struct pcap_pkthdr *h, const u_char *p) argument
268 netanalyzer_if_print(netdissect_options *ndo, const struct pcap_pkthdr *h, const u_char *p) argument
296 netanalyzer_transparent_if_print(netdissect_options *ndo, const struct pcap_pkthdr *h, const u_char *p) argument
323 ethertype_print(netdissect_options *ndo, u_short ether_type, const u_char *p, u_int length, u_int caplen) argument
[all...]
H A Dprint-ppi.c21 ppi_header_print(struct netdissect_options *ndo, const u_char *bp, u_int length) argument
32 if (!ndo->ndo_qflag) {
33 ND_PRINT((ndo,", V.%d DLT %s (%d) len %d", hdr->ppi_ver,
37 ND_PRINT((ndo,", %s", pcap_datalink_val_to_name(dlt)));
40 ND_PRINT((ndo, ", length %u: ", length));
44 ppi_print(struct netdissect_options *ndo, argument
55 ND_PRINT((ndo, "[|ppi]"));
61 if (ndo->ndo_eflag)
62 ppi_header_print(ndo, p, length);
71 ndo_printer(ndo,
89 ppi_if_print(struct netdissect_options *ndo, const struct pcap_pkthdr *h, const u_char *p) argument
[all...]
H A Dprint-802_15_4.c93 ieee802_15_4_if_print(struct netdissect_options *ndo, argument
102 ND_PRINT((ndo, "[|802.15.4] %x", caplen));
114 ND_PRINT((ndo,"IEEE 802.15.4 %s packet ", ftypes[fc & 0x7]));
116 ND_PRINT((ndo,"seq %02x ", seq));
118 ND_PRINT((ndo,"malformed! "));
131 ND_PRINT((ndo,"none "));
134 ND_PRINT((ndo,"reserved destination addressing mode"));
139 ND_PRINT((ndo,"%04x:%04x ", panid, EXTRACT_LE_16BITS(p)));
145 ND_PRINT((ndo,"%04x:%s ", panid, le64addr_string(p)));
149 ND_PRINT((ndo,"< ");
[all...]
H A Dprint-msnlb.c52 msnlb_print(netdissect_options *ndo, const u_char *bp, u_int length) argument
59 ND_PRINT((ndo, "MS NLB heartbeat, host priority: %u,",
61 ND_PRINT((ndo, " cluster IP: %s,", ipaddr_string(&(hb->virtual_ip))));
62 ND_PRINT((ndo, " host IP: %s", ipaddr_string(&(hb->host_ip))));
65 ND_PRINT((ndo, "[|MS NLB]"));
H A Dprint-isakmp.c64 netdissect_options *ndo, u_char tpay, \
100 static const u_char *ikev2_e_print(netdissect_options *ndo,
111 static const u_char *ike_sub0_print(netdissect_options *ndo,u_char, const struct isakmp_gen *,
113 static const u_char *ikev1_sub_print(netdissect_options *ndo,u_char, const struct isakmp_gen *,
116 static const u_char *ikev2_sub_print(netdissect_options *ndo,
128 ikev1_print(netdissect_options *ndo,
161 static const u_char *(*npfunc[])(netdissect_options *ndo, u_char tpay,
224 ND_PRINT((ndo," [|%s]", NPSTR(np))); \
406 hexprint(netdissect_options *ndo, caddr_t loc, size_t len) argument
413 ND_PRINT((ndo,"
417 rawprint(netdissect_options *ndo, caddr_t loc, size_t len) argument
431 ike_show_somedata(struct netdissect_options *ndo, const u_char *cp, const u_char *ep) argument
468 ikev1_attrmap_print(netdissect_options *ndo, const u_char *p, const u_char *ep, const struct attrmap *map, size_t nmap) argument
508 ikev1_attr_print(netdissect_options *ndo, const u_char *p, const u_char *ep) argument
540 ikev1_sa_print(netdissect_options *ndo, u_char tpay _U_, const struct isakmp_gen *ext, u_int item_len _U_, const u_char *ep, u_int32_t phase, u_int32_t doi0 _U_, u_int32_t proto0, int depth) argument
602 ikev1_p_print(netdissect_options *ndo, u_char tpay _U_, const struct isakmp_gen *ext, u_int item_len _U_, const u_char *ep, u_int32_t phase, u_int32_t doi0, u_int32_t proto0 _U_, int depth) argument
765 ikev1_t_print(netdissect_options *ndo, u_char tpay _U_, const struct isakmp_gen *ext, u_int item_len, const u_char *ep, u_int32_t phase _U_, u_int32_t doi _U_, u_int32_t proto, int depth _U_) argument
834 ikev1_ke_print(netdissect_options *ndo, u_char tpay _U_, const struct isakmp_gen *ext, u_int item_len _U_, const u_char *ep _U_, u_int32_t phase _U_, u_int32_t doi _U_, u_int32_t proto _U_, int depth _U_) argument
858 ikev1_id_print(netdissect_options *ndo, u_char tpay _U_, const struct isakmp_gen *ext, u_int item_len _U_, const u_char *ep _U_, u_int32_t phase, u_int32_t doi _U_, u_int32_t proto _U_, int depth _U_) argument
1037 ikev1_cert_print(netdissect_options *ndo, u_char tpay _U_, const struct isakmp_gen *ext, u_int item_len _U_, const u_char *ep _U_, u_int32_t phase _U_, u_int32_t doi0 _U_, u_int32_t proto0 _U_, int depth _U_) argument
1070 ikev1_cr_print(netdissect_options *ndo, u_char tpay _U_, const struct isakmp_gen *ext, u_int item_len _U_, const u_char *ep _U_, u_int32_t phase _U_, u_int32_t doi0 _U_, u_int32_t proto0 _U_, int depth _U_) argument
1102 ikev1_hash_print(netdissect_options *ndo, u_char tpay _U_, const struct isakmp_gen *ext, u_int item_len _U_, const u_char *ep _U_, u_int32_t phase _U_, u_int32_t doi _U_, u_int32_t proto _U_, int depth _U_) argument
1126 ikev1_sig_print(netdissect_options *ndo, u_char tpay _U_, const struct isakmp_gen *ext, u_int item_len _U_, const u_char *ep _U_, u_int32_t phase _U_, u_int32_t doi _U_, u_int32_t proto _U_, int depth _U_) argument
1150 ikev1_nonce_print(netdissect_options *ndo, u_char tpay _U_, const struct isakmp_gen *ext, u_int item_len _U_, const u_char *ep _U_, u_int32_t phase _U_, u_int32_t doi _U_, u_int32_t proto _U_, int depth _U_) argument
1180 ikev1_n_print(netdissect_options *ndo, u_char tpay _U_, const struct isakmp_gen *ext, u_int item_len, const u_char *ep, u_int32_t phase, u_int32_t doi0 _U_, u_int32_t proto0 _U_, int depth) argument
1321 ikev1_d_print(netdissect_options *ndo, u_char tpay _U_, const struct isakmp_gen *ext, u_int item_len _U_, const u_char *ep _U_, u_int32_t phase _U_, u_int32_t doi0 _U_, u_int32_t proto0 _U_, int depth _U_) argument
1365 ikev1_vid_print(netdissect_options *ndo, u_char tpay _U_, const struct isakmp_gen *ext, u_int item_len _U_, const u_char *ep _U_, u_int32_t phase _U_, u_int32_t doi _U_, u_int32_t proto _U_, int depth _U_) argument
1396 ikev2_pay_print(netdissect_options *ndo, const char *payname, int critical) argument
1402 ikev2_gen_print(netdissect_options *ndo, u_char tpay, const struct isakmp_gen *ext) argument
1424 ikev2_t_print(netdissect_options *ndo, u_char tpay _U_, int pcount, const struct isakmp_gen *ext, u_int item_len, const u_char *ep, u_int32_t phase _U_, u_int32_t doi _U_, u_int32_t proto _U_, int depth _U_) argument
1502 ikev2_p_print(netdissect_options *ndo, u_char tpay _U_, int pcount _U_, const struct isakmp_gen *ext, u_int item_len _U_, const u_char *ep, u_int32_t phase, u_int32_t doi0, u_int32_t proto0 _U_, int depth) argument
1538 ikev2_sa_print(netdissect_options *ndo, u_char tpay, const struct isakmp_gen *ext1, u_int item_len _U_, const u_char *ep _U_, u_int32_t phase _U_, u_int32_t doi _U_, u_int32_t proto _U_, int depth _U_) argument
1566 ikev2_ke_print(netdissect_options *ndo, u_char tpay, const struct isakmp_gen *ext, u_int item_len _U_, const u_char *ep _U_, u_int32_t phase _U_, u_int32_t doi _U_, u_int32_t proto _U_, int depth _U_) argument
1595 ikev2_ID_print(netdissect_options *ndo, u_char tpay, const struct isakmp_gen *ext, u_int item_len _U_, const u_char *ep _U_, u_int32_t phase _U_, u_int32_t doi _U_, u_int32_t proto _U_, int depth _U_) argument
1677 ikev2_cert_print(netdissect_options *ndo, u_char tpay, const struct isakmp_gen *ext, u_int item_len _U_, const u_char *ep _U_, u_int32_t phase _U_, u_int32_t doi _U_, u_int32_t proto _U_, int depth _U_) argument
1687 ikev2_cr_print(netdissect_options *ndo, u_char tpay, const struct isakmp_gen *ext, u_int item_len _U_, const u_char *ep _U_, u_int32_t phase _U_, u_int32_t doi _U_, u_int32_t proto _U_, int depth _U_) argument
1697 ikev2_auth_print(netdissect_options *ndo, u_char tpay, const struct isakmp_gen *ext, u_int item_len _U_, const u_char *ep _U_, u_int32_t phase _U_, u_int32_t doi _U_, u_int32_t proto _U_, int depth _U_) argument
1733 ikev2_nonce_print(netdissect_options *ndo, u_char tpay, const struct isakmp_gen *ext, u_int item_len _U_, const u_char *ep _U_, u_int32_t phase _U_, u_int32_t doi _U_, u_int32_t proto _U_, int depth _U_) argument
1763 ikev2_n_print(netdissect_options *ndo, u_char tpay _U_, const struct isakmp_gen *ext, u_int item_len _U_, const u_char *ep _U_, u_int32_t phase _U_, u_int32_t doi _U_, u_int32_t proto _U_, int depth _U_) argument
1972 ikev2_d_print(netdissect_options *ndo, u_char tpay, const struct isakmp_gen *ext, u_int item_len _U_, const u_char *ep _U_, u_int32_t phase _U_, u_int32_t doi _U_, u_int32_t proto _U_, int depth _U_) argument
1982 ikev2_vid_print(netdissect_options *ndo, u_char tpay, const struct isakmp_gen *ext, u_int item_len _U_, const u_char *ep _U_, u_int32_t phase _U_, u_int32_t doi _U_, u_int32_t proto _U_, int depth _U_) argument
2016 ikev2_TS_print(netdissect_options *ndo, u_char tpay, const struct isakmp_gen *ext, u_int item_len _U_, const u_char *ep _U_, u_int32_t phase _U_, u_int32_t doi _U_, u_int32_t proto _U_, int depth _U_) argument
2026 ikev2_e_print(netdissect_options *ndo, _U_ struct isakmp *base, u_char tpay, const struct isakmp_gen *ext, u_int item_len _U_, const u_char *ep _U_, _U_ u_int32_t phase, _U_ u_int32_t doi, _U_ u_int32_t proto, _U_ int depth) argument
2097 ikev2_cp_print(netdissect_options *ndo, u_char tpay, const struct isakmp_gen *ext, u_int item_len _U_, const u_char *ep _U_, u_int32_t phase _U_, u_int32_t doi _U_, u_int32_t proto _U_, int depth _U_) argument
2107 ikev2_eap_print(netdissect_options *ndo, u_char tpay, const struct isakmp_gen *ext, u_int item_len _U_, const u_char *ep _U_, u_int32_t phase _U_, u_int32_t doi _U_, u_int32_t proto _U_, int depth _U_) argument
2117 ike_sub0_print(netdissect_options *ndo, u_char np, const struct isakmp_gen *ext, const u_char *ep, u_int32_t phase, u_int32_t doi, u_int32_t proto, int depth) argument
2158 ikev1_sub_print(netdissect_options *ndo, u_char np, const struct isakmp_gen *ext, const u_char *ep, u_int32_t phase, u_int32_t doi, u_int32_t proto, int depth) argument
2218 ikev1_print(netdissect_options *ndo, const u_char *bp, u_int length, const u_char *bp2, struct isakmp *base) argument
2294 ikev2_sub0_print(netdissect_options *ndo, struct isakmp *base, u_char np, int pcount, const struct isakmp_gen *ext, const u_char *ep, u_int32_t phase, u_int32_t doi, u_int32_t proto, int depth) argument
2345 ikev2_sub_print(netdissect_options *ndo, struct isakmp *base, u_char np, const struct isakmp_gen *ext, const u_char *ep, u_int32_t phase, u_int32_t doi, u_int32_t proto, int depth) argument
2390 ikev2_print(netdissect_options *ndo, const u_char *bp, u_int length, const u_char *bp2 _U_, struct isakmp *base) argument
2450 isakmp_print(netdissect_options *ndo, const u_char *bp, u_int length, const u_char *bp2) argument
2512 isakmp_rfc3948_print(netdissect_options *ndo, const u_char *bp, u_int length, const u_char *bp2) argument
[all...]
H A Dprint-arp.c187 atmarp_addr_print(netdissect_options *ndo, argument
192 ND_PRINT((ndo, "<No address>"));
194 ND_PRINT((ndo, "%s", linkaddr_string(ha, LINKADDR_ATM, ha_len)));
196 ND_PRINT((ndo, ",%s",
202 atmarp_print(netdissect_options *ndo, argument
216 ND_PRINT((ndo, "[|ARP]"));
221 if (!ndo->ndo_eflag) {
222 ND_PRINT((ndo, "ARP, "));
228 ndo->ndo_vflag) {
229 ND_PRINT((ndo, "
298 arp_print(netdissect_options *ndo, const u_char *bp, u_int length, u_int caplen) argument
[all...]
H A Dprint-esp.c90 int esp_print_decrypt_buffer_by_ikev2(netdissect_options *ndo, argument
104 for (sa = ndo->ndo_sa_list_head; sa != NULL; sa = sa->next) {
128 (*ndo->ndo_warning)(ndo, "espkey init failed");
133 ndo->ndo_packetp = buf;
134 ndo->ndo_snapend = end;
140 static void esp_print_addsa(netdissect_options *ndo, argument
149 (*ndo->ndo_error)(ndo, "ran out of memory to allocate sa structure");
154 ndo
161 hexdigit(netdissect_options *ndo, char hex) argument
175 hex2byte(netdissect_options *ndo, char *hexstring) argument
187 espprint_decode_hex(netdissect_options *ndo, u_char *binbuf, unsigned int binbuf_len, char *hex) argument
216 espprint_decode_encalgo(netdissect_options *ndo, char *decode, struct sa_list *sa) argument
286 espprint_decode_authalgo(netdissect_options *ndo, char *decode, struct sa_list *sa) argument
305 esp_print_decode_ikeline(netdissect_options *ndo, char *line, const char *file, int lineno) argument
369 esp_print_decode_onesecret(netdissect_options *ndo, char *line, const char *file, int lineno) argument
487 esp_print_decodesecret(netdissect_options *ndo) argument
516 esp_print(netdissect_options *ndo, const u_char *bp, const int length, const u_char *bp2 _U_ , int *nhdr _U_ , int *padlen _U_ ) argument
[all...]
H A Dprint-rrcp.c84 rrcp_print(netdissect_options *ndo, argument
102 ND_PRINT((ndo, "%s > %s, %s %s",
108 ND_PRINT((ndo, ": %s",
113 ND_PRINT((ndo, " addr=0x%04x, data=0x%08x",
119 ND_PRINT((ndo, ", auth=0x%04x",
125 ND_PRINT((ndo, " downlink_port=%d, uplink_port=%d, uplink_mac=%s, vendor_id=%08x ,chip_id=%04x ",
133 ND_PRINT((ndo, ", cookie=0x%08x%08x ",
137 if (!ndo->ndo_vflag)
142 ND_PRINT((ndo, "[|rrcp]"));
H A Dprint-ip6.c84 ip6_print(netdissect_options *ndo, const u_char *bp, u_int length) argument
100 (void)ND_PRINT((ndo, "truncated-ip6 %u", length));
104 if (!ndo->ndo_eflag)
105 ND_PRINT((ndo, "IP6 "));
110 (void)ND_PRINT((ndo, "truncated-ip6 - %u bytes missing!",
113 if (ndo->ndo_vflag) {
115 ND_PRINT((ndo, "("));
119 (void)ND_PRINT((ndo, "pri 0x%02x, ", (flow & 0x0f000000) >> 24));
121 (void)ND_PRINT((ndo, "flowlabel 0x%06x, ", flow & 0x00ffffff));
125 (void)ND_PRINT((ndo, "clas
[all...]
H A Dprint-tipc.c165 print_payload(netdissect_options *ndo, const struct payload_tipc_pkthdr *ap) argument
192 ND_PRINT((ndo, "TIPC v%u.0 %u.%u.%u:%u > %u, headerlength %u bytes, MessageSize %u bytes, %s, messageType %s",
203 ND_PRINT((ndo, "TIPC v%u.0 %u.%u.%u:%u > %u.%u.%u:%u, headerlength %u bytes, MessageSize %u bytes, %s, messageType %s",
213 if (ndo->ndo_vflag) {
218 ND_PRINT((ndo, "\n\tPrevious Node %u.%u.%u, Broadcast Ack %u, Link Ack %u, Link Sequence %u",
226 ND_PRINT((ndo, "[|TIPC]"));
230 print_internal(netdissect_options *ndo, const struct internal_tipc_pkthdr *ap) argument
260 ND_PRINT((ndo, "TIPC v%u.0 %u.%u.%u > %u.%u.%u, headerlength %u bytes, MessageSize %u bytes, %s, messageType %s (0x%08x)",
268 if (ndo->ndo_vflag) {
285 ND_PRINT((ndo, "\
298 print_link_conf(netdissect_options *ndo, const struct link_conf_tipc_pkthdr *ap) argument
345 tipc_print(netdissect_options *ndo, const u_char *bp, u_int length _U_, u_int caplen _U_) argument
[all...]
H A Dnetdissect.h223 * The "ndo->ndo_snapend - (l) <= ndo->ndo_snapend" checks to make sure
224 * "l" isn't so large that "ndo->ndo_snapend - (l)" underflows.
228 #define ND_TTEST2(var, l) (ndo->ndo_snapend - (l) <= ndo->ndo_snapend && \
229 (const u_char *)&(var) <= ndo->ndo_snapend - (l))
240 #define ND_PRINT(STUFF) (*ndo->ndo_printf)STUFF
241 #define ND_DEFAULTPRINT(ap, length) (*ndo->ndo_default_print)(ndo, ap, length)
277 typedef u_int (*if_ndo_printer)(struct netdissect_options *ndo,
[all...]
H A Dprint-lane.c64 lane_hdr_print(netdissect_options *ndo, const u_char *bp) argument
66 (void)ND_PRINT((ndo, "lecid:%x ", EXTRACT_16BITS(bp)));
H A Dprint-ip.c324 ip_print_demux(netdissect_options *ndo, argument
345 ipds->advance = esp_print(ndo, ipds->cp, ipds->len,
416 ND_PRINT((ndo, " nd %d", ipds->len));
433 ip_print(ndo, ipds->cp, ipds->len);
435 ND_PRINT((ndo, " (ipip-proto-4)"));
443 ip6_print(ndo, ipds->cp, ipds->len);
491 if (ndo->ndo_nflag==0 && (proto = getprotobynumber(ipds->nh)) != NULL)
492 ND_PRINT((ndo, " %s", proto->p_name));
494 ND_PRINT((ndo, " ip-proto-%d", ipds->nh));
495 ND_PRINT((ndo, "
501 ip_print_inner(netdissect_options *ndo, const u_char *bp, u_int length, u_int nh, const u_char *bp2) argument
523 ip_print(netdissect_options *ndo, const u_char *bp, u_int length) argument
[all...]
H A Dprint-icmp6.c235 rpl_print(netdissect_options *ndo, argument
246 ND_PRINT((ndo, ", (SEC)"));
248 ND_PRINT((ndo, ", (CLR)"));
253 ND_PRINT((ndo, "DODAG Information Solicitation"));
254 if(ndo->ndo_vflag) {
258 ND_PRINT((ndo, "DODAG Information Object"));
259 if(ndo->ndo_vflag) {
273 ND_PRINT((ndo, " [seq:%u,instance:%u,rank:%u,dagid:%s]",
281 ND_PRINT((ndo, "Destination Advertisement Object"));
282 if(ndo
303 icmp6_print(netdissect_options *ndo, const u_char *bp, u_int length, const u_char *bp2, int fragmented) argument
[all...]
H A Dtcpdump.c130 static void ndo_error(netdissect_options *ndo, const char *fmt, ...)
132 static void ndo_warning(netdissect_options *ndo, const char *fmt, ...);
374 netdissect_options *ndo; member in struct:print_info
623 static int tcpdump_printf(netdissect_options *ndo _U_,
643 printinfo.ndo = gndo;
1907 hdrlen = (*print_info->p.ndo_printer)(print_info->ndo, h, sp);
2008 ndo_default_print(netdissect_options *ndo _U_, const u_char *bp, u_int length)
2099 ndo_error(netdissect_options *ndo _U_, const char *fmt, ...)
2118 ndo_warning(netdissect_options *ndo _U_, const char *fmt, ...)
H A Dprint-eap.c162 eap_print(netdissect_options *ndo _U_,
/freebsd-9.3-release/usr.sbin/rtsold/
H A Drtsol.c253 struct nd_opt_hdr *ndo; local
399 ndo = (struct nd_opt_hdr *)raoptp;
400 warnmsg(LOG_DEBUG, __func__, "ndo = %p", raoptp);
401 warnmsg(LOG_DEBUG, __func__, "ndo->nd_opt_type = %d",
402 ndo->nd_opt_type);
403 warnmsg(LOG_DEBUG, __func__, "ndo->nd_opt_len = %d",
404 ndo->nd_opt_len);
406 switch (ndo->nd_opt_type) {
452 rao = find_raopt(rai, ndo->nd_opt_type, nsbuf,
456 rao->rao_type = ndo
[all...]

Completed in 208 milliseconds