From 221054fb4d0a8f7b1efe2e158189ccd183762d07 Mon Sep 17 00:00:00 2001 From: Andrew Morton Date: Thu, 6 Jan 2005 11:08:19 -0500 Subject: [PATCH] Multicast filtering for tun.c From: Shaun Jackman 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 Signed-off-by: Jeff Garzik --- include/linux/if_tun.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'include') 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 -- cgit v1.2.3