diff options
| author | Andrew Morton <akpm@osdl.org> | 2005-01-06 11:08:19 -0500 |
|---|---|---|
| committer | Jeff Garzik <jgarzik@pobox.com> | 2005-01-06 11:08:19 -0500 |
| commit | 221054fb4d0a8f7b1efe2e158189ccd183762d07 (patch) | |
| tree | 7ab841f385c16ef5ac14ff9e4160858378294749 /include/linux/if_tun.h | |
| parent | 269403f565718bf3be985f731c7f52a067364111 (diff) | |
[PATCH] Multicast filtering for tun.c
From: Shaun Jackman <sjackman@gmail.com>
This patch adds multicast filtering to the TUN network driver, for
packets being sent from the network device to the character device.
* drivers/net/tun.c: Add multicast filtering for packets travelling from
the network device to the character device.
* include/linux/if_tun.h (tun_struct): Add interface flags, a hardware
device addres, and a multicast filter.
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Jeff Garzik <jgarzik@pobox.com>
Diffstat (limited to 'include/linux/if_tun.h')
| -rw-r--r-- | include/linux/if_tun.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/linux/if_tun.h b/include/linux/if_tun.h index ad1e168004ee..386e1f91a1e1 100644 --- a/include/linux/if_tun.h +++ b/include/linux/if_tun.h @@ -45,6 +45,11 @@ struct tun_struct { struct fasync_struct *fasync; + unsigned long if_flags; + u8 dev_addr[ETH_ALEN]; + u32 chr_filter[2]; + u32 net_filter[2]; + #ifdef TUN_DEBUG int debug; #endif |
