2
0
mirror of https://gitlab.isc.org/isc-projects/dhcp synced 2025-08-23 18:38:00 +00:00

Don't copy address for comparison

This commit is contained in:
Ted Lemon 1996-05-22 11:31:19 +00:00
parent ee4c389d7f
commit 7aff09472e
2 changed files with 0 additions and 8 deletions

View File

@ -188,10 +188,6 @@ void if_register_receive (info, interface)
if (ioctl (info -> rfdesc, NIOCSFLAGS, &x) < 0) if (ioctl (info -> rfdesc, NIOCSFLAGS, &x) < 0)
error ("Can't set NIT flags: %m"); 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. */ /* Set up the NIT filter program. */
/* XXX Unlike the BPF filter program, this one won't work if the /* 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 XXX IP packet is fragmented or if there are options on the IP

4
nit.c
View File

@ -188,10 +188,6 @@ void if_register_receive (info, interface)
if (ioctl (info -> rfdesc, NIOCSFLAGS, &x) < 0) if (ioctl (info -> rfdesc, NIOCSFLAGS, &x) < 0)
error ("Can't set NIT flags: %m"); 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. */ /* Set up the NIT filter program. */
/* XXX Unlike the BPF filter program, this one won't work if the /* 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 XXX IP packet is fragmented or if there are options on the IP