]> The Tcpdump Group git mirrors - tcpdump/commitdiff
Fixed bug in arp_print() in handling of inverse arp responses - the target's hardware... 429/head
authormkirkhart <[email protected]>
Wed, 4 Feb 2015 23:55:58 +0000 (18:55 -0500)
committermkirkhart <[email protected]>
Wed, 4 Feb 2015 23:55:58 +0000 (18:55 -0500)
print-arp.c

index b1cc7fc780535968aa901f5e146db186d4bd8425..76f39fe084a681e1c8a5c8e32cf9d01d6fabbc7e 100644 (file)
@@ -389,8 +389,8 @@ arp_print(netdissect_options *ndo,
 
        case ARPOP_INVREPLY:
                ND_PRINT((ndo,"%s at %s",
-                         linkaddr_string(ndo, THA(ap), linkaddr, HRD_LEN(ap)),
-                         ipaddr_string(ndo, TPA(ap))));
+                         linkaddr_string(ndo, SHA(ap), linkaddr, HRD_LEN(ap)),
+                         ipaddr_string(ndo, SPA(ap))));
                break;
 
        default: