From 7aff09472e4be77dc63c0d178ba7548df504236c Mon Sep 17 00:00:00 2001 From: Ted Lemon Date: Wed, 22 May 1996 11:31:19 +0000 Subject: [PATCH] Don't copy address for comparison --- common/nit.c | 4 ---- nit.c | 4 ---- 2 files changed, 8 deletions(-) diff --git a/common/nit.c b/common/nit.c index 7937b60a..48c0525e 100644 --- a/common/nit.c +++ b/common/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 diff --git a/nit.c b/nit.c index 7937b60a..48c0525e 100644 --- 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