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

12345678

/freebsd-current/contrib/tcpdump/
H A Dprint-unsupported.c28 unsupported_if_print(netdissect_options *ndo, const struct pcap_pkthdr *h, argument
31 ndo->ndo_protocol = "unsupported";
32 nd_print_protocol_caps(ndo);
33 hex_and_ascii_print(ndo, "\n\t", p, h->caplen);
H A Dprint-raw.c37 raw_if_print(netdissect_options *ndo, const struct pcap_pkthdr *h, const u_char *p) argument
39 ndo->ndo_protocol = "raw";
40 ndo->ndo_ll_hdr_len += 0;
41 if (ndo->ndo_eflag)
44 ipN_print(ndo, p, h->len);
H A Dprint-http.c70 http_print(netdissect_options *ndo, const u_char *pptr, u_int len) argument
72 ndo->ndo_protocol = "http";
73 txtproto_print(ndo, pptr, len, httpcmds, RESP_CODE_SECOND_TOKEN);
H A Dprint-ftp.c25 ftp_print(netdissect_options *ndo, const u_char *pptr, u_int len) argument
27 ndo->ndo_protocol = "ftp";
28 txtproto_print(ndo, pptr, len, NULL, 0);
H A Dprint-rtsp.c40 rtsp_print(netdissect_options *ndo, const u_char *pptr, u_int len) argument
42 ndo->ndo_protocol = "rtsp";
43 txtproto_print(ndo, pptr, len, rtspcmds, RESP_CODE_SECOND_TOKEN);
H A Dprint-sip.c50 sip_print(netdissect_options *ndo, const u_char *pptr, u_int len) argument
52 ndo->ndo_protocol = "sip";
53 txtproto_print(ndo, pptr, len, sipcmds, RESP_CODE_SECOND_TOKEN);
H A Dprint-smtp.c25 smtp_print(netdissect_options *ndo, const u_char *pptr, u_int len) argument
27 ndo->ndo_protocol = "smtp";
28 txtproto_print(ndo, pptr, len, NULL, 0);
H A Dprint-whois.c27 whois_print(netdissect_options *ndo, const u_char *pptr, u_int len) argument
29 ndo->ndo_protocol = "whois";
30 txtproto_print(ndo, pptr, len, NULL, 0);
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 ndo->ndo_protocol = "beep";
53 if (l_strnstart(ndo, "MSG", 4, (const char *)bp, length)) /* A REQuest */
55 else if (l_strnstart(ndo, "RPY ", 4, (const char *)bp, length))
57 else if (l_strnstart(ndo, "ERR ", 4, (const char *)bp, length))
59 else if (l_strnstart(ndo, "ANS ", 4, (const char *)bp, length))
61 else if (l_strnstart(ndo, "NUL ", 4, (const char *)bp, length))
63 else if (l_strnstart(ndo, "SEQ ", 4, (const char *)bp, length))
65 else if (l_strnstart(ndo, "EN
[all...]
H A Dprint-null.c57 null_hdr_print(netdissect_options *ndo, uint32_t family, u_int length) argument
59 if (!ndo->ndo_qflag) {
77 null_if_print(netdissect_options *ndo, const struct pcap_pkthdr *h, const u_char *p) argument
83 ndo->ndo_protocol = "null";
85 ndo->ndo_ll_hdr_len += NULL_HDRLEN;
100 if (ndo->ndo_eflag)
101 null_hdr_print(ndo, family, length);
110 ip_print(ndo, p, length);
116 ip6_print(ndo, p, length);
120 isoclns_print(ndo,
[all...]
H A Dnetdissect.c151 nd_push_buffer(netdissect_options *ndo, u_char *new_buffer, argument
160 ndspi->ndspi_packetp = ndo->ndo_packetp;
161 ndspi->ndspi_snapend = ndo->ndo_snapend;
162 ndspi->ndspi_prev = ndo->ndo_packet_info_stack;
164 ndo->ndo_packetp = new_packetp;
165 ndo->ndo_snapend = new_packetp + newlen;
166 ndo->ndo_packet_info_stack = ndspi;
185 nd_push_snaplen(netdissect_options *ndo, const u_char *bp, const u_int newlen) argument
194 ndspi->ndspi_packetp = ndo->ndo_packetp;
195 ndspi->ndspi_snapend = ndo
245 nd_change_snaplen(netdissect_options *ndo, const u_char *bp, const u_int newlen) argument
283 nd_pop_packet_info(netdissect_options *ndo) argument
297 nd_pop_all_packet_info(netdissect_options *ndo) argument
[all...]
H A Dnetdissect-alloc.c32 nd_add_alloc_list(netdissect_options *ndo, nd_mem_chunk_t *chunkp) argument
34 if (ndo->ndo_last_mem_p == NULL) /* first memory allocation */
37 chunkp->prev_mem_p = ndo->ndo_last_mem_p;
38 ndo->ndo_last_mem_p = chunkp;
43 nd_malloc(netdissect_options *ndo, size_t size) argument
48 nd_add_alloc_list(ndo, chunkp);
54 nd_free_all(netdissect_options *ndo) argument
57 current = ndo->ndo_last_mem_p;
63 ndo->ndo_last_mem_p = NULL;
H A Dprint-ipoib.c44 ipoib_hdr_print(netdissect_options *ndo, const u_char *bp, u_int length) argument
49 if (!ndo->ndo_qflag) {
68 ipoib_print(netdissect_options *ndo, const u_char *p, u_int length, u_int caplen, argument
76 nd_print_trunc(ndo);
77 ndo->ndo_ll_hdr_len += caplen;
82 nd_print_trunc(ndo);
83 ndo->ndo_ll_hdr_len += length;
87 if (ndo->ndo_eflag) {
88 nd_print_protocol_caps(ndo);
91 ipoib_hdr_print(ndo,
121 ipoib_if_print(netdissect_options *ndo, const struct pcap_pkthdr *h, const u_char *p) argument
[all...]
H A Dprint-ip-demux.c38 ip_demux_print(netdissect_options *ndo, argument
53 ndo->ndo_protocol = "ah";
54 nd_print_trunc(ndo);
58 advance = ah_print(ndo, bp);
67 esp_print(ndo, bp, length, iph, ver, fragmented, ttl_hl);
79 ipcomp_print(ndo, bp);
90 sctp_print(ndo, bp, iph, length);
94 dccp_print(ndo, bp, iph, length);
98 tcp_print(ndo, bp, length, iph, fragmented);
102 udp_print(ndo, b
[all...]
H A Daddrtoname.h72 get_linkaddr_string(netdissect_options *ndo, const uint8_t *p, argument
76 nd_trunc_longjmp(ndo);
77 return linkaddr_string(ndo, p, type, len);
81 get_etheraddr_string(netdissect_options *ndo, const uint8_t *p) argument
84 nd_trunc_longjmp(ndo);
85 return etheraddr_string(ndo, p);
89 get_le64addr_string(netdissect_options *ndo, const u_char *p) argument
92 nd_trunc_longjmp(ndo);
93 return le64addr_string(ndo, p);
97 get_isonsap_string(netdissect_options *ndo, cons argument
106 get_ipaddr_string(netdissect_options *ndo, const u_char *p) argument
114 get_ip6addr_string(netdissect_options *ndo, const u_char *p) argument
[all...]
H A Dprint-ether.c111 ether_addresses_print(netdissect_options *ndo, const u_char *src, argument
119 ether_type_print(netdissect_options *ndo, uint16_t type) argument
121 if (!ndo->ndo_qflag)
138 ether_common_print(netdissect_options *ndo, const u_char *p, u_int length, argument
140 void (*print_switch_tag)(netdissect_options *ndo, const u_char *),
142 void (*print_encap_header)(netdissect_options *ndo, const u_char *),
155 nd_print_invalid(ndo);
159 nd_print_trunc(ndo);
164 (*print_encap_header)(ndo, encap_header_arg);
183 if (ndo
424 ether_switch_tag_print(netdissect_options *ndo, const u_char *p, u_int length, u_int caplen, void (*print_switch_tag)(netdissect_options *, const u_char *), u_int switch_tag_len) argument
442 ether_print(netdissect_options *ndo, const u_char *p, u_int length, u_int caplen, void (*print_encap_header)(netdissect_options *ndo, const u_char *), const u_char *encap_header_arg) argument
459 ether_if_print(netdissect_options *ndo, const struct pcap_pkthdr *h, const u_char *p) argument
477 netanalyzer_if_print(netdissect_options *ndo, const struct pcap_pkthdr *h, const u_char *p) argument
503 netanalyzer_transparent_if_print(netdissect_options *ndo, const struct pcap_pkthdr *h, const u_char *p) argument
528 ethertype_print(netdissect_options *ndo, u_short ether_type, const u_char *p, u_int length, u_int caplen, const struct lladdr_info *src, const struct lladdr_info *dst) argument
[all...]
H A Dprint-pptp.c280 pptp_bearer_cap_print(netdissect_options *ndo, argument
296 pptp_bearer_type_print(netdissect_options *ndo, argument
304 pptp_call_id_print(netdissect_options *ndo, argument
311 pptp_call_ser_print(netdissect_options *ndo, argument
318 pptp_cause_code_print(netdissect_options *ndo, argument
325 pptp_conn_speed_print(netdissect_options *ndo, argument
343 pptp_err_code_print(netdissect_options *ndo, argument
347 if (ndo->ndo_vflag) {
355 pptp_firm_rev_print(netdissect_options *ndo, argument
362 pptp_framing_cap_print(netdissect_options *ndo, argument
383 pptp_framing_type_print(netdissect_options *ndo, const nd_uint32_t framing_type) argument
391 pptp_hostname_print(netdissect_options *ndo, const u_char *hostname) argument
400 pptp_id_print(netdissect_options *ndo, const nd_uint32_t id) argument
407 pptp_max_channel_print(netdissect_options *ndo, const nd_uint16_t max_channel) argument
414 pptp_peer_call_id_print(netdissect_options *ndo, const nd_uint16_t peer_call_id) argument
421 pptp_phy_chan_id_print(netdissect_options *ndo, const nd_uint32_t phy_chan_id) argument
428 pptp_pkt_proc_delay_print(netdissect_options *ndo, const nd_uint16_t pkt_proc_delay) argument
435 pptp_proto_ver_print(netdissect_options *ndo, const nd_uint16_t proto_ver) argument
444 pptp_recv_winsiz_print(netdissect_options *ndo, const nd_uint16_t recv_winsiz) argument
492 pptp_result_code_print(netdissect_options *ndo, const nd_uint8_t result_code, int ctrl_msg_type) argument
513 pptp_subaddr_print(netdissect_options *ndo, const u_char *subaddr) argument
522 pptp_vendor_print(netdissect_options *ndo, const u_char *vendor) argument
534 pptp_sccrq_print(netdissect_options *ndo, const u_char *dat) argument
550 pptp_sccrp_print(netdissect_options *ndo, const u_char *dat) argument
567 pptp_stopccrq_print(netdissect_options *ndo, const u_char *dat) argument
595 pptp_stopccrp_print(netdissect_options *ndo, const u_char *dat) argument
606 pptp_echorq_print(netdissect_options *ndo, const u_char *dat) argument
615 pptp_echorp_print(netdissect_options *ndo, const u_char *dat) argument
627 pptp_ocrq_print(netdissect_options *ndo, const u_char *dat) argument
650 pptp_ocrp_print(netdissect_options *ndo, const u_char *dat) argument
667 pptp_icrq_print(netdissect_options *ndo, const u_char *dat) argument
690 pptp_icrp_print(netdissect_options *ndo, const u_char *dat) argument
705 pptp_iccn_print(netdissect_options *ndo, const u_char *dat) argument
719 pptp_ccrq_print(netdissect_options *ndo, const u_char *dat) argument
729 pptp_cdn_print(netdissect_options *ndo, const u_char *dat) argument
745 pptp_wen_print(netdissect_options *ndo, const u_char *dat) argument
761 pptp_sli_print(netdissect_options *ndo, const u_char *dat) argument
773 pptp_print(netdissect_options *ndo, const u_char *dat) argument
[all...]
H A Dprint-macsec.c90 static void macsec_print_header(netdissect_options *ndo, argument
110 int macsec_print(netdissect_options *ndo, const u_char **bp, argument
123 save_protocol = ndo->ndo_protocol;
124 ndo->ndo_protocol = "macsec";
128 nd_print_trunc(ndo);
129 ndo->ndo_protocol = save_protocol;
133 nd_print_trunc(ndo);
134 ndo->ndo_protocol = save_protocol;
141 nd_print_trunc(ndo);
142 ndo
[all...]
H A Dprint.h31 void init_print(netdissect_options *ndo, uint32_t localnet, uint32_t mask);
37 void pretty_print_packet(netdissect_options *ndo,
41 void ndo_set_function_pointers(netdissect_options *ndo);
H A Dprint-sll.c158 sll_print(netdissect_options *ndo, const struct sll_header *sllp, u_int length) argument
162 ndo->ndo_protocol = "sll";
174 if (!ndo->ndo_qflag) {
221 sll_if_print(netdissect_options *ndo, const struct pcap_pkthdr *h, const u_char *p) argument
231 ndo->ndo_protocol = "sll";
236 if (ndo->ndo_eflag)
237 sll_print(ndo, sllp, length);
255 ndo->ndo_ll_hdr_len += SLL_HDR_LEN;
256 ndo->ndo_ll_hdr_len += ieee802_11_radio_print(ndo,
342 sll2_print(netdissect_options *ndo, const struct sll2_header *sllp, u_int length) argument
404 sll2_if_print(netdissect_options *ndo, const struct pcap_pkthdr *h, const u_char *p) argument
[all...]
H A Dprint-calm-fast.c42 calm_fast_print(netdissect_options *ndo, const u_char *bp, u_int length, const struct lladdr_info *src) argument
44 ndo->ndo_protocol = "calm_fast";
48 ND_PRINT(" src:%s", (src->addr_string)(ndo, src->addr));
64 if (ndo->ndo_vflag)
69 nd_print_invalid(ndo);
H A Dprint-bcm-li.c65 bcm_li_print(netdissect_options *ndo, argument
70 ndo->ndo_protocol = "bcm_li";
86 ndo->ndo_vflag ? "\n " : "",
91 ndo->ndo_vflag ? "\n ": "");
93 if (!ndo->ndo_vflag) {
100 ether_print(ndo, bp, length, ND_BYTES_AVAILABLE_AFTER(bp), NULL, NULL);
103 ip_print(ndo, bp, length);
106 ip6_print(ndo, bp, length);
114 ip_print(ndo, bp, length);
116 ip6_print(ndo, b
[all...]
H A Dprint-cip.c52 cip_if_print(netdissect_options *ndo, const struct pcap_pkthdr *h, const u_char *p) argument
58 ndo->ndo_protocol = "cip";
60 if (ndo->ndo_eflag)
71 llc_hdrlen = llc_print(ndo, p, length, caplen, NULL, NULL);
74 if (!ndo->ndo_suppress_default_print)
83 ip_print(ndo, p, length);
86 ndo->ndo_ll_hdr_len += llc_hdrlen;
H A Dprint-vjc.c87 vjc_print(netdissect_options *ndo, const u_char *bp, u_short proto _U_) argument
91 ndo->ndo_protocol = "vjc";
94 if (ndo->ndo_eflag)
98 if (ndo->ndo_eflag)
102 if (ndo->ndo_eflag)
114 if (ndo->ndo_eflag)
118 if (ndo->ndo_eflag)
H A Dprint-resp.c53 #define resp_print_empty(ndo) ND_PRINT(" empty")
54 #define resp_print_null(ndo) ND_PRINT(" null")
55 #define resp_print_length_too_large(ndo) ND_PRINT(" length too large")
56 #define resp_print_length_negative(ndo) ND_PRINT(" length negative and not -1")
57 #define resp_print_invalid(ndo) ND_PRINT(" invalid")
210 resp_print(netdissect_options *ndo, const u_char *bp, u_int length) argument
214 ndo->ndo_protocol = "resp";
227 ret_len = resp_parse(ndo, bp, length);
236 nd_print_trunc(ndo);
240 resp_parse(netdissect_options *ndo, cons argument
270 resp_print_simple_string(netdissect_options *ndo, const u_char *bp, int length) argument
275 resp_print_integer(netdissect_options *ndo, const u_char *bp, int length) argument
280 resp_print_error(netdissect_options *ndo, const u_char *bp, int length) argument
285 resp_print_string_error_integer(netdissect_options *ndo, const u_char *bp, int length) argument
320 resp_print_bulk_string(netdissect_options *ndo, const u_char *bp, int length) argument
366 resp_print_bulk_array(netdissect_options *ndo, const u_char *bp, int length) argument
405 resp_print_inline(netdissect_options *ndo, const u_char *bp, int length) argument
452 resp_get_length(netdissect_options *ndo, const u_char *bp, int len, const u_char **endp) argument
[all...]

Completed in 214 milliseconds

12345678