summaryrefslogtreecommitdiffstats
path: root/zebra/if_ioctl.c
diff options
context:
space:
mode:
authorPhilippe Guibert <philippe.guibert@6wind.com>2018-02-22 19:10:32 +0100
committerPhilippe Guibert <philippe.guibert@6wind.com>2018-02-27 11:11:24 +0100
commit4db21619552b3f6823bf1ae8103eac82aab628f7 (patch)
tree64e09003b0618157a0211ef7422978d2894ae14d /zebra/if_ioctl.c
parentzebra: speed ioctl read() with interfaces from various NETNS (diff)
downloadfrr-4db21619552b3f6823bf1ae8103eac82aab628f7.tar.xz
frr-4db21619552b3f6823bf1ae8103eac82aab628f7.zip
zebra: handle some ioctl operations for VRF
A new API is available for interface ioctl operations on Linux: vrf_if_ioctl. This is the unified API that permits doing ioctl operations on a per interface basis. Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
Diffstat (limited to 'zebra/if_ioctl.c')
-rw-r--r--zebra/if_ioctl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/zebra/if_ioctl.c b/zebra/if_ioctl.c
index 1d108886d..09fc08501 100644
--- a/zebra/if_ioctl.c
+++ b/zebra/if_ioctl.c
@@ -146,7 +146,7 @@ static int if_get_hwaddr(struct interface *ifp)
ifreq.ifr_addr.sa_family = AF_INET;
/* Fetch Hardware address if available. */
- ret = if_ioctl(SIOCGIFHWADDR, (caddr_t)&ifreq);
+ ret = vrf_if_ioctl(SIOCGIFHWADDR, (caddr_t)&ifreq, ifp->vrf_id);
if (ret < 0)
ifp->hw_addr_len = 0;
else {