From 4e22a509e198a7065b90cbefe94351465aab8fa2 Mon Sep 17 00:00:00 2001 From: Hauke Mehrtens Date: Wed, 1 Jan 2014 19:07:05 +0100 Subject: [PATCH] backports: add netdev_notify_peers() netif_notify_peers() was renamed to netdev_notify_peers() in kernel 3.7. Replace the calls to netdev_notify_peers() with netif_notify_peers(). Some older kernel versions do not even have netif_notify_peers(), there we just remove the call, currently it is only used in the 6lowpan code and I assume it will still work, but not so good. Signed-off-by: Hauke Mehrtens --- backport/backport-include/linux/netdevice.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/backport/backport-include/linux/netdevice.h b/backport/backport-include/linux/netdevice.h index 3d6b7b371f52..f99ea02eaf38 100644 --- a/backport/backport-include/linux/netdevice.h +++ b/backport/backport-include/linux/netdevice.h @@ -475,4 +475,12 @@ struct net *dev_net(const struct net_device *dev) #define netdev_notifier_info_to_dev(ndev) ndev #endif +#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,34) && \ + LINUX_VERSION_CODE != KERNEL_VERSION(2,6,32) +/* there is no equivalent function to update arp table */ +#define netdev_notify_peers(dev) +#elif LINUX_VERSION_CODE < KERNEL_VERSION(3,7,0) +#define netdev_notify_peers(dev) netif_notify_peers(dev) +#endif + #endif /* __BACKPORT_NETDEVICE_H */ -- 2.30.2