File dhcpcd-3.2.3-unaligned.diff of Package dhcpcd
--- arp.c
+++ arp.c
@@ -257,7 +257,7 @@ int arp_claim (interface_t *iface, struc
rh.c = (unsigned char *) ar_sha (reply);
/* Ensure the ARP reply is for the our address */
- if (rp.a->s_addr != address.s_addr)
+ if (memcmp (rp.c, &address, sizeof (struct in_addr)) != 0)
continue;
/* Some systems send a reply back from our hwaddress,
@@ -267,7 +267,7 @@ int arp_claim (interface_t *iface, struc
continue;
logger (LOG_ERR, "ARPOP_REPLY received from %s (%s)",
- inet_ntoa (*rp.a),
+ inet_ntoa (address),
hwaddr_ntoa (rh.c, (size_t) reply->ar_hln));
retval = -1;
goto eexit;