Displaying 1 result from an estimated 1 matches for "neigh_var_gc_interval".
2023 Aug 08
0
[Bridge] [PATCH v2 11/14] networking: Update to register_net_sysctl_sz
...uct neigh_parms *p,
> > t->neigh_vars[i].extra2 = p;
> > }
> > + neigh_vars_size = ARRAY_SIZE(t->neigh_vars);
> > if (dev) {
> > dev_name_source = dev->name;
> > /* Terminate the table early */
> > memset(&t->neigh_vars[NEIGH_VAR_GC_INTERVAL], 0,
> > sizeof(t->neigh_vars[NEIGH_VAR_GC_INTERVAL]));
> > + neigh_vars_size = NEIGH_VAR_BASE_REACHABLE_TIME_MS;
>
> %NEIGH_VAR_BASE_REACHABLE_TIME_MS is last usable index here, and since those
> are 0 based, size is one more, %NEIGH_VAR_GC_INTERVAL.
> (spel...