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
6ec5f5c4
Commit
6ec5f5c4
authored
Apr 24, 2017
by
Vladislav Grishenko
Committed by
Simon Kelley
Apr 24, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Extend --ra-param mtu: field to allow an interface name.
parent
5a7212c7
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
20 additions
and
6 deletions
+20
-6
CHANGELOG
CHANGELOG
+6
-1
man/dnsmasq.8
man/dnsmasq.8
+5
-1
man/fr/dnsmasq.8
man/fr/dnsmasq.8
+1
-1
src/dnsmasq.h
src/dnsmasq.h
+1
-0
src/option.c
src/option.c
+5
-2
src/radv.c
src/radv.c
+2
-1
No files found.
CHANGELOG
View file @
6ec5f5c4
...
...
@@ -103,6 +103,11 @@ version 2.77
presence of the --bogus-priv flag. Thanks to
Vladislav Grishenko for the patch.
Extend --ra-param mtu: field to allow an interface name.
This allows the MTU of a WAN interface to be advertised on
the internal interfaces of a router. Thanks to
Vladislav Grishenko for the patch.
version 2.76
Include 0.0.0.0/8 in DNS rebind checks. This range
...
...
man/dnsmasq.8
View file @
6ec5f5c4
...
...
@@ -1776,7 +1776,7 @@ the relevant link-local address of the machine running dnsmasq is sent
as recursive DNS server. If provided, the DHCPv6 options dns-server and
domain-search are used for the DNS server (RDNSS) and the domain search list (DNSSL).
.TP
.B --ra-param=<interface>,[mtu:<integer>|off,][high,|low,]<ra-interval>[,<router lifetime>]
.B --ra-param=<interface>,[mtu:<integer>|
<interface>|
off,][high,|low,]<ra-interval>[,<router lifetime>]
Set non-default values for router advertisements sent via an
interface. The priority field for the router may be altered from the
default of medium with eg
...
...
@@ -1788,7 +1788,11 @@ a router to advertise prefixes but not a route via itself.
.B --ra-parm=eth0,0,0
(A value of zero for the interval means the default value.) All four parameters may be set at once.
.B --ra-param=eth0,mtu:1280,low,60,1200
The interface field may include a wildcard.
The mtu: parameter may be an arbitrary interface name, in which case the MTU value for that interface is used. This is useful
for (eg) advertising the MTU of a WAN interface on the other interfaces of a router.
.TP
.B --dhcp-reply-delay=[tag:<tag>,]<integer>
Delays sending DHCPOFFER and proxydhcp replies for at least the specified number of seconds.
...
...
man/fr/dnsmasq.8
View file @
6ec5f5c4
...
...
@@ -1756,7 +1756,7 @@ dnsmasq est spécifiée comme DNS récursif. Si elles sont fournies, les
options dns-server et domain-search sont utilisées respectivement pour RDNSS et
DNSSL.
.TP
.B --ra-param=<interface>,[mtu:<valeur>|off,][high,|low,]<intervalle d'annonce routeur>[,<durée de vie route>]
.B --ra-param=<interface>,[mtu:<valeur>|
<interface>|
off,][high,|low,]<intervalle d'annonce routeur>[,<durée de vie route>]
Configure pour une interface donnée des valeurs pour les annonces routeurs
différentes des valeurs par défaut. La valeur par défaut du champ priorité
pour le routeur peut-être changée de "medium" (moyen) à "high" (haute) ou
...
...
src/dnsmasq.h
View file @
6ec5f5c4
...
...
@@ -841,6 +841,7 @@ struct prefix_class {
struct
ra_interface
{
char
*
name
;
char
*
mtu_name
;
int
interval
,
lifetime
,
prio
,
mtu
;
struct
ra_interface
*
next
;
};
...
...
src/option.c
View file @
6ec5f5c4
...
...
@@ -488,7 +488,7 @@ static struct {
#ifdef OPTION6_PREFIX_CLASS
{
LOPT_PREF_CLSS
,
ARG_DUP
,
"set:tag,<class>"
,
gettext_noop
(
"Specify DHCPv6 prefix class"
),
NULL
},
#endif
{
LOPT_RA_PARAM
,
ARG_DUP
,
"<iface>,[mtu:<value>|off,][<prio>,]<intval>[,<lifetime>]"
,
gettext_noop
(
"Set MTU, priority, resend-interval and router-lifetime"
),
NULL
},
{
LOPT_RA_PARAM
,
ARG_DUP
,
"<iface>,[mtu:<value>|
<interface>|
off,][<prio>,]<intval>[,<lifetime>]"
,
gettext_noop
(
"Set MTU, priority, resend-interval and router-lifetime"
),
NULL
},
{
LOPT_QUIET_DHCP
,
OPT_QUIET_DHCP
,
NULL
,
gettext_noop
(
"Do not log routine DHCP."
),
NULL
},
{
LOPT_QUIET_DHCP6
,
OPT_QUIET_DHCP6
,
NULL
,
gettext_noop
(
"Do not log routine DHCPv6."
),
NULL
},
{
LOPT_QUIET_RA
,
OPT_QUIET_RA
,
NULL
,
gettext_noop
(
"Do not log RA."
),
NULL
},
...
...
@@ -3707,6 +3707,7 @@ static int one_opt(int option, char *arg, char *errstr, char *gen_err, int comma
new
->
lifetime
=
-
1
;
new
->
prio
=
0
;
new
->
mtu
=
0
;
new
->
mtu_name
=
NULL
;
new
->
name
=
opt_string_alloc
(
arg
);
if
(
strcasestr
(
comma
,
"mtu:"
)
==
comma
)
{
...
...
@@ -3715,7 +3716,9 @@ static int one_opt(int option, char *arg, char *errstr, char *gen_err, int comma
goto
err
;
if
(
!
strcasecmp
(
arg
,
"off"
))
new
->
mtu
=
-
1
;
else
if
(
!
atoi_check
(
arg
,
&
new
->
mtu
)
||
new
->
mtu
<
1280
)
else
if
(
!
atoi_check
(
arg
,
&
new
->
mtu
))
new
->
mtu_name
=
opt_string_alloc
(
arg
);
else
if
(
new
->
mtu
<
1280
)
goto
err
;
}
if
(
strcasestr
(
comma
,
"high"
)
==
comma
||
strcasestr
(
comma
,
"low"
)
==
comma
)
...
...
src/radv.c
View file @
6ec5f5c4
...
...
@@ -408,7 +408,8 @@ static void send_ra_alias(time_t now, int iface, char *iface_name, struct in6_ad
available from SIOCGIFMTU */
if
(
mtu
==
0
)
{
sprintf
(
daemon
->
namebuff
,
"/proc/sys/net/ipv6/conf/%s/mtu"
,
iface_name
);
char
*
mtu_name
=
ra_param
?
ra_param
->
mtu_name
:
NULL
;
sprintf
(
daemon
->
namebuff
,
"/proc/sys/net/ipv6/conf/%s/mtu"
,
mtu_name
?
:
iface_name
);
if
((
f
=
fopen
(
daemon
->
namebuff
,
"r"
)))
{
if
(
fgets
(
daemon
->
namebuff
,
MAXDNAME
,
f
))
...
...
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