summaryrefslogtreecommitdiffstats
path: root/include/linux/if_tun.h
diff options
context:
space:
mode:
authorMichael S. Tsirkin <mst@redhat.com>2010-02-14 01:01:10 +0000
committerDavid S. Miller <davem@davemloft.net>2010-02-17 16:35:17 -0800
commit99405162598176e830d17ae6d4f3d9e070ad900c (patch)
tree41a23acd64d3f18de729c2abadc98f7c4687aa45 /include/linux/if_tun.h
parent5ff3f073670b544a9c0547cc6fef1f7eed5762ed (diff)
downloadop-kernel-dev-99405162598176e830d17ae6d4f3d9e070ad900c.zip
op-kernel-dev-99405162598176e830d17ae6d4f3d9e070ad900c.tar.gz
tun: socket filter support
This patch adds Linux Socket Filter support to tun driver. Signed-off-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/if_tun.h')
-rw-r--r--include/linux/if_tun.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/if_tun.h b/include/linux/if_tun.h
index 404abe0..1350a24 100644
--- a/include/linux/if_tun.h
+++ b/include/linux/if_tun.h
@@ -18,6 +18,7 @@
#include <linux/types.h>
#include <linux/if_ether.h>
+#include <linux/filter.h>
/* Read queue size */
#define TUN_READQ_SIZE 500
@@ -48,6 +49,8 @@
#define TUNGETIFF _IOR('T', 210, unsigned int)
#define TUNGETSNDBUF _IOR('T', 211, int)
#define TUNSETSNDBUF _IOW('T', 212, int)
+#define TUNATTACHFILTER _IOW('T', 213, struct sock_fprog)
+#define TUNDETACHFILTER _IOW('T', 214, struct sock_fprog)
/* TUNSETIFF ifr flags */
#define IFF_TUN 0x0001
OpenPOWER on IntegriCloud