2004-07-23 Paul Jakma <paul@dishone.st>

        * irdp_main.c: use setsockopt_pktinfo_ipv4
        * irdp_packet.c: use SOPT_SIZE_CMSG_PKTINFO_IPV4 and
          getsockopt_pktinfo_ifindex()
diff --git a/zebra/irdp_main.c b/zebra/irdp_main.c
index 56e4184..fd56c88 100644
--- a/zebra/irdp_main.c
+++ b/zebra/irdp_main.c
@@ -124,9 +124,7 @@
     return ret;
   };
   
-  i = 1;
-  ret = setsockopt (irdp_sock, IPPROTO_IP, IP_PKTINFO, 
-                        (void *) &i, sizeof (i));
+  ret = setsockopt_pktinfo_ipv4 (irdp_sock, 1);
   if (ret < 0) {
     zlog_warn ("IRDP: can't do irdp sockopt %s", strerror(errno));
     return ret;