neigh: use tbl->family to distinguish ipv4 from ipv6
Signed-off-by: Jiri Pirko <jiri@resnulli.us> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
cb5b09c17f
commit
73af614aed
@@ -5028,7 +5028,7 @@ static void __addrconf_sysctl_unregister(struct ipv6_devconf *p)
|
||||
|
||||
static void addrconf_sysctl_register(struct inet6_dev *idev)
|
||||
{
|
||||
neigh_sysctl_register(idev->dev, idev->nd_parms, "ipv6",
|
||||
neigh_sysctl_register(idev->dev, idev->nd_parms,
|
||||
&ndisc_ifinfo_sysctl_change);
|
||||
__addrconf_sysctl_register(dev_net(idev->dev), idev->dev->name,
|
||||
idev, &idev->cnf);
|
||||
|
@@ -1730,7 +1730,7 @@ int __init ndisc_init(void)
|
||||
neigh_table_init(&nd_tbl);
|
||||
|
||||
#ifdef CONFIG_SYSCTL
|
||||
err = neigh_sysctl_register(NULL, &nd_tbl.parms, "ipv6",
|
||||
err = neigh_sysctl_register(NULL, &nd_tbl.parms,
|
||||
&ndisc_ifinfo_sysctl_change);
|
||||
if (err)
|
||||
goto out_unregister_pernet;
|
||||
|
Reference in New Issue
Block a user