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
963c380d
Commit
963c380d
authored
Dec 18, 2013
by
Simon Kelley
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' into dnssec
parents
9d633048
00238fb0
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
18 additions
and
14 deletions
+18
-14
CHANGELOG
CHANGELOG
+3
-0
src/dhcp-common.c
src/dhcp-common.c
+7
-7
src/dnsmasq.h
src/dnsmasq.h
+1
-1
src/option.c
src/option.c
+6
-4
src/rfc1035.c
src/rfc1035.c
+1
-1
src/slaac.c
src/slaac.c
+0
-1
No files found.
CHANGELOG
View file @
963c380d
...
@@ -4,6 +4,9 @@ version 2.69
...
@@ -4,6 +4,9 @@ version 2.69
on the BSD platform. Thanks to Matthias Andree for
on the BSD platform. Thanks to Matthias Andree for
valuable research on how to implement this.
valuable research on how to implement this.
Fix infinite loop associated with some --bogus-nxdomain
configs. Thanks fogobogo for the bug report.
version 2.68
version 2.68
Use random addresses for DHCPv6 temporary address
Use random addresses for DHCPv6 temporary address
...
...
src/dhcp-common.c
View file @
963c380d
src/dnsmasq.h
View file @
963c380d
...
@@ -581,7 +581,7 @@ struct dhcp_lease {
...
@@ -581,7 +581,7 @@ struct dhcp_lease {
struct
in6_addr
addr6
;
struct
in6_addr
addr6
;
int
iaid
;
int
iaid
;
struct
slaac_address
{
struct
slaac_address
{
struct
in6_addr
addr
,
local
;
struct
in6_addr
addr
;
time_t
ping_time
;
time_t
ping_time
;
int
backoff
;
/* zero -> confirmed */
int
backoff
;
/* zero -> confirmed */
struct
slaac_address
*
next
;
struct
slaac_address
*
next
;
...
...
src/option.c
View file @
963c380d
...
@@ -2737,7 +2737,7 @@ static int one_opt(int option, char *arg, char *errstr, char *gen_err, int comma
...
@@ -2737,7 +2737,7 @@ static int one_opt(int option, char *arg, char *errstr, char *gen_err, int comma
else
else
{
{
char
*
cp
,
*
lastp
=
NULL
,
last
=
0
;
char
*
cp
,
*
lastp
=
NULL
,
last
=
0
;
int
fac
=
1
;
int
fac
=
1
,
isdig
=
0
;
if
(
strlen
(
a
[
j
])
>
1
)
if
(
strlen
(
a
[
j
])
>
1
)
{
{
...
@@ -2768,7 +2768,9 @@ static int one_opt(int option, char *arg, char *errstr, char *gen_err, int comma
...
@@ -2768,7 +2768,9 @@ static int one_opt(int option, char *arg, char *errstr, char *gen_err, int comma
}
}
for
(
cp
=
a
[
j
];
*
cp
;
cp
++
)
for
(
cp
=
a
[
j
];
*
cp
;
cp
++
)
if
(
!
isdigit
((
unsigned
char
)
*
cp
)
&&
*
cp
!=
' '
)
if
(
isdigit
((
unsigned
char
)
*
cp
))
isdig
=
1
;
else
if
(
*
cp
!=
' '
)
break
;
break
;
if
(
*
cp
)
if
(
*
cp
)
...
@@ -2792,7 +2794,7 @@ static int one_opt(int option, char *arg, char *errstr, char *gen_err, int comma
...
@@ -2792,7 +2794,7 @@ static int one_opt(int option, char *arg, char *errstr, char *gen_err, int comma
new
->
domain
=
strip_hostname
(
new
->
hostname
);
new
->
domain
=
strip_hostname
(
new
->
hostname
);
}
}
}
}
else
else
if
(
isdig
)
{
{
new
->
lease_time
=
atoi
(
a
[
j
])
*
fac
;
new
->
lease_time
=
atoi
(
a
[
j
])
*
fac
;
/* Leases of a minute or less confuse
/* Leases of a minute or less confuse
...
...
src/rfc1035.c
View file @
963c380d
...
@@ -1299,7 +1299,7 @@ int check_for_bogus_wildcard(struct dns_header *header, size_t qlen, char *name,
...
@@ -1299,7 +1299,7 @@ int check_for_bogus_wildcard(struct dns_header *header, size_t qlen, char *name,
/* Found a bogus address. Insert that info here, since there no SOA record
/* Found a bogus address. Insert that info here, since there no SOA record
to get the ttl from in the normal processing */
to get the ttl from in the normal processing */
cache_start_insert
();
cache_start_insert
();
cache_insert
(
name
,
NULL
,
now
,
ttl
,
F_IPV4
|
F_FORWARD
|
F_NEG
|
F_NXDOMAIN
|
F_CONFIG
);
cache_insert
(
name
,
NULL
,
now
,
ttl
,
F_IPV4
|
F_FORWARD
|
F_NEG
|
F_NXDOMAIN
);
cache_end_insert
();
cache_end_insert
();
return
1
;
return
1
;
...
...
src/slaac.c
View file @
963c380d
...
@@ -93,7 +93,6 @@ void slaac_add_addrs(struct dhcp_lease *lease, time_t now, int force)
...
@@ -93,7 +93,6 @@ void slaac_add_addrs(struct dhcp_lease *lease, time_t now, int force)
slaac
->
ping_time
=
now
;
slaac
->
ping_time
=
now
;
slaac
->
backoff
=
1
;
slaac
->
backoff
=
1
;
slaac
->
addr
=
addr
;
slaac
->
addr
=
addr
;
slaac
->
local
=
context
->
local6
;
/* Do RA's to prod it */
/* Do RA's to prod it */
ra_start_unsolicted
(
now
,
context
);
ra_start_unsolicted
(
now
,
context
);
}
}
...
...
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