|
@@ -2556,9 +2556,11 @@ EXPORT_SYMBOL(neigh_app_ns);
|
|
|
|
|
|
#ifdef CONFIG_SYSCTL
|
|
|
|
|
|
+#define NEIGH_VARS_MAX 19
|
|
|
+
|
|
|
static struct neigh_sysctl_table {
|
|
|
struct ctl_table_header *sysctl_header;
|
|
|
- struct ctl_table neigh_vars[__NET_NEIGH_MAX];
|
|
|
+ struct ctl_table neigh_vars[NEIGH_VARS_MAX];
|
|
|
char *dev_name;
|
|
|
} neigh_sysctl_template __read_mostly = {
|
|
|
.neigh_vars = {
|
|
@@ -2675,8 +2677,7 @@ static struct neigh_sysctl_table {
|
|
|
};
|
|
|
|
|
|
int neigh_sysctl_register(struct net_device *dev, struct neigh_parms *p,
|
|
|
- int p_id, int pdev_id, char *p_name,
|
|
|
- proc_handler *handler)
|
|
|
+ char *p_name, proc_handler *handler)
|
|
|
{
|
|
|
struct neigh_sysctl_table *t;
|
|
|
const char *dev_name_source = NULL;
|