--- zzzz-none-000/linux-3.10.107/net/bridge/br_notify.c 2017-06-27 09:49:32.000000000 +0000 +++ vr9-7490-729/linux-3.10.107/net/bridge/br_notify.c 2021-11-10 11:53:56.000000000 +0000 @@ -31,7 +31,16 @@ */ static int br_device_event(struct notifier_block *unused, unsigned long event, void *ptr) { +#if 0 + /* AVM: not present in 2.6.32: added around 3.10 + * + * commit: + * 351638e7deeed2ec8ce451b53d33921b3da68f83 net: pass info struct via netdevice notifier + */ + struct net_device *dev = netdev_notifier_info_to_dev(ptr); +#else struct net_device *dev = ptr; +#endif struct net_bridge_port *p; struct net_bridge *br; bool changed_addr; @@ -102,6 +111,17 @@ case NETDEV_PRE_TYPE_CHANGE: /* Forbid underlaying device to change its type. */ return NOTIFY_BAD; +#if 0 + /* AVM: not present in 2.6.32, added around 3.11 + * + * commit: + * 4aa5dee4d9997879adff858514844efab5a15a01 net: convert resend IGMP to notifier event + */ + case NETDEV_RESEND_IGMP: + /* Propagate to master device */ + call_netdevice_notifiers(event, br->dev); + break; +#endif } /* Events that may cause spanning tree to refresh */