]> git.puffer.fish Git - matthieu/frr.git/commitdiff
2004-10-13 Paul Jakma <paul@dishone.st>
authorpaul <paul>
Fri, 22 Oct 2004 10:54:39 +0000 (10:54 +0000)
committerpaul <paul>
Fri, 22 Oct 2004 10:54:39 +0000 (10:54 +0000)
* sockopt.c: (getsockopt_ipv4_ifindex) no ifindex should be 0, not
          -1.

lib/ChangeLog
lib/sockopt.c

index 8551ad25bbdb2067be421782f1b29f2f8031c5a4..79ba7143c8f32ae93392ad9da94546fbf62820b2 100644 (file)
@@ -1,3 +1,8 @@
+2004-10-13 Paul Jakma <paul@dishone.st>
+
+       * sockopt.c: (getsockopt_ipv4_ifindex) no ifindex should be 0, not
+          -1.
+
 2004-10-19 Hasso Tepper <hasso at quagga.net>
 
        * version.h.in: Define copyright string QUAGGA_COPYRIGHT.
index c448d308543c819b835ce5a2f34932047ae4ca81..d16c2bebf4ca6d443b6444571fb87dc7b21a6a26 100644 (file)
@@ -334,9 +334,9 @@ getsockopt_ipv4_ifindex (struct msghdr *msgh)
 #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;
 }