summaryrefslogtreecommitdiff
path: root/zebra
diff options
context:
space:
mode:
authorhasso <hasso>2003-06-05 17:50:01 +0000
committerhasso <hasso>2003-06-05 17:50:01 +0000
commita939514c59fe1a56a820e82bc59d82c721076c03 (patch)
tree85a2d3d1d3e0a4f35d0865778c7522b8569b40f8 /zebra
parent41908818b8f446befc3654fa5bbc98c6c0af92a3 (diff)
Patch from Cougar - sort iflist by name.
Diffstat (limited to 'zebra')
-rw-r--r--zebra/kernel_socket.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/zebra/kernel_socket.c b/zebra/kernel_socket.c
index 30e0fb1d..ccf8515f 100644
--- a/zebra/kernel_socket.c
+++ b/zebra/kernel_socket.c
@@ -218,9 +218,8 @@ ifm_read (struct if_msghdr *ifm)
return -1;
}
- ifp = if_create ();
+ ifp = if_create (sdl->sdl_data, sdl->sdl_nlen);
- strncpy (ifp->name, sdl->sdl_data, sdl->sdl_nlen);
ifp->ifindex = ifm->ifm_index;
ifp->flags = ifm->ifm_flags;
#if defined(__bsdi__)