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
8d030462
Commit
8d030462
authored
Jul 29, 2013
by
Simon Kelley
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add --force-fast-ra option.
parent
9f48ffa1
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
14 additions
and
2 deletions
+14
-2
CHANGELOG
CHANGELOG
+2
-0
man/dnsmasq.8
man/dnsmasq.8
+6
-0
src/dnsmasq.h
src/dnsmasq.h
+2
-1
src/option.c
src/option.c
+3
-0
src/radv.c
src/radv.c
+1
-1
No files found.
CHANGELOG
View file @
8d030462
...
@@ -90,6 +90,8 @@ version 2.67
...
@@ -90,6 +90,8 @@ version 2.67
smallest valid dhcp-range is sent. Thanks to Uwe Schindler
smallest valid dhcp-range is sent. Thanks to Uwe Schindler
for suggesting this.
for suggesting this.
Add --force-fast-ra option. Another thanks to Uwe Schindler.
version 2.66
version 2.66
Add the ability to act as an authoritative DNS
Add the ability to act as an authoritative DNS
...
...
man/dnsmasq.8
View file @
8d030462
...
@@ -1487,6 +1487,12 @@ the relevant link-local address of the machine running dnsmasq is sent
...
@@ -1487,6 +1487,12 @@ the relevant link-local address of the machine running dnsmasq is sent
as recursive DNS server. If provided, the DHCPv6 options dns-server and
as recursive DNS server. If provided, the DHCPv6 options dns-server and
domain-search are used for RDNSS and DNSSL.
domain-search are used for RDNSS and DNSSL.
.TP
.TP
.B --force-fast-ra
Normally, dnsmasq advertises a new IPv6 prefix frequently (every 10 seconds or so) for the first minute, and then
drops back to sending "maintenance" advertisements every 10 minutes or so. This option forces dnsmasq to be always in
frequent RA mode. It's a bug workaround for mobile devices which go deaf to RAs during sleep and therefore
lose conectivity; with frequent RAs they recover in a reasonable time after wakeup.
.TP
.B --enable-tftp
.B --enable-tftp
Enable the TFTP server function. This is deliberately limited to that
Enable the TFTP server function. This is deliberately limited to that
needed to net-boot a client. Only reading is allowed; the tsize and
needed to net-boot a client. Only reading is allowed; the tsize and
...
...
src/dnsmasq.h
View file @
8d030462
...
@@ -221,7 +221,8 @@ struct event_desc {
...
@@ -221,7 +221,8 @@ struct event_desc {
#define OPT_TFTP_LC 38
#define OPT_TFTP_LC 38
#define OPT_CLEVERBIND 39
#define OPT_CLEVERBIND 39
#define OPT_TFTP 40
#define OPT_TFTP 40
#define OPT_LAST 41
#define OPT_FAST_RA 41
#define OPT_LAST 42
/* extra flags for my_syslog, we use a couple of facilities since they are known
/* extra flags for my_syslog, we use a couple of facilities since they are known
not to occupy the same bits as priorities, no matter how syslog.h is set up. */
not to occupy the same bits as priorities, no matter how syslog.h is set up. */
...
...
src/option.c
View file @
8d030462
...
@@ -132,6 +132,7 @@ struct myoption {
...
@@ -132,6 +132,7 @@ struct myoption {
#ifdef OPTION6_PREFIX_CLASS
#ifdef OPTION6_PREFIX_CLASS
#define LOPT_PREF_CLSS 321
#define LOPT_PREF_CLSS 321
#endif
#endif
#define LOPT_FAST_RA 322
#ifdef HAVE_GETOPT_LONG
#ifdef HAVE_GETOPT_LONG
static
const
struct
option
opts
[]
=
static
const
struct
option
opts
[]
=
...
@@ -269,6 +270,7 @@ static const struct myoption opts[] =
...
@@ -269,6 +270,7 @@ static const struct myoption opts[] =
#ifdef OPTION6_PREFIX_CLASS
#ifdef OPTION6_PREFIX_CLASS
{
"dhcp-prefix-class"
,
1
,
0
,
LOPT_PREF_CLSS
},
{
"dhcp-prefix-class"
,
1
,
0
,
LOPT_PREF_CLSS
},
#endif
#endif
{
"force-fast-ra"
,
0
,
0
,
LOPT_FAST_RA
},
{
NULL
,
0
,
0
,
0
}
{
NULL
,
0
,
0
,
0
}
};
};
...
@@ -397,6 +399,7 @@ static struct {
...
@@ -397,6 +399,7 @@ static struct {
{
LOPT_CONNTRACK
,
OPT_CONNTRACK
,
NULL
,
gettext_noop
(
"Copy connection-track mark from queries to upstream connections."
),
NULL
},
{
LOPT_CONNTRACK
,
OPT_CONNTRACK
,
NULL
,
gettext_noop
(
"Copy connection-track mark from queries to upstream connections."
),
NULL
},
{
LOPT_FQDN
,
OPT_FQDN_UPDATE
,
NULL
,
gettext_noop
(
"Allow DHCP clients to do their own DDNS updates."
),
NULL
},
{
LOPT_FQDN
,
OPT_FQDN_UPDATE
,
NULL
,
gettext_noop
(
"Allow DHCP clients to do their own DDNS updates."
),
NULL
},
{
LOPT_RA
,
OPT_RA
,
NULL
,
gettext_noop
(
"Send router-advertisements for interfaces doing DHCPv6"
),
NULL
},
{
LOPT_RA
,
OPT_RA
,
NULL
,
gettext_noop
(
"Send router-advertisements for interfaces doing DHCPv6"
),
NULL
},
{
LOPT_FAST_RA
,
OPT_FAST_RA
,
NULL
,
gettext_noop
(
"Always send frequent router-advertisements"
),
NULL
},
{
LOPT_DUID
,
ARG_ONE
,
"<enterprise>,<duid>"
,
gettext_noop
(
"Specify DUID_EN-type DHCPv6 server DUID"
),
NULL
},
{
LOPT_DUID
,
ARG_ONE
,
"<enterprise>,<duid>"
,
gettext_noop
(
"Specify DUID_EN-type DHCPv6 server DUID"
),
NULL
},
{
LOPT_HOST_REC
,
ARG_DUP
,
"<name>,<address>"
,
gettext_noop
(
"Specify host (A/AAAA and PTR) records"
),
NULL
},
{
LOPT_HOST_REC
,
ARG_DUP
,
"<name>,<address>"
,
gettext_noop
(
"Specify host (A/AAAA and PTR) records"
),
NULL
},
{
LOPT_RR
,
ARG_DUP
,
"<name>,<RR-number>,[<data>]"
,
gettext_noop
(
"Specify arbitrary DNS resource record"
),
NULL
},
{
LOPT_RR
,
ARG_DUP
,
"<name>,<RR-number>,[<data>]"
,
gettext_noop
(
"Specify arbitrary DNS resource record"
),
NULL
},
...
...
src/radv.c
View file @
8d030462
...
@@ -652,7 +652,7 @@ static int iface_search(struct in6_addr *local, int prefix,
...
@@ -652,7 +652,7 @@ static int iface_search(struct in6_addr *local, int prefix,
static
void
new_timeout
(
struct
dhcp_context
*
context
,
time_t
now
)
static
void
new_timeout
(
struct
dhcp_context
*
context
,
time_t
now
)
{
{
if
(
difftime
(
now
,
context
->
ra_short_period_start
)
<
60
.
0
)
if
(
difftime
(
now
,
context
->
ra_short_period_start
)
<
60
.
0
||
option_bool
(
OPT_FAST_RA
)
)
/* range 5 - 20 */
/* range 5 - 20 */
context
->
ra_time
=
now
+
5
+
(
rand16
()
/
4400
);
context
->
ra_time
=
now
+
5
+
(
rand16
()
/
4400
);
else
else
...
...
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