aboutsummaryrefslogtreecommitdiffstats
path: root/libbridge/libbridge_if.c
diff options
context:
space:
mode:
Diffstat (limited to 'libbridge/libbridge_if.c')
-rw-r--r--libbridge/libbridge_if.c28
1 files changed, 0 insertions, 28 deletions
diff --git a/libbridge/libbridge_if.c b/libbridge/libbridge_if.c
index b184c46..77d3f8a 100644
--- a/libbridge/libbridge_if.c
+++ b/libbridge/libbridge_if.c
@@ -115,31 +115,3 @@ int br_del_interface(const char *bridge, const char *dev)
return err < 0 ? errno : 0;
}
-
-int br_set_mirror(const char *bridge, const char *dev)
-{
- struct ifreq ifr;
- int ifindex = if_nametoindex(dev);
-
- if (ifindex == 0)
- return ENODEV;
-
- strncpy(ifr.ifr_name, bridge, IFNAMSIZ);
- ifr.ifr_ifindex = ifindex;
-
- return ioctl(br_socket_fd, SIOCBRADDMIRROR, &ifr);
-}
-
-int br_remove_mirror(const char *bridge, const char *dev)
-{
- struct ifreq ifr;
- int ifindex = if_nametoindex(dev);
-
- if (ifindex == 0)
- return ENODEV;
-
- strncpy(ifr.ifr_name, bridge, IFNAMSIZ);
- ifr.ifr_ifindex = ifindex;
-
- return ioctl(br_socket_fd, SIOCBRDELMIRROR, &ifr);
-}