From 7d9c6e511597ee76d42bede782c9ddb9e1f83389 Mon Sep 17 00:00:00 2001 From: paul Date: Fri, 22 Oct 2004 10:54:39 +0000 Subject: 2004-10-13 Paul Jakma * sockopt.c: (getsockopt_ipv4_ifindex) no ifindex should be 0, not -1. --- lib/ChangeLog | 5 +++++ lib/sockopt.c | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) (limited to 'lib') diff --git a/lib/ChangeLog b/lib/ChangeLog index 8551ad25..79ba7143 100644 --- a/lib/ChangeLog +++ b/lib/ChangeLog @@ -1,3 +1,8 @@ +2004-10-13 Paul Jakma + + * sockopt.c: (getsockopt_ipv4_ifindex) no ifindex should be 0, not + -1. + 2004-10-19 Hasso Tepper * version.h.in: Define copyright string QUAGGA_COPYRIGHT. diff --git a/lib/sockopt.c b/lib/sockopt.c index c448d308..d16c2beb 100644 --- a/lib/sockopt.c +++ b/lib/sockopt.c @@ -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; } -- cgit v1.2.1