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
b059c96d
Commit
b059c96d
authored
May 08, 2015
by
Simon Kelley
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Check IPv4-mapped IPv6 addresses with --stop-rebind.
parent
a77cec8d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
4 deletions
+20
-4
CHANGELOG
CHANGELOG
+3
-0
src/rfc1035.c
src/rfc1035.c
+17
-4
No files found.
CHANGELOG
View file @
b059c96d
...
...
@@ -115,6 +115,9 @@ version 2.73
header to 1280 bytes. If it then answers, make that
change permanent.
Check IPv4-mapped IPv6 addresses when --stop-rebind
is active. Thanks to Jordan Milne for spotting this.
version 2.72
Add ra-advrouter mode, for RFC-3775 mobile IPv6 support.
...
...
src/rfc1035.c
View file @
b059c96d
...
...
@@ -1117,10 +1117,23 @@ int extract_addresses(struct dns_header *header, size_t qlen, char *name, time_t
memcpy
(
&
addr
,
p1
,
addrlen
);
/* check for returned address in private space */
if
(
check_rebind
&&
(
flags
&
F_IPV4
)
&&
private_net
(
addr
.
addr
.
addr4
,
!
option_bool
(
OPT_LOCAL_REBIND
)))
return
1
;
if
(
check_rebind
)
{
if
((
flags
&
F_IPV4
)
&&
private_net
(
addr
.
addr
.
addr4
,
!
option_bool
(
OPT_LOCAL_REBIND
)))
return
1
;
#ifdef HAVE_IPV6
if
((
flags
&
F_IPV6
)
&&
IN6_IS_ADDR_V4MAPPED
(
&
addr
.
addr
.
addr6
))
{
struct
in_addr
v4
;
v4
.
s_addr
=
((
const
uint32_t
*
)
(
&
addr
.
addr
.
addr6
))[
3
];
if
(
private_net
(
v4
,
!
option_bool
(
OPT_LOCAL_REBIND
)))
return
1
;
}
#endif
}
#ifdef HAVE_IPSET
if
(
ipsets
&&
(
flags
&
(
F_IPV4
|
F_IPV6
)))
...
...
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