diff options
author | hasso <hasso> | 2003-12-21 09:51:42 +0000 |
---|---|---|
committer | hasso <hasso> | 2003-12-21 09:51:42 +0000 |
commit | e90fbabdc6a8db7a6bbf9fa22b83da1a03023d32 (patch) | |
tree | a961d314a2a6233b0b6b0562f826005d2f9423ad /lib/if.c | |
parent | d9fd04c24bb6e6fc9aaca6daf5c062beced2605f (diff) |
lib/if.c part from [quagga-dev 552] and lib/inklist.c part from [quagga-dev
555]. Okayed by Paul.
Diffstat (limited to 'lib/if.c')
-rw-r--r-- | lib/if.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -120,7 +120,8 @@ if_create (char *name, int namelen) assert (namelen <= (INTERFACE_NAMSIZ + 1)); strncpy (ifp->name, name, namelen); ifp->name[INTERFACE_NAMSIZ] = '\0'; - listnode_add_sort (iflist, ifp); + if (if_lookup_by_name(ifp->name) == NULL) + listnode_add_sort (iflist, ifp); ifp->connected = list_new (); ifp->connected->del = (void (*) (void *)) connected_free; |