2004-10-13 Paul Jakma <paul@dishone.st>
* sockopt.c: (getsockopt_ipv4_ifindex) no ifindex should be 0, not
-1.
diff --git a/lib/sockopt.c b/lib/sockopt.c
index c448d30..d16c2be 100644
--- a/lib/sockopt.c
+++ b/lib/sockopt.c
@@ -334,9 +334,9 @@
#else /* neither IP_PKTINFO nor IP_RECVIF, broken */
#warning "getsockopt_ipv4_pktinfo_ifindex: dont have PKTINFO or RECVIF"
-#warning "things will be broken on this platform!"
+#warning "things probably will be broken on this platform!"
/* XXX why not -1 - this is a failure condition. */
- ifindex = -1;
+ ifindex = 0;
#endif /* IP_PKTINFO */
return ifindex;
}