summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorHans Dedecker <hans.dedecker@technicolor.com>2013-12-10 09:34:30 +0100
committerHans Dedecker <hans.dedecker@technicolor.com>2013-12-10 09:34:30 +0100
commita94f6e265975f52bfd85f33d6ce077ceee6a323a (patch)
tree5a79fe1b30cba3ac9636d11624b11fbc8e89d92f
parentdd3a301be17b33079306ae54b4a3fc30fcafba57 (diff)
Fix hop limit detection in ancillary data
-rw-r--r--src/odhcpd.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/odhcpd.c b/src/odhcpd.c
index d6ca298..cb84513 100644
--- 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);