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
61b838dd
Commit
61b838dd
authored
Jan 21, 2015
by
Win King Wan
Committed by
Simon Kelley
Jan 21, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Don't reply to DHCPv6 SOLICIT messages when not configured for statefull DHCPv6.
parent
fbf01f70
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
0 deletions
+17
-0
CHANGELOG
CHANGELOG
+4
-0
src/rfc3315.c
src/rfc3315.c
+13
-0
No files found.
CHANGELOG
View file @
61b838dd
...
@@ -59,6 +59,10 @@ version 2.73
...
@@ -59,6 +59,10 @@ version 2.73
cheaply than having dnsmasq re-read all its existing
cheaply than having dnsmasq re-read all its existing
configuration each time.
configuration each time.
Don't reply to DHCPv6 SOLICIT messages if we're not
configured to do stateful DHCPv6. Thanks to Win King Wan
for the patch.
version 2.72
version 2.72
Add ra-advrouter mode, for RFC-3775 mobile IPv6 support.
Add ra-advrouter mode, for RFC-3775 mobile IPv6 support.
...
...
src/rfc3315.c
View file @
61b838dd
...
@@ -824,6 +824,19 @@ static int dhcp6_no_relay(struct state *state, int msg_type, void *inbuff, size_
...
@@ -824,6 +824,19 @@ static int dhcp6_no_relay(struct state *state, int msg_type, void *inbuff, size_
}
}
else
else
{
{
/* Windows 8 always requests an address even if the Managed bit
in RA is 0 and it keeps retrying if it receives a reply
stating that no addresses are available. We solve this
by not replying at all if we're not configured to give any
addresses by DHCPv6. RFC 3315 17.2.1. appears to allow this. */
for
(
c
=
state
->
context
;
c
;
c
=
c
->
current
)
if
(
!
(
c
->
flags
&
CONTEXT_RA_STATELESS
))
break
;
if
(
!
c
)
return
0
;
/* no address, return error */
/* no address, return error */
o1
=
new_opt6
(
OPTION6_STATUS_CODE
);
o1
=
new_opt6
(
OPTION6_STATUS_CODE
);
put_opt6_short
(
DHCP6NOADDRS
);
put_opt6_short
(
DHCP6NOADDRS
);
...
...
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