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
14ffa077
Commit
14ffa077
authored
Apr 25, 2016
by
Simon Kelley
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix init of per server EDNS UDP packet size.
parent
87985855
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
14 deletions
+17
-14
CHANGELOG
CHANGELOG
+4
-0
src/network.c
src/network.c
+4
-1
src/option.c
src/option.c
+9
-13
No files found.
CHANGELOG
View file @
14ffa077
...
...
@@ -61,6 +61,10 @@ version 2.76
garbage dhcp-options being sent. Thanks to Marc Branchaud
for spotting this.
Fix wrong value for EDNS UDP packet size when using
--servers-file to define upstream DNS servers. Thanks to
Scott Bonar for the bug report.
version 2.75
Fix reversion on 2.74 which caused 100% CPU use when a
...
...
src/network.c
View file @
14ffa077
...
...
@@ -1409,7 +1409,6 @@ void add_update_server(int flags,
serv
->
domain
=
domain_str
;
serv
->
next
=
next
;
serv
->
queries
=
serv
->
failed_queries
=
0
;
serv
->
edns_pktsz
=
daemon
->
edns_pktsz
;
#ifdef HAVE_LOOP
serv
->
uid
=
rand32
();
#endif
...
...
@@ -1447,6 +1446,10 @@ void check_servers(void)
{
if
(
!
(
serv
->
flags
&
(
SERV_LITERAL_ADDRESS
|
SERV_NO_ADDR
|
SERV_USE_RESOLV
|
SERV_NO_REBIND
)))
{
/* Init edns_pktsz for newly created server records. */
if
(
serv
->
edns_pktsz
==
0
)
serv
->
edns_pktsz
=
daemon
->
edns_pktsz
;
#ifdef HAVE_DNSSEC
if
(
option_bool
(
OPT_DNSSEC_VALID
))
{
...
...
src/option.c
View file @
14ffa077
...
...
@@ -4612,21 +4612,17 @@ void read_opts(int argc, char **argv, char *compile_opts)
{
struct
server
*
tmp
;
for
(
tmp
=
daemon
->
servers
;
tmp
;
tmp
=
tmp
->
next
)
{
tmp
->
edns_pktsz
=
daemon
->
edns_pktsz
;
if
(
!
(
tmp
->
flags
&
SERV_HAS_SOURCE
))
{
if
(
tmp
->
source_addr
.
sa
.
sa_family
==
AF_INET
)
tmp
->
source_addr
.
in
.
sin_port
=
htons
(
daemon
->
query_port
);
if
(
!
(
tmp
->
flags
&
SERV_HAS_SOURCE
))
{
if
(
tmp
->
source_addr
.
sa
.
sa_family
==
AF_INET
)
tmp
->
source_addr
.
in
.
sin_port
=
htons
(
daemon
->
query_port
);
#ifdef HAVE_IPV6
else
if
(
tmp
->
source_addr
.
sa
.
sa_family
==
AF_INET6
)
tmp
->
source_addr
.
in6
.
sin6_port
=
htons
(
daemon
->
query_port
);
else
if
(
tmp
->
source_addr
.
sa
.
sa_family
==
AF_INET6
)
tmp
->
source_addr
.
in6
.
sin6_port
=
htons
(
daemon
->
query_port
);
#endif
}
}
}
}
}
if
(
daemon
->
host_records
)
{
struct
host_record
*
hr
;
...
...
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