projects
/
oweals
/
odhcpd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dd3a301
)
Fix hop limit detection in ancillary data
author
Hans Dedecker
<hans.dedecker@technicolor.com>
Tue, 10 Dec 2013 08:34:30 +0000
(09:34 +0100)
committer
Hans Dedecker
<hans.dedecker@technicolor.com>
Tue, 10 Dec 2013 08:34:30 +0000
(09:34 +0100)
src/odhcpd.c
patch
|
blob
|
history
diff --git
a/src/odhcpd.c
b/src/odhcpd.c
index d6ca2988526656f3b589b2618eed161a1a908793..cb8451308a7f4cbe14ac49868775a727b690cffa 100644
(file)
--- a/
src/odhcpd.c
+++ b/
src/odhcpd.c
@@
-320,8
+320,7
@@
static void odhcpd_receive_packets(struct uloop_fd *u, _unused unsigned int even
int *hlim = NULL;
struct in6_pktinfo *pktinfo;
struct in_pktinfo *pkt4info;
- for (struct cmsghdr *ch = CMSG_FIRSTHDR(&msg); ch != NULL &&
- destiface == 0; ch = CMSG_NXTHDR(&msg, ch)) {
+ for (struct cmsghdr *ch = CMSG_FIRSTHDR(&msg); ch != NULL; ch = CMSG_NXTHDR(&msg, ch)) {
if (ch->cmsg_level == IPPROTO_IPV6 &&
ch->cmsg_type == IPV6_PKTINFO) {
pktinfo = (struct in6_pktinfo*)CMSG_DATA(ch);