mirror of
https://gitlab.isc.org/isc-projects/dhcp
synced 2025-08-22 09:57:20 +00:00
Don't copy address for comparison
This commit is contained in:
parent
ee4c389d7f
commit
7aff09472e
@ -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
|
||||
|
4
nit.c
4
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
|
||||
|
Loading…
x
Reference in New Issue
Block a user