diff options
author | Mark Stapp <mjs@voltanet.io> | 2021-10-11 14:57:26 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-11 14:57:26 +0200 |
commit | e2c3eaddd579bccb14822ee83af4322cf99807af (patch) | |
tree | 19a7db6f6b4c0c6328b87ca23eeb47aaf2cd9380 /zebra | |
parent | Merge pull request #9780 from idryzhov/bgp-local-pointer (diff) | |
parent | lib: set type for newly created interfaces (diff) | |
download | frr-e2c3eaddd579bccb14822ee83af4322cf99807af.tar.xz frr-e2c3eaddd579bccb14822ee83af4322cf99807af.zip |
Merge pull request #9789 from idryzhov/if-ll-type
lib: set type for newly created interfaces
Diffstat (limited to 'zebra')
-rw-r--r-- | zebra/if_netlink.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/zebra/if_netlink.c b/zebra/if_netlink.c index 15645d024..938541865 100644 --- a/zebra/if_netlink.c +++ b/zebra/if_netlink.c @@ -1832,6 +1832,8 @@ int netlink_link_change(struct nlmsghdr *h, ns_id_t ns_id, int startup) /* Update link. */ zebra_if_update_link(ifp, link_ifindex, ns_id); + ifp->ll_type = + netlink_to_zebra_link_type(ifi->ifi_type); netlink_interface_update_hw_addr(tb, ifp); /* Inform clients, install any configured addresses. */ @@ -1899,6 +1901,8 @@ int netlink_link_change(struct nlmsghdr *h, ns_id_t ns_id, int startup) /* Update link. */ zebra_if_update_link(ifp, link_ifindex, ns_id); + ifp->ll_type = + netlink_to_zebra_link_type(ifi->ifi_type); netlink_interface_update_hw_addr(tb, ifp); if (if_is_no_ptm_operative(ifp)) { |