diff options
| author | Francois-Xavier Le Bail <devel.fx.lebail@orange.fr> | 2018-06-15 15:44:51 +0200 |
|---|---|---|
| committer | Francois-Xavier Le Bail <devel.fx.lebail@orange.fr> | 2019-03-26 21:06:23 +0100 |
| commit | 1af20c3adc4dfef93de41d4fcd02f0aeb6bbfd4e (patch) | |
| tree | d56286b07d210e783a1bc3e9d85fdb8be51f6b6a /print-arp.c | |
| parent | 176e182416d822df0f9d4695410479e8b17a07b3 (diff) | |
| download | tcpdump-1af20c3adc4dfef93de41d4fcd02f0aeb6bbfd4e.tar.gz | |
Add the ndo parameter to some functions
This parameter will be needed at the next step.
Diffstat (limited to 'print-arp.c')
| -rw-r--r-- | print-arp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/print-arp.c b/print-arp.c index 034a0566..5e744587 100644 --- a/print-arp.c +++ b/print-arp.c @@ -176,7 +176,7 @@ struct atmarp_pkthdr { #define ATMTPA(ap) (aar_tpa(ap)) static int -isnonzero(const u_char *a, size_t len) +isnonzero(netdissect_options *ndo, const u_char *a, size_t len) { while (len > 0) { if (EXTRACT_U_1(a) != 0) @@ -421,7 +421,7 @@ arp_print(netdissect_options *ndo, case ARPOP_REQUEST: ND_PRINT("who-has "); tpaddr_print_ip(ndo, ap, pro); - if (isnonzero((const u_char *)THA(ap), HRD_LEN(ap))) + if (isnonzero(ndo, (const u_char *)THA(ap), HRD_LEN(ap))) ND_PRINT(" (%s)", linkaddr_string(ndo, THA(ap), linkaddr, HRD_LEN(ap))); ND_PRINT(" tell "); |
