]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
We're no longer interested in Unicast Poll.
authorRoy Marples <roy@marples.name>
Fri, 10 Mar 2017 08:37:04 +0000 (08:37 +0000)
committerRoy Marples <roy@marples.name>
Fri, 10 Mar 2017 08:37:04 +0000 (08:37 +0000)
arp.c

diff --git a/arp.c b/arp.c
index 9c0e3adee0355404fb33eebad1ab58813005d017..63cb7cf8317cbdadae22e7f4cddfcc267d5d91c4 100644 (file)
--- a/arp.c
+++ b/arp.c
@@ -162,21 +162,6 @@ arp_packet(struct interface *ifp, uint8_t *data, size_t len)
        memcpy(&arm.tha, hw_t, ar.ar_hln);
        memcpy(&arm.tip.s_addr, hw_t + ar.ar_hln, ar.ar_pln);
 
-       /* Ignore ARP Unicast Poll, RFC 1122 */
-       if (arm.sip.s_addr == INADDR_ANY &&
-           (arm.tha[0] != 0 ||
-           memcmp(arm.tha, arm.tha + 1, (size_t)ar.ar_hln - 1)))
-       {
-#ifdef ARP_DEBUG
-               char buf[HWADDR_LEN * 3];
-
-               logger(ifp->ctx, LOG_DEBUG,
-                   "%s: ignoring ARP Unicast Poll from %s", ifp->name,
-                   hwaddr_ntoa(arm.tha, ar.ar_hln, buf, sizeof(buf)));
-#endif
-               return;
-       }
-
        /* Run the conflicts */
        state = ARP_CSTATE(ifp);
        TAILQ_FOREACH_SAFE(astate, &state->arp_states, next, astaten) {