mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-14 06:50:17 +00:00
[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().
This commit is contained in:
parent
bd9da7fe8c
commit
e8eb8340c1
@ -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>
|
||||
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user