diff options
| author | Paul Moore <pmoore@redhat.com> | 2014-08-05 15:44:22 -0400 |
|---|---|---|
| committer | Paul Moore <pmoore@redhat.com> | 2014-08-05 15:44:22 -0400 |
| commit | aa9e0de81b5b257f6dae48efe2ed5f255f066497 (patch) | |
| tree | 9b0b791d5912368006115427e74105cfe26750bd /include/linux/if_bridge.h | |
| parent | 4fbe63d1c773cceef3fe1f6ed0c9c268f4f24760 (diff) | |
| parent | 19583ca584d6f574384e17fe7613dfaeadcdc4a6 (diff) | |
Merge tag 'v3.16' into next
Linux 3.16
Diffstat (limited to 'include/linux/if_bridge.h')
| -rw-r--r-- | include/linux/if_bridge.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/include/linux/if_bridge.h b/include/linux/if_bridge.h index 1085ffeef956..fd22789d7b2e 100644 --- a/include/linux/if_bridge.h +++ b/include/linux/if_bridge.h | |||
| @@ -16,9 +16,28 @@ | |||
| 16 | #include <linux/netdevice.h> | 16 | #include <linux/netdevice.h> |
| 17 | #include <uapi/linux/if_bridge.h> | 17 | #include <uapi/linux/if_bridge.h> |
| 18 | 18 | ||
| 19 | struct br_ip { | ||
| 20 | union { | ||
| 21 | __be32 ip4; | ||
| 22 | #if IS_ENABLED(CONFIG_IPV6) | ||
| 23 | struct in6_addr ip6; | ||
| 24 | #endif | ||
| 25 | } u; | ||
| 26 | __be16 proto; | ||
| 27 | __u16 vid; | ||
| 28 | }; | ||
| 29 | |||
| 30 | struct br_ip_list { | ||
| 31 | struct list_head list; | ||
| 32 | struct br_ip addr; | ||
| 33 | }; | ||
| 34 | |||
| 19 | extern void brioctl_set(int (*ioctl_hook)(struct net *, unsigned int, void __user *)); | 35 | extern void brioctl_set(int (*ioctl_hook)(struct net *, unsigned int, void __user *)); |
| 20 | 36 | ||
| 21 | typedef int br_should_route_hook_t(struct sk_buff *skb); | 37 | typedef int br_should_route_hook_t(struct sk_buff *skb); |
| 22 | extern br_should_route_hook_t __rcu *br_should_route_hook; | 38 | extern br_should_route_hook_t __rcu *br_should_route_hook; |
| 39 | int br_multicast_list_adjacent(struct net_device *dev, | ||
| 40 | struct list_head *br_ip_list); | ||
| 41 | bool br_multicast_has_querier_adjacent(struct net_device *dev, int proto); | ||
| 23 | 42 | ||
| 24 | #endif | 43 | #endif |
