Commit 94baa8be authored by Hideaki Yoshifuji's avatar Hideaki Yoshifuji

[ATM] Convert clip neigh table to C99 initializers

This converts nlip_tbl to C99 initializers.
(and fixes wrong value for proxy_len and locktime.)
parent 160a47e9
......@@ -327,40 +327,34 @@ static u32 clip_hash(const void *pkey, const struct net_device *dev)
return hash_val;
}
static struct neigh_table clip_tbl = {
NULL, /* next */
AF_INET, /* family */
sizeof(struct neighbour)+sizeof(struct atmarp_entry), /* entry_size */
4, /* key_len */
clip_hash,
clip_constructor, /* constructor */
NULL, /* pconstructor */
NULL, /* pdestructor */
NULL, /* proxy_redo */
"clip_arp_cache",
{ /* neigh_parms */
NULL, /* next */
NULL, /* neigh_setup */
&clip_tbl, /* tbl */
0, /* entries */
NULL, /* priv */
NULL, /* sysctl_table */
30*HZ, /* base_reachable_time */
1*HZ, /* retrans_time */
60*HZ, /* gc_staletime */
30*HZ, /* reachable_time */
5*HZ, /* delay_probe_time */
3, /* queue_len */
3, /* ucast_probes */
0, /* app_probes */
3, /* mcast_probes */
1*HZ, /* anycast_delay */
(8*HZ)/10, /* proxy_delay */
1*HZ, /* proxy_qlen */
64 /* locktime */
.family = AF_INET,
.entry_size = sizeof(struct neighbour)+sizeof(struct atmarp_entry),
.key_len = 4,
.hash = clip_hash,
.constructor = clip_constructor,
.id = "clip_arp_cache",
/* parameters are copied from ARP ... */
.parms = {
.tbl = &clip_tbl,
.base_reachable_time = 30 * HZ,
.retrans_time = 1 * HZ,
.gc_staletime = 60 * HZ,
.reachable_time = 30 * HZ,
.delay_probe_time = 5 * HZ,
.queue_len = 3,
.ucast_probes = 3,
.mcast_probes = 3,
.anycast_delay = 1 * HZ,
.proxy_delay = (8 * HZ) / 10,
.proxy_qlen = 64,
.locktime = 1 * HZ,
},
30*HZ,128,512,1024 /* copied from ARP ... */
.gc_interval = 30 * HZ,
.gc_thresh1 = 128,
.gc_thresh2 = 512,
.gc_thresh3 = 1024,
};
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment