|
|
@@ -39,6 +39,7 @@
|
|
|
#include <linux/string.h>
|
|
|
#include <linux/log2.h>
|
|
|
#include <linux/inetdevice.h>
|
|
|
+#include <net/addrconf.h>
|
|
|
|
|
|
#define DEBUG
|
|
|
#define NEIGH_DEBUG 1
|
|
|
@@ -2819,8 +2820,12 @@ static int proc_unres_qlen(struct ctl_table *ctl, int write,
|
|
|
static struct neigh_parms *neigh_get_dev_parms_rcu(struct net_device *dev,
|
|
|
int family)
|
|
|
{
|
|
|
- if (family == AF_INET)
|
|
|
+ switch (family) {
|
|
|
+ case AF_INET:
|
|
|
return __in_dev_arp_parms_get_rcu(dev);
|
|
|
+ case AF_INET6:
|
|
|
+ return __in6_dev_nd_parms_get_rcu(dev);
|
|
|
+ }
|
|
|
return NULL;
|
|
|
}
|
|
|
|