2004-10-22 Paul Jakma <paul@dishone.st>
* ospf_network.c: (ospf_sock_init) call neutral setsock_ifindex()
function.
* ospf_packet.c: (ospf_read) manually look up ifindex
if system could not have returned one, eg openbsd.
diff --git a/ospfd/ospf_network.c b/ospfd/ospf_network.c
index 6385187..266f775 100644
--- a/ospfd/ospf_network.c
+++ b/ospfd/ospf_network.c
@@ -201,7 +201,8 @@
zlog_warn ("IP_HDRINCL option not available");
#endif /* IP_HDRINCL */
- ret = setsockopt_pktinfo (AF_INET, ospf_sock, 1);
+ ret = setsockopt_ifindex (AF_INET, ospf_sock, 1);
+
if (ret < 0)
zlog_warn ("Can't set pktinfo option");