|
@@ -206,12 +206,20 @@ struct net_bridge
|
|
|
|
|
|
struct br_input_skb_cb {
|
|
struct br_input_skb_cb {
|
|
struct net_device *brdev;
|
|
struct net_device *brdev;
|
|
|
|
+#ifdef CONFIG_BRIDGE_IGMP_SNOOPING
|
|
int igmp;
|
|
int igmp;
|
|
int mrouters_only;
|
|
int mrouters_only;
|
|
|
|
+#endif
|
|
};
|
|
};
|
|
|
|
|
|
#define BR_INPUT_SKB_CB(__skb) ((struct br_input_skb_cb *)(__skb)->cb)
|
|
#define BR_INPUT_SKB_CB(__skb) ((struct br_input_skb_cb *)(__skb)->cb)
|
|
|
|
|
|
|
|
+#ifdef CONFIG_BRIDGE_IGMP_SNOOPING
|
|
|
|
+# define BR_INPUT_SKB_CB_MROUTERS_ONLY(__skb) (BR_INPUT_SKB_CB(__skb)->mrouters_only)
|
|
|
|
+#else
|
|
|
|
+# define BR_INPUT_SKB_CB_MROUTERS_ONLY(__skb) (0)
|
|
|
|
+#endif
|
|
|
|
+
|
|
extern struct notifier_block br_device_notifier;
|
|
extern struct notifier_block br_device_notifier;
|
|
extern const u8 br_group_address[ETH_ALEN];
|
|
extern const u8 br_group_address[ETH_ALEN];
|
|
|
|
|