summaryrefslogtreecommitdiffstats
path: root/ospfd/ospf_network.c
diff options
context:
space:
mode:
authorpaul <paul>2004-10-22 14:05:17 +0200
committerpaul <paul>2004-10-22 14:05:17 +0200
commitac1912327ea078f1336d54fdb1177592f94a7980 (patch)
tree0c1f6707631855387c9babee1ebe7e92e3fa4cf0 /ospfd/ospf_network.c
parent2004-10-22 Paul Jakma <paul@dishone.st> (diff)
downloadfrr-ac1912327ea078f1336d54fdb1177592f94a7980.tar.xz
frr-ac1912327ea078f1336d54fdb1177592f94a7980.zip
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.
Diffstat (limited to 'ospfd/ospf_network.c')
-rw-r--r--ospfd/ospf_network.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/ospfd/ospf_network.c b/ospfd/ospf_network.c
index 63851879e..266f775a8 100644
--- a/ospfd/ospf_network.c
+++ b/ospfd/ospf_network.c
@@ -201,7 +201,8 @@ ospf_sock_init (void)
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");