diff options
| author | Stephen Worley <sworley@cumulusnetworks.com> | 2019-10-09 19:50:13 -0400 |
|---|---|---|
| committer | Stephen Worley <sworley@cumulusnetworks.com> | 2019-10-09 20:24:31 -0400 |
| commit | d5c65bf1a2b43d97e19e169223d8a33269bc6625 (patch) | |
| tree | 543831bbc4aa6e90c786cffe7c5639732002590b /zebra/kernel_socket.c | |
| parent | 9685b1e414118391825ad56faa8879d279eebeb6 (diff) | |
*: Cleanup interface creation apis
Cleanup the interface creation apis to make it more
clear what they are doing.
Make it explicit that the creation via name/ifindex will
only add it to the appropriate list.
Signed-off-by: Stephen Worley <sworley@cumulusnetworks.com>
Diffstat (limited to 'zebra/kernel_socket.c')
| -rw-r--r-- | zebra/kernel_socket.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/zebra/kernel_socket.c b/zebra/kernel_socket.c index 60fbbcc059..f5aca2341d 100644 --- a/zebra/kernel_socket.c +++ b/zebra/kernel_socket.c @@ -643,7 +643,7 @@ int ifm_read(struct if_msghdr *ifm) if (ifp == NULL) { /* Interface that zebra was not previously aware of, so * create. */ - ifp = if_create(ifname, VRF_DEFAULT); + ifp = if_create_name(ifname, VRF_DEFAULT); if (IS_ZEBRA_DEBUG_KERNEL) zlog_debug("%s: creating ifp for ifindex %d", __func__, ifm->ifm_index); |
