summaryrefslogtreecommitdiffstats
path: root/lib/if.h
diff options
context:
space:
mode:
authorStephen Worley <sworley@cumulusnetworks.com>2020-05-19 19:58:48 +0200
committerGitHub <noreply@github.com>2020-05-19 19:58:48 +0200
commit3dab0aea06d98bcc6192743c747d31afa67f68d1 (patch)
treeb7dd0137747861035b785832ef41732b7b46d871 /lib/if.h
parentMerge pull request #6417 from opensourcerouting/bfdd-duplicated (diff)
parentlib, zebra: update interface name at netlink creation (diff)
downloadfrr-3dab0aea06d98bcc6192743c747d31afa67f68d1.tar.xz
frr-3dab0aea06d98bcc6192743c747d31afa67f68d1.zip
Merge pull request #6426 from pguibert6WIND/update_ifname_before_hook
Update ifname before hook
Diffstat (limited to 'lib/if.h')
-rw-r--r--lib/if.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/if.h b/lib/if.h
index 8dc418f20..e74e366e7 100644
--- a/lib/if.h
+++ b/lib/if.h
@@ -509,7 +509,8 @@ extern void if_update_to_new_vrf(struct interface *, vrf_id_t vrf_id);
extern struct interface *if_create_name(const char *name, vrf_id_t vrf_id);
/* Create new interface, adds to index list only */
-extern struct interface *if_create_ifindex(ifindex_t ifindex, vrf_id_t vrf_id);
+extern struct interface *if_create_ifindex(ifindex_t ifindex, vrf_id_t vrf_id,
+ char *name);
extern struct interface *if_lookup_by_index(ifindex_t, vrf_id_t vrf_id);
extern struct interface *if_lookup_by_index_all_vrf(ifindex_t);
extern struct interface *if_lookup_exact_address(const void *matchaddr,
@@ -524,8 +525,8 @@ size_t if_lookup_by_hwaddr(const uint8_t *hw_addr, size_t addrsz,
extern struct interface *if_lookup_by_name_all_vrf(const char *ifname);
extern struct interface *if_lookup_by_name(const char *ifname, vrf_id_t vrf_id);
extern struct interface *if_get_by_name(const char *ifname, vrf_id_t vrf_id);
-extern struct interface *if_get_by_ifindex(ifindex_t ifindex, vrf_id_t vrf_id);
-
+extern struct interface *if_get_by_ifindex(ifindex_t ifindex, vrf_id_t vrf_id,
+ char *optional_name);
/* Sets the index and adds to index list */
extern int if_set_index(struct interface *ifp, ifindex_t ifindex);
/* Sets the name and adds to name list */