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
72
Issues
72
List
Boards
Labels
Service Desk
Milestones
Merge Requests
18
Merge Requests
18
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
df598b3e
Commit
df598b3e
authored
Jan 08, 2000
by
Ted Lemon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add support for NetWare/IP encapsulated option.
parent
ea4eec7e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
36 additions
and
1 deletion
+36
-1
server/dhcp.c
server/dhcp.c
+36
-1
No files found.
server/dhcp.c
View file @
df598b3e
...
...
@@ -22,7 +22,7 @@
#ifndef lint
static
char
copyright
[]
=
"$Id: dhcp.c,v 1.13
1 2000/01/05 18:16:36
mellon Exp $ Copyright (c) 1995, 1996, 1997, 1998, 1999 The Internet Software Consortium. All rights reserved.
\n
"
;
"$Id: dhcp.c,v 1.13
2 2000/01/08 01:47:37
mellon Exp $ Copyright (c) 1995, 1996, 1997, 1998, 1999 The Internet Software Consortium. All rights reserved.
\n
"
;
#endif
/* not lint */
#include "dhcpd.h"
...
...
@@ -626,6 +626,23 @@ void dhcpinform (packet)
}
}
/* Make an encapsulation for the NWIP suboptions if the client
asked for them. */
i
=
DHO_NWIP_SUBOPTIONS
;
if
(
!
lookup_option
(
&
dhcp_universe
,
options
,
i
))
{
oc
=
(
struct
option_cache
*
)
0
;
if
(
option_cache_allocate
(
&
oc
,
"dhcpinform"
))
{
memset
(
&
d1
,
0
,
sizeof
d1
);
d1
.
data
=
"nwip"
;
d1
.
len
=
4
;
if
(
make_encapsulation
(
&
oc
->
expression
,
&
d1
))
{
oc
->
option
=
dhcp_universe
.
options
[
i
];
save_option
(
&
dhcp_universe
,
options
,
oc
);
}
option_cache_dereference
(
&
oc
,
"dhcpinform"
);
}
}
/* If we've been given a vendor option space, and there's something
in it, and we weren't given a vendor-encapsulated-options option,
then cons one up. */
...
...
@@ -1787,6 +1804,24 @@ void ack_lease (packet, lease, offer, when, msg)
option_cache_dereference
(
&
oc
,
"ack_lease"
);
}
/* Make an encapsulation for the NWIP suboptions if the client
asked for them. */
i
=
DHO_NWIP_SUBOPTIONS
;
if
(
!
(
oc
=
lookup_option
(
&
dhcp_universe
,
state
->
options
,
i
)))
{
oc
=
(
struct
option_cache
*
)
0
;
if
(
option_cache_allocate
(
&
oc
,
"dhcpinform"
))
{
memset
(
&
d1
,
0
,
sizeof
d1
);
d1
.
data
=
"nwip"
;
d1
.
len
=
4
;
if
(
make_encapsulation
(
&
oc
->
expression
,
&
d1
))
{
oc
->
option
=
dhcp_universe
.
options
[
i
];
save_option
(
&
dhcp_universe
,
state
->
options
,
oc
);
}
option_cache_dereference
(
&
oc
,
"dhcpinform"
);
}
}
/* If we've been given a vendor option space, and there's something
in it, and we weren't given a vendor-encapsulated-options option,
then cons one up. */
...
...
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