diff options
author | Michael S. Tsirkin <mst@redhat.com> | 2010-02-14 01:01:10 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-02-17 16:35:17 -0800 |
commit | 99405162598176e830d17ae6d4f3d9e070ad900c (patch) | |
tree | 41a23acd64d3f18de729c2abadc98f7c4687aa45 /include/linux/if_tun.h | |
parent | 5ff3f073670b544a9c0547cc6fef1f7eed5762ed (diff) | |
download | linux-stable-99405162598176e830d17ae6d4f3d9e070ad900c.tar.gz linux-stable-99405162598176e830d17ae6d4f3d9e070ad900c.tar.bz2 linux-stable-99405162598176e830d17ae6d4f3d9e070ad900c.zip |
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.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/if_tun.h b/include/linux/if_tun.h index 404abe00162c..1350a246893a 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 |