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
1fbe4d2f
Commit
1fbe4d2f
authored
Mar 01, 2014
by
Simon Kelley
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Tweak tuning params.
parent
0575610f
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
4 deletions
+5
-4
src/config.h
src/config.h
+2
-1
src/dnssec.c
src/dnssec.c
+2
-2
src/rfc1035.c
src/rfc1035.c
+1
-1
No files found.
src/config.h
View file @
1fbe4d2f
...
@@ -31,7 +31,8 @@
...
@@ -31,7 +31,8 @@
#define PING_CACHE_TIME 30
/* Ping test assumed to be valid this long. */
#define PING_CACHE_TIME 30
/* Ping test assumed to be valid this long. */
#define DECLINE_BACKOFF 600
/* disable DECLINEd static addresses for this long */
#define DECLINE_BACKOFF 600
/* disable DECLINEd static addresses for this long */
#define DHCP_PACKET_MAX 16384
/* hard limit on DHCP packet size */
#define DHCP_PACKET_MAX 16384
/* hard limit on DHCP packet size */
#define SMALLDNAME 40
/* most domain names are smaller than this */
#define SMALLDNAME 50
/* most domain names are smaller than this */
#define CNAME_CHAIN 10
/* chains longer than this atr dropped for loop protection */
#define HOSTSFILE "/etc/hosts"
#define HOSTSFILE "/etc/hosts"
#define ETHERSFILE "/etc/ethers"
#define ETHERSFILE "/etc/ethers"
#define DEFLEASE 3600
/* default lease time, 1 hour */
#define DEFLEASE 3600
/* default lease time, 1 hour */
...
...
src/dnssec.c
View file @
1fbe4d2f
...
@@ -1653,7 +1653,7 @@ int dnssec_validate_reply(time_t now, struct dns_header *header, size_t plen, ch
...
@@ -1653,7 +1653,7 @@ int dnssec_validate_reply(time_t now, struct dns_header *header, size_t plen, ch
{
{
unsigned
char
*
ans_start
,
*
qname
,
*
p1
,
*
p2
,
**
nsecs
;
unsigned
char
*
ans_start
,
*
qname
,
*
p1
,
*
p2
,
**
nsecs
;
int
type1
,
class1
,
rdlen1
,
type2
,
class2
,
rdlen2
,
qclass
,
qtype
;
int
type1
,
class1
,
rdlen1
,
type2
,
class2
,
rdlen2
,
qclass
,
qtype
;
int
i
,
j
,
rc
,
nsec_count
,
cname_count
=
10
;
int
i
,
j
,
rc
,
nsec_count
,
cname_count
=
CNAME_CHAIN
;
int
nsec_type
=
0
,
have_answer
=
0
;
int
nsec_type
=
0
,
have_answer
=
0
;
if
(
neganswer
)
if
(
neganswer
)
...
@@ -1930,7 +1930,7 @@ int dnssec_chase_cname(time_t now, struct dns_header *header, size_t plen, char
...
@@ -1930,7 +1930,7 @@ int dnssec_chase_cname(time_t now, struct dns_header *header, size_t plen, char
{
{
unsigned
char
*
p
=
(
unsigned
char
*
)(
header
+
1
);
unsigned
char
*
p
=
(
unsigned
char
*
)(
header
+
1
);
int
type
,
class
,
qtype
,
qclass
,
rdlen
,
j
,
rc
;
int
type
,
class
,
qtype
,
qclass
,
rdlen
,
j
,
rc
;
int
cname_count
=
10
;
int
cname_count
=
CNAME_CHAIN
;
/* Get question */
/* Get question */
if
(
!
extract_name
(
header
,
plen
,
&
p
,
name
,
1
,
4
))
if
(
!
extract_name
(
header
,
plen
,
&
p
,
name
,
1
,
4
))
...
...
src/rfc1035.c
View file @
1fbe4d2f
...
@@ -927,7 +927,7 @@ int extract_addresses(struct dns_header *header, size_t qlen, char *name, time_t
...
@@ -927,7 +927,7 @@ int extract_addresses(struct dns_header *header, size_t qlen, char *name, time_t
for
(
i
=
ntohs
(
header
->
qdcount
);
i
!=
0
;
i
--
)
for
(
i
=
ntohs
(
header
->
qdcount
);
i
!=
0
;
i
--
)
{
{
int
found
=
0
,
cname_count
=
10
;
int
found
=
0
,
cname_count
=
CNAME_CHAIN
;
struct
crec
*
cpp
=
NULL
;
struct
crec
*
cpp
=
NULL
;
int
flags
=
RCODE
(
header
)
==
NXDOMAIN
?
F_NXDOMAIN
:
0
;
int
flags
=
RCODE
(
header
)
==
NXDOMAIN
?
F_NXDOMAIN
:
0
;
int
secflag
=
secure
?
F_DNSSECOK
:
0
;
int
secflag
=
secure
?
F_DNSSECOK
:
0
;
...
...
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