summaryrefslogtreecommitdiffstats
path: root/lib/if.h
diff options
context:
space:
mode:
authorPhilippe Guibert <philippe.guibert@6wind.com>2019-02-11 15:03:19 +0100
committerPhilippe Guibert <philippe.guibert@6wind.com>2019-06-12 08:37:58 +0200
commitda85f5e03899ee53e235ef5eb6cdacc1ae85de86 (patch)
treeaf9824ef538cb44e0f00be9425d48d6155a5130e /lib/if.h
parentzebra, ifp: on netlink discovery, anticipate the vrf creation (diff)
downloadfrr-da85f5e03899ee53e235ef5eb6cdacc1ae85de86.tar.xz
frr-da85f5e03899ee53e235ef5eb6cdacc1ae85de86.zip
lib, bgpd, ospfd, pimd, zebra, rip, ripng, bfd: change if_update_to_new_vrf() api
vrf_id parameter is replaced with struct vrf * parameter. It is needed to create vrf structure before entering in the fuction. an error is generated in case the vrf parameter is missing. Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
Diffstat (limited to 'lib/if.h')
-rw-r--r--lib/if.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/if.h b/lib/if.h
index 794952897..8bbbd1082 100644
--- a/lib/if.h
+++ b/lib/if.h
@@ -479,7 +479,7 @@ extern int if_cmp_name_func(const char *p1, const char *p2);
* This is useful for vrf route-leaking. So more than anything
* else think before you use VRF_UNKNOWN
*/
-extern void if_update_to_new_vrf(struct interface *, vrf_id_t vrf_id);
+extern void if_update_to_new_vrf(struct interface *, struct vrf *vrf);
extern struct interface *if_create(const char *name, struct vrf *vrf);
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,