diff options
author | brian <brian@FreeBSD.org> | 1997-01-18 01:26:27 +0000 |
---|---|---|
committer | brian <brian@FreeBSD.org> | 1997-01-18 01:26:27 +0000 |
commit | 46045fb5bbe92af426613efed61a57e25afc33c7 (patch) | |
tree | 9a575dabc05d55d8592b0b03430a6a9a9bbbfe65 /net-mgmt/wide-dhcp/files | |
parent | 27ae0e021c557bb4af5c7f36da3420bca2b9bc6b (diff) | |
download | FreeBSD-ports-46045fb5bbe92af426613efed61a57e25afc33c7.zip FreeBSD-ports-46045fb5bbe92af426613efed61a57e25afc33c7.tar.gz |
If a client suggests an IP that is different from the server-config
IP for that hardware-address, return a NAK rather than being silent.
Reviewed by: None (trivial fix, discussed briefly with author & cc'd
to hackers)
Submitted by: Brian Somers <brian@awfulhak.demon.co.uk>
Obtained from: Brian Somers <brian@awfulhak.demon.co.uk>
Diffstat (limited to 'net-mgmt/wide-dhcp/files')
-rw-r--r-- | net-mgmt/wide-dhcp/files/patch-aw | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/net-mgmt/wide-dhcp/files/patch-aw b/net-mgmt/wide-dhcp/files/patch-aw new file mode 100644 index 0000000..10efc7a --- /dev/null +++ b/net-mgmt/wide-dhcp/files/patch-aw @@ -0,0 +1,25 @@ +*** old/dhcp-1.3beta/server/dhcps.c Sun Nov 5 23:18:19 1995 +--- new/dhcp-1.3beta/server/dhcps.c Fri Jan 17 17:14:54 1997 +*************** +*** 1583,1591 **** + + res = NULL; + res = select_wcid(DHCPREQUEST, &cid, curr_epoch); +! if (res != NULL && res->ip_addr != NULL && +! res->ip_addr->s_addr == reqip.s_addr) +! goto ack; + else if (reqforme == 1) + goto nak; + else +--- 1583,1593 ---- + + res = NULL; + res = select_wcid(DHCPREQUEST, &cid, curr_epoch); +! if (res != NULL && res->ip_addr != NULL) +! if (res->ip_addr->s_addr == reqip.s_addr) +! goto ack; +! else +! goto nak; + else if (reqforme == 1) + goto nak; + else |