2004-10-22 Paul Jakma <paul@dishone.st>
* ospfd/ospf_packet.c: setsockopt_pktinfo -> setsockopt_ifindex
* zebra/irdp_main.c: ditto
diff --git a/ospfd/ospf_packet.c b/ospfd/ospf_packet.c
index 84f790a..a931fdb 100644
--- a/ospfd/ospf_packet.c
+++ b/ospfd/ospf_packet.c
@@ -2303,6 +2303,9 @@
if (ibuf == NULL)
return -1;
+ iph = (struct ip *) STREAM_DATA (ibuf);
+ sockopt_iphdrincl_swab_systoh (iph);
+
/* openbsd lacks IP_RECVIF */
#if !(defined(IP_PKTINFO) || defined(IP_RECVIF))
if (ifp == NULL)
@@ -2314,9 +2317,6 @@
stream_free (ibuf);
return 0;
}
-
- iph = (struct ip *) STREAM_DATA (ibuf);
- sockopt_iphdrincl_swab_systoh (iph);
/* prepare for next packet. */
ospf->t_read = thread_add_read (master, ospf_read, ospf, ospf->fd);