Home
last modified time | relevance | path

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

/external/tcpdump/
Dprint-esp.c82 static void esp_print_addsa(netdissect_options *ndo, in esp_print_addsa() argument
91 (*ndo->ndo_error)(ndo, "ran out of memory to allocate sa structure"); in esp_print_addsa()
96 ndo->ndo_sa_default = nsa; in esp_print_addsa()
98 nsa->next = ndo->ndo_sa_list_head; in esp_print_addsa()
99 ndo->ndo_sa_list_head = nsa; in esp_print_addsa()
103 static u_int hexdigit(netdissect_options *ndo, char hex) in hexdigit() argument
112 (*ndo->ndo_error)(ndo, "invalid hex digit %c in espsecret\n", hex); in hexdigit()
117 static u_int hex2byte(netdissect_options *ndo, char *hexstring) in hex2byte() argument
121 byte = (hexdigit(ndo, hexstring[0]) << 4) + hexdigit(ndo, hexstring[1]); in hex2byte()
132 static void esp_print_decode_onesecret(netdissect_options *ndo, char *line) in esp_print_decode_onesecret() argument
[all …]
Dprint-arp.c161 atmarp_addr_print(netdissect_options *ndo, in atmarp_addr_print() argument
166 ND_PRINT((ndo, "<No address>")); in atmarp_addr_print()
168 ND_PRINT((ndo, "%s", linkaddr_string(ha, ha_len))); in atmarp_addr_print()
170 ND_PRINT((ndo, ",%s", in atmarp_addr_print()
176 atmarp_print(netdissect_options *ndo, in atmarp_print() argument
190 ND_PRINT((ndo, "truncated-atmarp")); in atmarp_print()
197 ND_PRINT((ndo, "atmarp-#%d for proto #%d (%d/%d) hardware #%d", in atmarp_print()
202 ND_PRINT((ndo, "trailer-")); in atmarp_print()
206 ND_PRINT((ndo, "arp who-has %s", ipaddr_string(ATMTPA(ap)))); in atmarp_print()
208 ND_PRINT((ndo, " (")); in atmarp_print()
[all …]
Dnetdissect.h201 #define ND_TTEST2(var, l) (ndo->ndo_snapend - (l) <= ndo->ndo_snapend && \
202 (const u_char *)&(var) <= ndo->ndo_snapend - (l))
213 #define ND_PRINT(STUFF) (*ndo->ndo_printf)STUFF
214 #define ND_DEFAULTPRINT(ap, length) (*ndo->ndo_default_print)(ndo, ap, length)
258 extern void ip_print_inner(netdissect_options *ndo,
286 extern void chdlc_print(netdissect_options *ndo,
307 extern void hsrp_print(netdissect_options *ndo,
320 extern const char *linkaddr_string(netdissect_options *ndo,
322 extern void ltalk_if_print(netdissect_options *ndo,
325 extern void mpls_print(netdissect_options *ndo,
[all …]
Dprint-eap.c53 eap_print(netdissect_options *ndo, in eap_print() argument
62 ND_PRINT((ndo, "EAP code=%u id=%u length=%u ", in eap_print()
65 if (!ndo->ndo_vflag) in eap_print()
Dprint-ip.c375 ip_print_demux(netdissect_options *ndo, in ip_print_demux() argument
395 ipds->advance = esp_print(ndo, ipds->cp, ipds->len, in ip_print_demux()
466 ND_PRINT((ndo, " nd %d", ipds->len)); in ip_print_demux()
485 ND_PRINT((ndo, " (ipip-proto-4)")); in ip_print_demux()
524 ND_PRINT((ndo, " %s", proto->p_name)); in ip_print_demux()
526 ND_PRINT((ndo, " ip-proto-%d", ipds->nh)); in ip_print_demux()
527 ND_PRINT((ndo, " %d", ipds->len)); in ip_print_demux()
533 ip_print_inner(netdissect_options *ndo, in ip_print_inner() argument
547 ip_print_demux(ndo, &ipd); in ip_print_inner()
555 ip_print(netdissect_options *ndo, in ip_print() argument
[all …]
Dprint-isakmp.c1279 isakmp_print(netdissect_options *ndo, in isakmp_print() argument
1292 ep = ndo->ndo_snapend; in isakmp_print()
1393 isakmp_rfc3948_print(netdissect_options *ndo, in isakmp_rfc3948_print() argument
1398 ep = ndo->ndo_snapend; in isakmp_rfc3948_print()
1401 ND_PRINT((ndo, "isakmp-nat-keep-alive")); in isakmp_rfc3948_print()
1413 ND_PRINT((ndo, "NONESP-encap: ")); in isakmp_rfc3948_print()
1414 isakmp_print(ndo, bp+4, length-4, bp2); in isakmp_rfc3948_print()
1423 ND_PRINT((ndo, "UDP-encap: ")); in isakmp_rfc3948_print()
1425 advance = esp_print(ndo, bp, length, bp2, &enh, &padlen); in isakmp_rfc3948_print()
1433 ip_print_inner(ndo, bp, length, nh, bp2); in isakmp_rfc3948_print()
Dtcpdump.c113 static void ndo_error(netdissect_options *ndo, const char *fmt, ...);
114 static void ndo_warning(netdissect_options *ndo, const char *fmt, ...);
434 static int tcpdump_printf(netdissect_options *ndo _U_, in tcpdump_printf()
1341 ndo_default_print(netdissect_options *ndo _U_, const u_char *bp, u_int length) in ndo_default_print()
1430 ndo_error(netdissect_options *ndo _U_, const char *fmt, ...) in ndo_error()
1449 ndo_warning(netdissect_options *ndo _U_, const char *fmt, ...) in ndo_warning()