]> git.puffer.fish Git - mirror/frr.git/commitdiff
[zebra/solaris] fix if_get_index passing wrong arg to lifreq_set_name
authorPaul Jakma <paul.jakma@sun.com>
Sun, 29 Apr 2007 17:32:08 +0000 (17:32 +0000)
committerPaul Jakma <paul.jakma@sun.com>
Sun, 29 Apr 2007 17:32:08 +0000 (17:32 +0000)
2007-04-29 Paul Jakma <paul.jakma@sun.com>

* if_ioctl_solaris.c: (if_get_index) Fix bogus argument passed
  to lifreq_set_name().

zebra/ChangeLog
zebra/if_ioctl_solaris.c

index 19a76246f16b0820791c2f20de9f3b0abb98c973..11e406d499396f0a1ae6a1b8e2d046a831038908 100644 (file)
@@ -1,6 +1,8 @@
 2007-04-29 Paul Jakma <paul.jakma@sun.com>
 
        * ioctl{_solaris,}.c: (if_get_mtu) Fix missing ; in last commit.
+       * if_ioctl_solaris.c: (if_get_index) Fix bogus argument passed
+         to lifreq_set_name().
 
 2007-04-10 Paul Jakma <paul.jakma@sun.com>
 
index 4267a4245a38f9d43fd45f17aa973cd4aa2071bd..fc384ea29a3f4a0c966bd8494cec8b3ce2d43bac 100644 (file)
@@ -214,7 +214,7 @@ if_get_index (struct interface *ifp)
   int ret;
   struct lifreq lifreq;
 
-  lifreq_set_name (&lifreq, ifp);
+  lifreq_set_name (&lifreq, ifp->name);
 
   if (ifp->flags & IFF_IPV4)
     ret = AF_IOCTL (AF_INET, SIOCGLIFINDEX, (caddr_t) & lifreq);