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
3ddacb86
Commit
3ddacb86
authored
Jan 08, 2014
by
Simon Kelley
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Ensure cache is big enough to do DNSSEC.
parent
60b68069
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
9 deletions
+12
-9
src/dnsmasq.c
src/dnsmasq.c
+12
-9
No files found.
src/dnsmasq.c
View file @
3ddacb86
...
@@ -82,13 +82,6 @@ int main (int argc, char **argv)
...
@@ -82,13 +82,6 @@ int main (int argc, char **argv)
read_opts
(
argc
,
argv
,
compile_opts
);
read_opts
(
argc
,
argv
,
compile_opts
);
#ifdef HAVE_DNSSEC
if
(
option_bool
(
OPT_DNSSEC_VALID
))
if
(
daemon
->
doctors
)
exit
(
1
);
/* TODO */
daemon
->
keyname
=
safe_malloc
(
MAXDNAME
);
#endif
if
(
daemon
->
edns_pktsz
<
PACKETSZ
)
if
(
daemon
->
edns_pktsz
<
PACKETSZ
)
daemon
->
edns_pktsz
=
PACKETSZ
;
daemon
->
edns_pktsz
=
PACKETSZ
;
#ifdef HAVE_DNSSEC
#ifdef HAVE_DNSSEC
...
@@ -96,12 +89,17 @@ int main (int argc, char **argv)
...
@@ -96,12 +89,17 @@ int main (int argc, char **argv)
if
(
option_bool
(
OPT_DNSSEC_VALID
)
&&
daemon
->
edns_pktsz
<
EDNS_PKTSZ
)
if
(
option_bool
(
OPT_DNSSEC_VALID
)
&&
daemon
->
edns_pktsz
<
EDNS_PKTSZ
)
daemon
->
edns_pktsz
=
EDNS_PKTSZ
;
daemon
->
edns_pktsz
=
EDNS_PKTSZ
;
#endif
#endif
daemon
->
packet_buff_sz
=
daemon
->
edns_pktsz
>
DNSMASQ_PACKETSZ
?
daemon
->
packet_buff_sz
=
daemon
->
edns_pktsz
>
DNSMASQ_PACKETSZ
?
daemon
->
edns_pktsz
:
DNSMASQ_PACKETSZ
;
daemon
->
edns_pktsz
:
DNSMASQ_PACKETSZ
;
daemon
->
packet
=
safe_malloc
(
daemon
->
packet_buff_sz
);
daemon
->
packet
=
safe_malloc
(
daemon
->
packet_buff_sz
);
daemon
->
addrbuff
=
safe_malloc
(
ADDRSTRLEN
);
daemon
->
addrbuff
=
safe_malloc
(
ADDRSTRLEN
);
#ifdef HAVE_DNSSEC
if
(
option_bool
(
OPT_DNSSEC_VALID
))
daemon
->
keyname
=
safe_malloc
(
MAXDNAME
);
#endif
#ifdef HAVE_DHCP
#ifdef HAVE_DHCP
if
(
!
daemon
->
lease_file
)
if
(
!
daemon
->
lease_file
)
...
@@ -143,6 +141,11 @@ int main (int argc, char **argv)
...
@@ -143,6 +141,11 @@ int main (int argc, char **argv)
}
}
#endif
#endif
#ifdef HAVE_DNSSEC
if
(
daemon
->
cachesize
<
CACHESIZ
&&
option_bool
(
OPT_DNSSEC_VALID
))
die
(
_
(
"Cannot reduce cache size from default when DNSSEC enabled"
),
NULL
,
EC_BADCONF
);
#endif
#ifndef HAVE_TFTP
#ifndef HAVE_TFTP
if
(
option_bool
(
OPT_TFTP
))
if
(
option_bool
(
OPT_TFTP
))
die
(
_
(
"TFTP server not available: set HAVE_TFTP in src/config.h"
),
NULL
,
EC_BADCONF
);
die
(
_
(
"TFTP server not available: set HAVE_TFTP in src/config.h"
),
NULL
,
EC_BADCONF
);
...
...
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