diff options
author | Ted Lemon <source@isc.org> | 1996-05-23 02:32:02 +0000 |
---|---|---|
committer | Ted Lemon <source@isc.org> | 1996-05-23 02:32:02 +0000 |
commit | 7459d08685fe5fd3d86c2a6d1ba16030e5d406a8 (patch) | |
tree | 97e12156c90e57ab1eb776b3e03c9a119ec10a9f /common | |
parent | 03807c84a04e7900553d8b6b7461da8153e17e14 (diff) | |
download | isc-dhcp-7459d08685fe5fd3d86c2a6d1ba16030e5d406a8.tar.gz |
Remember address of last interface so that we can delete the next one if necessary; don't drop packets from unknown networks
Diffstat (limited to 'common')
-rw-r--r-- | common/dispatch.c | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/common/dispatch.c b/common/dispatch.c index bbd5716e..af6ae8c4 100644 --- a/common/dispatch.c +++ b/common/dispatch.c @@ -206,6 +206,7 @@ void discover_interfaces () last -> next = tmp -> next; continue; } + last = tmp; foo = (struct sockaddr_in *)(&tmp -> tif -> ifr_addr); @@ -442,13 +443,5 @@ int locate_network (packet) packet -> shared_network = packet -> interface -> shared_network; } - - /* If the subnet from whence this packet came is unknown to us, - drop it on the floor... */ - if (!packet -> shared_network) { - note ("Packet from unknown subnet: %s", - inet_ntoa (packet -> raw -> giaddr)); - return 0; - } return 1; } |