Browse Source

2004-08-19 Paul Jakma <paul@dishone.st>

        * irdp_main.c: update to match sockopt renames.
        * irdp_packet.c: include sockopt.h and update to match sockopt
	  renames.
paul 15 years ago
parent
commit
0de1cde6e6
3 changed files with 9 additions and 3 deletions
  1. 6 0
      zebra/ChangeLog
  2. 1 1
      zebra/irdp_main.c
  3. 2 2
      zebra/irdp_packet.c

+ 6 - 0
zebra/ChangeLog

@@ -1,3 +1,9 @@
+2004-08-19 Paul Jakma <paul@dishone.st>
+
+        * irdp_main.c: update to match sockopt renames.
+        * irdp_packet.c: include sockopt.h and update to match sockopt
+	  renames.
+                
 2004-08-11  Greg Troxel  <gdt@fnord.ir.bbn.com>
 
 	* rtadv.c (rtadv_send_packet): Allocate space for control messages

+ 1 - 1
zebra/irdp_main.c

@@ -124,7 +124,7 @@ irdp_sock_init (void)
     return ret;
   };
   
-  ret = setsockopt_pktinfo_ipv4 (irdp_sock, 1);
+  ret = setsockopt_pktinfo (AF_INET, irdp_sock, 1);
   if (ret < 0) {
     zlog_warn ("IRDP: can't do irdp sockopt %s", strerror(errno));
     return ret;

+ 2 - 2
zebra/irdp_packet.c

@@ -61,7 +61,7 @@
 #include "if.h"
 #include "sockunion.h"
 #include "log.h"
-
+#include "sockopt.h"
 
 
 /* GLOBAL VARS */
@@ -214,7 +214,7 @@ int irdp_recvmsg (int sock,
     return ret;
   }
 
-  ifindex = getsockopt_pktinfo_ifindex (AF_INET, &msg);
+  ifindex = getsockopt_ifindex (AF_INET, &msg);
 
   return ret;
 }