diff options
author | Paul Jakma <paul.jakma@sun.com> | 2007-04-29 17:32:08 +0000 |
---|---|---|
committer | Paul Jakma <paul.jakma@sun.com> | 2007-04-29 17:32:08 +0000 |
commit | e8eb8340c14f53194786b766992f61cc0abf7a8e (patch) | |
tree | dc5c6aa366ec2393d0f5467b7c21f91ac264065d | |
parent | bd9da7fe8cdbc915f3b43a0632326401f28fe310 (diff) |
[zebra/solaris] fix if_get_index passing wrong arg to lifreq_set_name
2007-04-29 Paul Jakma <paul.jakma@sun.com>
* if_ioctl_solaris.c: (if_get_index) Fix bogus argument passed
to lifreq_set_name().
-rw-r--r-- | zebra/ChangeLog | 2 | ||||
-rw-r--r-- | zebra/if_ioctl_solaris.c | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/zebra/ChangeLog b/zebra/ChangeLog index 19a76246..11e406d4 100644 --- a/zebra/ChangeLog +++ b/zebra/ChangeLog @@ -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> diff --git a/zebra/if_ioctl_solaris.c b/zebra/if_ioctl_solaris.c index 4267a424..fc384ea2 100644 --- a/zebra/if_ioctl_solaris.c +++ b/zebra/if_ioctl_solaris.c @@ -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); |