2003-06-07 Paul Jakma <paul@dishone.st>
* Revert Cougar's sort interface names patch, causes problems with
enabling of interfaces for OSPF in ospfd.
diff --git a/zebra/kernel_socket.c b/zebra/kernel_socket.c
index ccf8515..30e0fb1 100644
--- a/zebra/kernel_socket.c
+++ b/zebra/kernel_socket.c
@@ -218,8 +218,9 @@
return -1;
}
- ifp = if_create (sdl->sdl_data, sdl->sdl_nlen);
+ ifp = if_create ();
+ strncpy (ifp->name, sdl->sdl_data, sdl->sdl_nlen);
ifp->ifindex = ifm->ifm_index;
ifp->flags = ifm->ifm_flags;
#if defined(__bsdi__)