Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
D
Dnsmasq
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
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
nanahira
Dnsmasq
Commits
819ff4dd
Commit
819ff4dd
authored
Oct 21, 2012
by
Simon Kelley
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Wildcard IPv6 dhcp-range.
parent
de604c18
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
23 additions
and
8 deletions
+23
-8
CHANGELOG
CHANGELOG
+4
-0
src/dhcp6.c
src/dhcp6.c
+14
-7
src/option.c
src/option.c
+5
-1
No files found.
CHANGELOG
View file @
819ff4dd
...
@@ -41,6 +41,10 @@ version 2.64
...
@@ -41,6 +41,10 @@ version 2.64
configured with --listen-address. Thanks to
configured with --listen-address. Thanks to
Gene Czarcinski for sorting this out.
Gene Czarcinski for sorting this out.
Add a "wildcard" dhcp-range which works for any IPv6
subnet, --dhcp-range=::,static Useful for Stateless
DHCPv6. Thanks to Vladislav Grishenko for the patch.
version 2.63
version 2.63
Do duplicate dhcp-host address check in --test mode.
Do duplicate dhcp-host address check in --test mode.
...
...
src/dhcp6.c
View file @
819ff4dd
...
@@ -126,17 +126,24 @@ void dhcp6_packet(time_t now)
...
@@ -126,17 +126,24 @@ void dhcp6_packet(time_t now)
if
(
tmp
->
name
&&
(
strcmp
(
tmp
->
name
,
ifr
.
ifr_name
)
==
0
))
if
(
tmp
->
name
&&
(
strcmp
(
tmp
->
name
,
ifr
.
ifr_name
)
==
0
))
return
;
return
;
/* unlinked contexts are marked by context->current == context */
for
(
context
=
daemon
->
dhcp6
;
context
;
context
=
context
->
next
)
{
context
->
current
=
context
;
memset
(
&
context
->
local6
,
0
,
IN6ADDRSZ
);
}
parm
.
current
=
NULL
;
parm
.
current
=
NULL
;
parm
.
ind
=
if_index
;
parm
.
ind
=
if_index
;
parm
.
addr_match
=
0
;
parm
.
addr_match
=
0
;
memset
(
&
parm
.
fallback
,
0
,
IN6ADDRSZ
);
memset
(
&
parm
.
fallback
,
0
,
IN6ADDRSZ
);
for
(
context
=
daemon
->
dhcp6
;
context
;
context
=
context
->
next
)
if
(
IN6_IS_ADDR_UNSPECIFIED
(
&
context
->
start6
)
&&
context
->
prefix
==
0
)
{
/* wildcard context for DHCP-stateless only */
parm
.
current
=
context
;
context
->
current
=
NULL
;
}
else
{
/* unlinked contexts are marked by context->current == context */
context
->
current
=
context
;
memset
(
&
context
->
local6
,
0
,
IN6ADDRSZ
);
}
if
(
!
iface_enumerate
(
AF_INET6
,
&
parm
,
complete_context6
))
if
(
!
iface_enumerate
(
AF_INET6
,
&
parm
,
complete_context6
))
return
;
return
;
...
...
src/option.c
View file @
819ff4dd
...
@@ -2115,7 +2115,11 @@ static int one_opt(int option, char *arg, char *errstr, char *gen_err, int comma
...
@@ -2115,7 +2115,11 @@ static int one_opt(int option, char *arg, char *errstr, char *gen_err, int comma
{
{
new
->
prefix
=
64
;
/* default */
new
->
prefix
=
64
;
/* default */
new
->
end6
=
new
->
start6
;
new
->
end6
=
new
->
start6
;
/* dhcp-range=:: enables DHCP stateless on any interface */
if
(
IN6_IS_ADDR_UNSPECIFIED
(
&
new
->
start6
))
new
->
prefix
=
0
;
for
(
leasepos
=
1
;
leasepos
<
k
;
leasepos
++
)
for
(
leasepos
=
1
;
leasepos
<
k
;
leasepos
++
)
{
{
if
(
strcmp
(
a
[
leasepos
],
"static"
)
==
0
)
if
(
strcmp
(
a
[
leasepos
],
"static"
)
==
0
)
...
...
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