]> The Tcpdump Group git mirrors - tcpdump/blobdiff - print-arp.c
Add the ndo parameter to some functions
[tcpdump] / print-arp.c
index 034a0566f5796d9e2e1cbf458e878c195314fc08..5e74458751fb288d8e7a3ea5011c120c73a9379e 100644 (file)
@@ -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 ");