diff options
author | Donald Sharp <sharpd@cumulusnetworks.com> | 2016-04-08 15:16:14 +0200 |
---|---|---|
committer | Donald Sharp <sharpd@cumulusnetworks.com> | 2016-04-08 19:15:59 +0200 |
commit | b2d7c082a2ec76e34c5ec528ac649e185d035616 (patch) | |
tree | 256011582e089e5ff80d0ec87ea8ea5d0d5a35f3 /lib/if.h | |
parent | lib, zebra: Rename ZEBRA_VRF_ACTIVE (diff) | |
download | frr-b2d7c082a2ec76e34c5ec528ac649e185d035616.tar.xz frr-b2d7c082a2ec76e34c5ec528ac649e185d035616.zip |
quagga: Remove iflist global variable
The file if.c has a iflist that had the list of interfaces
in the default vrf. Remove this variable and replace
with a vrf_iflist lookup on the default vrf where it
was used.
Additionally, modify ptm code to iterate over all vrf's
when enabling ptm.
Ticket: CM-10338
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Reviewed-by: Don Slice <dslice@cumulusnetworks.com>
Reviewed-by: Radhika Mahankali <radhika@cumulusnetworks.com>
Diffstat (limited to 'lib/if.h')
-rw-r--r-- | lib/if.h | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -324,8 +324,8 @@ extern int if_is_broadcast (struct interface *); extern int if_is_pointopoint (struct interface *); extern int if_is_multicast (struct interface *); extern void if_add_hook (int, int (*)(struct interface *)); -extern void if_init (vrf_id_t, struct list **); -extern void if_terminate (vrf_id_t, struct list **); +extern void if_init (struct list **); +extern void if_terminate (struct list **); extern void if_dump_all (void); extern const char *if_flag_dump(unsigned long); @@ -364,7 +364,6 @@ extern char *if_indextoname (unsigned int, char *); #endif /* Exported variables. */ -extern struct list *iflist; extern struct cmd_element interface_desc_cmd; extern struct cmd_element no_interface_desc_cmd; extern struct cmd_element interface_cmd; |