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
e4cdbbf5
Commit
e4cdbbf5
authored
Aug 19, 2013
by
Vladislav Grishenko
Committed by
Simon Kelley
Aug 19, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Allow prefix :: in constructed dhcp-range.
parent
4568a6f8
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
1 deletion
+11
-1
man/dnsmasq.8
man/dnsmasq.8
+8
-0
src/dhcp6.c
src/dhcp6.c
+3
-1
No files found.
man/dnsmasq.8
View file @
e4cdbbf5
...
...
@@ -663,6 +663,14 @@ equal either the start or end address given in the dhcp-range. This is
to prevent prefixes becoming perpetual if the interface
gains a SLAAC address for the prefix when it is advertised by dnsmasq.
If a dhcp-range is only being used for stateless DHCP and/or SLAAC,
then the address can be simply ::
.B --dhcp-range=::,constructor:eth0
This removes the condition above, and will pick up the prefix from any address on eth0 which is NOT
autoconfigured, slaac, temporary or deprecated.
There is a variant of the constructor: syntax using the keyword
.B constructor-noauth.
See
...
...
src/dhcp6.c
View file @
e4cdbbf5
...
...
@@ -539,7 +539,9 @@ static int construct_worker(struct in6_addr *local, int prefix,
}
else
if
((
addr6part
(
local
)
==
addr6part
(
&
template
->
start6
)
||
addr6part
(
local
)
==
addr6part
(
&
template
->
end6
))
&&
addr6part
(
local
)
==
addr6part
(
&
template
->
end6
)
||
(
IN6_IS_ADDR_UNSPECIFIED
(
&
template
->
start6
)
&&
IFACE_PERMANENT
==
(
flags
&
(
IFACE_PERMANENT
|
IFACE_DEPRECATED
))))
&&
wildcard_match
(
template
->
template_interface
,
ifrn_name
))
{
start6
=
*
local
;
...
...
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