summaryrefslogtreecommitdiff
path: root/lib/if.h
diff options
context:
space:
mode:
authorvivek <vivek@cumulusnetworks.com>2018-03-10 04:03:41 +0000
committervivek <vivek@cumulusnetworks.com>2018-03-10 04:03:41 +0000
commit4e262455a252c700f81df75fb8107d112062bba8 (patch)
treefbd55c66eebe78ccb60424e560548d1613aa403a /lib/if.h
parentbfd498f0dab9a1937c6036cd35ed020b64a69e8f (diff)
parent58e7db106d5907cb129fcc316f02ce0bf34e3885 (diff)
Merge branch 'master' of https://github.com/frrouting/frr into evpn-ipv6-tenant-routing
Conflicts: bgpd/bgp_evpn.c
Diffstat (limited to 'lib/if.h')
-rw-r--r--lib/if.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/lib/if.h b/lib/if.h
index 79f96a7c45..7e23932a16 100644
--- a/lib/if.h
+++ b/lib/if.h
@@ -288,6 +288,7 @@ struct interface {
QOBJ_FIELDS
};
+
RB_HEAD(if_name_head, interface);
RB_PROTOTYPE(if_name_head, interface, name_entry, if_cmp_func);
RB_HEAD(if_index_head, interface);
@@ -337,8 +338,8 @@ DECLARE_QOBJ_TYPE(interface)
* can use 1000+ so they run after the daemon has initialised daemon-specific
* interface data
*/
-DECLARE_HOOK(if_add, (struct interface *ifp), (ifp))
-DECLARE_KOOH(if_del, (struct interface *ifp), (ifp))
+DECLARE_HOOK(if_add, (struct interface * ifp), (ifp))
+DECLARE_KOOH(if_del, (struct interface * ifp), (ifp))
/* Connected address structure. */
struct connected {
@@ -460,7 +461,7 @@ extern int if_cmp_name_func(char *, char *);
* else think before you use VRF_UNKNOWN
*/
extern void if_update_to_new_vrf(struct interface *, vrf_id_t vrf_id);
-extern struct interface *if_create(const char *name, vrf_id_t vrf_id);
+extern struct interface *if_create(const char *name, vrf_id_t vrf_id);
extern struct interface *if_lookup_by_index(ifindex_t, vrf_id_t vrf_id);
extern struct interface *if_lookup_exact_address(void *matchaddr, int family,
vrf_id_t vrf_id);
@@ -491,6 +492,7 @@ extern int if_is_running(struct interface *);
extern int if_is_operative(struct interface *);
extern int if_is_no_ptm_operative(struct interface *);
extern int if_is_loopback(struct interface *);
+extern int if_is_vrf(struct interface *ifp);
extern int if_is_broadcast(struct interface *);
extern int if_is_pointopoint(struct interface *);
extern int if_is_multicast(struct interface *);