diff options
author | paul <paul> | 2003-08-01 00:24:13 +0000 |
---|---|---|
committer | paul <paul> | 2003-08-01 00:24:13 +0000 |
commit | 106d2fd572c18bebe3dc44031c6d5e56e7b9030f (patch) | |
tree | df226870be1178b347947aecbe7d468022b47a91 /zebra | |
parent | 12ab19f1863e80134353244967a87805b12fe722 (diff) | |
download | quagga-106d2fd572c18bebe3dc44031c6d5e56e7b9030f.tar.bz2 quagga-106d2fd572c18bebe3dc44031c6d5e56e7b9030f.tar.xz |
2003-08-01 Cougar <cougar@random.ee>
* lib/if.c: (if_cmp_func) new function, compare interface names in
alphabetical order.
(if_create) Take name as argument and add interface in sorted order.
(if_get_by_name),(interface_cmd) fixup calls to if_create - see
above.
(if_init) register list comparison function.
* lib/if.h: Add comparison function, modify if_create prototype.
* lib/zclient.c: Modify call to if_create.
* ospfd/ospf_interface.c: (ospf_vl_new) modify call to if_create.
change sprintf to snprintf.
* zebra/kernel_socket.c: (ifm_read) modify call to if_create.
Diffstat (limited to 'zebra')
-rw-r--r-- | zebra/kernel_socket.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/zebra/kernel_socket.c b/zebra/kernel_socket.c index 95273159..05eec596 100644 --- a/zebra/kernel_socket.c +++ b/zebra/kernel_socket.c @@ -219,9 +219,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__) |