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) ...@@ -327,40 +327,34 @@ static u32 clip_hash(const void *pkey, const struct net_device *dev)
return hash_val; return hash_val;
} }
static struct neigh_table clip_tbl = { static struct neigh_table clip_tbl = {
NULL, /* next */ .family = AF_INET,
AF_INET, /* family */ .entry_size = sizeof(struct neighbour)+sizeof(struct atmarp_entry),
sizeof(struct neighbour)+sizeof(struct atmarp_entry), /* entry_size */ .key_len = 4,
4, /* key_len */ .hash = clip_hash,
clip_hash, .constructor = clip_constructor,
clip_constructor, /* constructor */ .id = "clip_arp_cache",
NULL, /* pconstructor */
NULL, /* pdestructor */ /* parameters are copied from ARP ... */
NULL, /* proxy_redo */ .parms = {
"clip_arp_cache", .tbl = &clip_tbl,
{ /* neigh_parms */ .base_reachable_time = 30 * HZ,
NULL, /* next */ .retrans_time = 1 * HZ,
NULL, /* neigh_setup */ .gc_staletime = 60 * HZ,
&clip_tbl, /* tbl */ .reachable_time = 30 * HZ,
0, /* entries */ .delay_probe_time = 5 * HZ,
NULL, /* priv */ .queue_len = 3,
NULL, /* sysctl_table */ .ucast_probes = 3,
30*HZ, /* base_reachable_time */ .mcast_probes = 3,
1*HZ, /* retrans_time */ .anycast_delay = 1 * HZ,
60*HZ, /* gc_staletime */ .proxy_delay = (8 * HZ) / 10,
30*HZ, /* reachable_time */ .proxy_qlen = 64,
5*HZ, /* delay_probe_time */ .locktime = 1 * HZ,
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 */
}, },
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