Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
D
dhcp
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
64
Issues
64
List
Boards
Labels
Service Desk
Milestones
Merge Requests
16
Merge Requests
16
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ISC Open Source Projects
dhcp
Commits
164f9c7e
Commit
164f9c7e
authored
Mar 07, 2000
by
Ted Lemon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix corner case where REBIND would be ignored rather than NAKed.
parent
cb9cf4bd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
server/dhcp.c
server/dhcp.c
+6
-2
No files found.
server/dhcp.c
View file @
164f9c7e
...
...
@@ -22,7 +22,7 @@
#ifndef lint
static
char
copyright
[]
=
"$Id: dhcp.c,v 1.14
0 2000/03/06 23:33:52
mellon Exp $ Copyright (c) 1995, 1996, 1997, 1998, 1999 The Internet Software Consortium. All rights reserved.
\n
"
;
"$Id: dhcp.c,v 1.14
1 2000/03/07 02:50:45
mellon Exp $ Copyright (c) 1995, 1996, 1997, 1998, 1999 The Internet Software Consortium. All rights reserved.
\n
"
;
#endif
/* not lint */
#include "dhcpd.h"
...
...
@@ -215,7 +215,10 @@ void dhcprequest (packet, ms_nulltp)
If ciaddr was specified and Requested Address was not, then
we really only know for sure what network a packet came from
if it came through a BOOTP gateway - if it came through an
IP router, we'll just have to assume that it's cool.
IP router, we can't respond. However, a client in REBINDING
state with the wrong IP address will also look like this, and
this is more likely, so we NAK these packets - if the packet
came through a router, the NAK won't reach the client anyway.
If we don't think we know where the packet came from, it
came through a gateway from an unknown network, so it's not
...
...
@@ -251,6 +254,7 @@ void dhcprequest (packet, ms_nulltp)
if
(
!
packet
->
shared_network
||
(
packet
->
raw
->
ciaddr
.
s_addr
&&
packet
->
raw
->
giaddr
.
s_addr
)
||
(
!
oc
&&
packet
->
raw
->
ciaddr
.
s_addr
)
||
(
oc
&&
!
packet
->
raw
->
ciaddr
.
s_addr
))
{
/* If we don't know where it came from but we do know
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment