diff options
author | Philippe Guibert <philippe.guibert@6wind.com> | 2019-02-11 14:55:23 +0100 |
---|---|---|
committer | Philippe Guibert <philippe.guibert@6wind.com> | 2019-06-11 17:10:47 +0200 |
commit | e9c199a6c12ad8359d1792462545595d4679d20b (patch) | |
tree | 4175e4375b75d7c0a50863da4194e01a5a034f26 /zebra/kernel_socket.c | |
parent | ospf, ospf6d, zebra, lib: change if_get_by_name prototype with vrf (diff) | |
download | frr-e9c199a6c12ad8359d1792462545595d4679d20b.tar.xz frr-e9c199a6c12ad8359d1792462545595d4679d20b.zip |
lib, ospfd, pimd, zebra: change if_create() api with vrf
if_create() takes as input a vrf poiter instead of the vrf_id parameter.
Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
Diffstat (limited to 'zebra/kernel_socket.c')
-rw-r--r-- | zebra/kernel_socket.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/zebra/kernel_socket.c b/zebra/kernel_socket.c index 9e1593a12..88bcc0e45 100644 --- a/zebra/kernel_socket.c +++ b/zebra/kernel_socket.c @@ -530,6 +530,7 @@ int ifm_read(struct if_msghdr *ifm) int maskbit; caddr_t cp; char fbuf[64]; + struct vrf *vrf = vrf_lookup_by_id(VRF_DEFAULT); /* terminate ifname at head (for strnlen) and tail (for safety) */ ifname[IFNAMSIZ - 1] = '\0'; @@ -644,7 +645,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(ifname, vrf); if (IS_ZEBRA_DEBUG_KERNEL) zlog_debug("%s: creating ifp for ifindex %d", __func__, ifm->ifm_index); |