diff options
author | Stephen Worley <sworley@cumulusnetworks.com> | 2020-05-19 19:58:48 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-19 19:58:48 +0200 |
commit | 3dab0aea06d98bcc6192743c747d31afa67f68d1 (patch) | |
tree | b7dd0137747861035b785832ef41732b7b46d871 /lib/if.h | |
parent | Merge pull request #6417 from opensourcerouting/bfdd-duplicated (diff) | |
parent | lib, zebra: update interface name at netlink creation (diff) | |
download | frr-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.h | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -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 */ |