diff options
author | paul <paul> | 2003-08-01 00:24:13 +0000 |
---|---|---|
committer | paul <paul> | 2003-08-01 00:24:13 +0000 |
commit | d818bfd159215b102cd4cd922010f193daee8f62 (patch) | |
tree | a61a90cb20b2ca6db72a5cb75bb2bc1620f7dfdd /lib/if.h | |
parent | 6bde987e8757e6c88b0cbaa72786f1af9f90b5ca (diff) | |
download | quagga-d818bfd159215b102cd4cd922010f193daee8f62.tar.bz2 quagga-d818bfd159215b102cd4cd922010f193daee8f62.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 'lib/if.h')
-rw-r--r-- | lib/if.h | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -180,8 +180,9 @@ struct connected #endif /* IFF_LINK2 */ /* Prototypes. */ +int if_cmp_func (struct interface *, struct interface *); struct interface *if_new (void); -struct interface *if_create (void); +struct interface *if_create (char *name, int namelen); struct interface *if_lookup_by_index (unsigned int); struct interface *if_lookup_by_name (char *); struct interface *if_lookup_exact_address (struct in_addr); |