From e8eb8340c14f53194786b766992f61cc0abf7a8e Mon Sep 17 00:00:00 2001 From: Paul Jakma Date: Sun, 29 Apr 2007 17:32:08 +0000 Subject: [zebra/solaris] fix if_get_index passing wrong arg to lifreq_set_name 2007-04-29 Paul Jakma * if_ioctl_solaris.c: (if_get_index) Fix bogus argument passed to lifreq_set_name(). --- zebra/if_ioctl_solaris.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'zebra/if_ioctl_solaris.c') 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); -- cgit v1.2.1