diff options
| author | Mark Stapp <mjs@voltanet.io> | 2021-10-11 08:57:26 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-10-11 08:57:26 -0400 |
| commit | e2c3eaddd579bccb14822ee83af4322cf99807af (patch) | |
| tree | 19a7db6f6b4c0c6328b87ca23eeb47aaf2cd9380 | |
| parent | b6641f01f42461dbbc2e1af5e9e0ef3c32187f10 (diff) | |
| parent | 8975bbbdd6885b8a99be4893291a82150c254452 (diff) | |
Merge pull request #9789 from idryzhov/if-ll-type
lib: set type for newly created interfaces
| -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 15645d024d..9385418655 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)) { |
