diff options
| author | Stephen Worley <sworley@cumulusnetworks.com> | 2020-05-19 13:58:48 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-05-19 13:58:48 -0400 |
| commit | 3dab0aea06d98bcc6192743c747d31afa67f68d1 (patch) | |
| tree | b7dd0137747861035b785832ef41732b7b46d871 /zebra/if_netlink.c | |
| parent | e3ad2197e34ebd969182d0758b8be5ae882a8ff7 (diff) | |
| parent | 1f7a68a2ff0ba1424131f30112e0cc1572f0bee3 (diff) | |
Merge pull request #6426 from pguibert6WIND/update_ifname_before_hook
Update ifname before hook
Diffstat (limited to 'zebra/if_netlink.c')
| -rw-r--r-- | zebra/if_netlink.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/zebra/if_netlink.c b/zebra/if_netlink.c index 55bcda8182..c743011224 100644 --- a/zebra/if_netlink.c +++ b/zebra/if_netlink.c @@ -733,11 +733,9 @@ static int netlink_interface(struct nlmsghdr *h, ns_id_t ns_id, int startup) * back references on the slave interfaces is painful if not done * this way, i.e. by creating by ifindex. */ - ifp = if_get_by_ifindex(ifi->ifi_index, vrf_id); + ifp = if_get_by_ifindex(ifi->ifi_index, vrf_id, name); set_ifindex(ifp, ifi->ifi_index, zns); /* add it to ns struct */ - if_set_name(ifp, name); - ifp->flags = ifi->ifi_flags & 0x0000fffff; ifp->mtu6 = ifp->mtu = *(uint32_t *)RTA_DATA(tb[IFLA_MTU]); ifp->metric = 0; |
