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
22cd8601
Commit
22cd8601
authored
Jan 14, 2018
by
Simon Kelley
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Allow more than one --bridge-interface option to refer to an interface.
parent
3c973ad9
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
28 additions
and
7 deletions
+28
-7
CHANGELOG
CHANGELOG
+8
-0
man/dnsmasq.8
man/dnsmasq.8
+5
-1
src/option.c
src/option.c
+15
-6
No files found.
CHANGELOG
View file @
22cd8601
...
...
@@ -23,6 +23,14 @@ version 2.79
time validation when --dnssec-no-timecheck is in use.
Note that this is an incompatible change from earlier releases.
Allow more than one --bridge-interface option to refer to an
interface, so that we can use
--bridge-interface=int1,alias1
--bridge-interface=int1,alias2
as an alternative to
--bridge-interface=int1,alias1,alias2
Thanks to Neil Jerram for work on this.
version 2.78
Fix logic of appending ".<layer>" to PXE basename. Thanks to Chris
...
...
man/dnsmasq.8
View file @
22cd8601
...
...
@@ -1695,13 +1695,17 @@ option also forces the leasechange script to be called on changes
to the client-id and lease length and expiry time.
.TP
.B --bridge-interface=<interface>,<alias>[,<alias>]
Treat DHCP (v4 and v6) request and IPv6 Router Solicit packets
Treat DHCP (v4 and v6) request
s
and IPv6 Router Solicit packets
arriving at any of the <alias> interfaces as if they had arrived at
<interface>. This option allows dnsmasq to provide DHCP and RA
service over unaddressed and unbridged Ethernet interfaces, e.g. on an
OpenStack compute host where each such interface is a TAP interface to
a VM, or as in "old style bridging" on BSD platforms. A trailing '*'
wildcard can be used in each <alias>.
It is permissible to add more than one alias using more than one --bridge-interface option since
--bridge-interface=int1,alias1,alias2 is exactly equivalent to
--bridge-interface=int1,alias1 --bridge-interface=int1,alias2
.TP
.B \-s, --domain=<domain>[,<address range>[,local]]
Specifies DNS domains for the DHCP server. Domains may be be given
...
...
src/option.c
View file @
22cd8601
...
...
@@ -2733,15 +2733,24 @@ static int one_opt(int option, char *arg, char *errstr, char *gen_err, int comma
case
LOPT_BRIDGE
:
/* --bridge-interface */
{
struct
dhcp_bridge
*
new
=
opt_malloc
(
sizeof
(
struct
dhcp_bridge
));
struct
dhcp_bridge
*
new
;
if
(
!
(
comma
=
split
(
arg
))
||
strlen
(
arg
)
>
IF_NAMESIZE
-
1
)
ret_err
(
_
(
"bad bridge-interface"
));
strcpy
(
new
->
iface
,
arg
);
new
->
alias
=
NULL
;
new
->
next
=
daemon
->
bridges
;
daemon
->
bridges
=
new
;
for
(
new
=
daemon
->
bridges
;
new
;
new
=
new
->
next
)
if
(
strcmp
(
new
->
iface
,
arg
)
==
0
)
break
;
if
(
!
new
)
{
new
=
opt_malloc
(
sizeof
(
struct
dhcp_bridge
));
strcpy
(
new
->
iface
,
arg
);
new
->
alias
=
NULL
;
new
->
next
=
daemon
->
bridges
;
daemon
->
bridges
=
new
;
}
do
{
arg
=
comma
;
comma
=
split
(
arg
);
...
...
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