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
a21e27bc
Commit
a21e27bc
authored
Feb 17, 2013
by
Simon Kelley
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Support DHCP DNS server option if we're not doing DNS.
parent
b0ff858e
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
2 deletions
+7
-2
CHANGELOG
CHANGELOG
+4
-0
src/rfc2131.c
src/rfc2131.c
+2
-1
src/rfc3315.c
src/rfc3315.c
+1
-1
No files found.
CHANGELOG
View file @
a21e27bc
...
@@ -26,6 +26,10 @@ version 2.66
...
@@ -26,6 +26,10 @@ version 2.66
on other platforms. Many thanks to Tomas Hozza for
on other platforms. Many thanks to Tomas Hozza for
spotting the problem, and doing invaluable discovery of
spotting the problem, and doing invaluable discovery of
the obscure and undocumented API required for the solution.
the obscure and undocumented API required for the solution.
Don't send the default DHCP option advertising dnsmasq as
the local DNS server if dnsmasq is configured to not act
as DNS server, or it's configured to a non-standard port.
version 2.65
version 2.65
...
...
src/rfc2131.c
View file @
a21e27bc
...
@@ -2234,7 +2234,8 @@ static void do_options(struct dhcp_context *context,
...
@@ -2234,7 +2234,8 @@ static void do_options(struct dhcp_context *context,
!
option_find2
(
OPTION_ROUTER
))
!
option_find2
(
OPTION_ROUTER
))
option_put
(
mess
,
end
,
OPTION_ROUTER
,
INADDRSZ
,
ntohl
(
context
->
router
.
s_addr
));
option_put
(
mess
,
end
,
OPTION_ROUTER
,
INADDRSZ
,
ntohl
(
context
->
router
.
s_addr
));
if
(
in_list
(
req_options
,
OPTION_DNSSERVER
)
&&
if
(
daemon
->
port
==
NAMESERVER_PORT
&&
in_list
(
req_options
,
OPTION_DNSSERVER
)
&&
!
option_find2
(
OPTION_DNSSERVER
))
!
option_find2
(
OPTION_DNSSERVER
))
option_put
(
mess
,
end
,
OPTION_DNSSERVER
,
INADDRSZ
,
ntohl
(
context
->
local
.
s_addr
));
option_put
(
mess
,
end
,
OPTION_DNSSERVER
,
INADDRSZ
,
ntohl
(
context
->
local
.
s_addr
));
}
}
...
...
src/rfc3315.c
View file @
a21e27bc
...
@@ -1265,7 +1265,7 @@ static int dhcp6_no_relay(int msg_type, struct in6_addr *link_address, struct dh
...
@@ -1265,7 +1265,7 @@ static int dhcp6_no_relay(int msg_type, struct in6_addr *link_address, struct dh
end_opt6
(
o
);
end_opt6
(
o
);
}
}
if
(
!
done_dns
&&
if
(
daemon
->
port
==
NAMESERVER_PORT
&&
!
done_dns
&&
(
!
IN6_IS_ADDR_UNSPECIFIED
(
&
context
->
local6
)
||
(
!
IN6_IS_ADDR_UNSPECIFIED
(
&
context
->
local6
)
||
!
IN6_IS_ADDR_UNSPECIFIED
(
fallback
)))
!
IN6_IS_ADDR_UNSPECIFIED
(
fallback
)))
{
{
...
...
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