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
8584c502
Commit
8584c502
authored
Oct 10, 2013
by
Simon Kelley
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Don't do bindtodevice if --interface option not given.
parent
c4cd95df
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
src/dhcp-common.c
src/dhcp-common.c
+6
-3
No files found.
src/dhcp-common.c
View file @
8584c502
...
@@ -453,14 +453,17 @@ void bindtodevice(int fd)
...
@@ -453,14 +453,17 @@ void bindtodevice(int fd)
individual processes don't always see the packets they should.
individual processes don't always see the packets they should.
SO_BINDTODEVICE is only available Linux.
SO_BINDTODEVICE is only available Linux.
Note that if wildcards are used in --interface, or
a configured interface doesn't
Note that if wildcards are used in --interface, or
--interface is not used at all,
yet exist, then more interfaces may arrive later, so we can't safely assert there
or a configured interface doesn't yet exist, then more interfaces may arrive later,
is only one interface and proceed.
so we can't safely assert there
is only one interface and proceed.
*/
*/
struct
irec
*
iface
,
*
found
;
struct
irec
*
iface
,
*
found
;
struct
iname
*
if_tmp
;
struct
iname
*
if_tmp
;
if
(
!
daemon
->
if_names
)
return
;
for
(
if_tmp
=
daemon
->
if_names
;
if_tmp
;
if_tmp
=
if_tmp
->
next
)
for
(
if_tmp
=
daemon
->
if_names
;
if_tmp
;
if_tmp
=
if_tmp
->
next
)
if
(
if_tmp
->
name
&&
(
!
if_tmp
->
used
||
strchr
(
if_tmp
->
name
,
'*'
)))
if
(
if_tmp
->
name
&&
(
!
if_tmp
->
used
||
strchr
(
if_tmp
->
name
,
'*'
)))
return
;
return
;
...
...
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