diff options
author | Pavel Emelyanov <xemul@parallels.com> | 2013-08-21 12:32:39 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-08-21 21:21:45 +0200 |
commit | 76975e9cb4a7c6fe39478a3dc4dd292a5c6c8c74 (patch) | |
tree | c17c80f50fc5fa83b350e28ca04630ad738d0213 /include/uapi | |
parent | tun: Allow to skip filter on attach (diff) | |
download | linux-76975e9cb4a7c6fe39478a3dc4dd292a5c6c8c74.tar.xz linux-76975e9cb4a7c6fe39478a3dc4dd292a5c6c8c74.zip |
tun: Get skfilter layout
The only thing we may have from tun device is the fprog, whic contains
the number of filter elements and a pointer to (user-space) memory
where the elements are. The program itself may not be available if the
device is persistent and detached.
Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/uapi')
-rw-r--r-- | include/uapi/linux/if_tun.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/uapi/linux/if_tun.h b/include/uapi/linux/if_tun.h index cc127b2b4c3d..e9502dd1ee2c 100644 --- a/include/uapi/linux/if_tun.h +++ b/include/uapi/linux/if_tun.h @@ -57,6 +57,7 @@ #define TUNSETVNETHDRSZ _IOW('T', 216, int) #define TUNSETQUEUE _IOW('T', 217, int) #define TUNSETIFINDEX _IOW('T', 218, unsigned int) +#define TUNGETFILTER _IOR('T', 219, struct sock_fprog) /* TUNSETIFF ifr flags */ #define IFF_TUN 0x0001 |