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
98079ea8
Commit
98079ea8
authored
Oct 13, 2015
by
Simon Kelley
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Catch errors from sendmsg in DHCP code.
Logs, eg, iptables DROPS of dest 255.255.255.255
parent
47901154
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
src/dhcp.c
src/dhcp.c
+6
-1
No files found.
src/dhcp.c
View file @
98079ea8
...
...
@@ -452,8 +452,13 @@ void dhcp_packet(time_t now, int pxe_fd)
#endif
while
(
retry_send
(
sendmsg
(
fd
,
&
msg
,
0
)));
/* This can fail when, eg, iptables DROPS destination 255.255.255.255 */
if
(
errno
!=
0
)
my_syslog
(
MS_DHCP
|
LOG_WARNING
,
_
(
"Error sending DHCP packet to %s: %s"
),
inet_ntoa
(
dest
.
sin_addr
),
strerror
(
errno
));
}
/* check against secondary interface addresses */
static
int
check_listen_addrs
(
struct
in_addr
local
,
int
if_index
,
char
*
label
,
struct
in_addr
netmask
,
struct
in_addr
broadcast
,
void
*
vparam
)
...
...
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