]> git.ipfire.org Git - thirdparty/dhcp.git/commitdiff
Don't copy address for comparison
authorTed Lemon <source@isc.org>
Wed, 22 May 1996 11:31:19 +0000 (11:31 +0000)
committerTed Lemon <source@isc.org>
Wed, 22 May 1996 11:31:19 +0000 (11:31 +0000)
common/nit.c
nit.c

index 7937b60ac3eca277a92737392c39c6fbf22f69e7..48c0525e40bd6d970b2e1be6289b81f2815f6841 100644 (file)
@@ -188,10 +188,6 @@ void if_register_receive (info, interface)
        if (ioctl (info -> rfdesc, NIOCSFLAGS, &x) < 0)
                error ("Can't set NIT flags: %m");
 
-       /* Copy the address into two shorts for comparison in the NIT
-           filter... */
-       memcpy (addr, info -> address.iabuf, 4);
-
        /* Set up the NIT filter program. */
        /* XXX Unlike the BPF filter program, this one won't work if the
           XXX IP packet is fragmented or if there are options on the IP
diff --git a/nit.c b/nit.c
index 7937b60ac3eca277a92737392c39c6fbf22f69e7..48c0525e40bd6d970b2e1be6289b81f2815f6841 100644 (file)
--- a/nit.c
+++ b/nit.c
@@ -188,10 +188,6 @@ void if_register_receive (info, interface)
        if (ioctl (info -> rfdesc, NIOCSFLAGS, &x) < 0)
                error ("Can't set NIT flags: %m");
 
-       /* Copy the address into two shorts for comparison in the NIT
-           filter... */
-       memcpy (addr, info -> address.iabuf, 4);
-
        /* Set up the NIT filter program. */
        /* XXX Unlike the BPF filter program, this one won't work if the
           XXX IP packet is fragmented or if there are options on the IP