mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-23 07:12:09 +00:00
ipv6 addrconf: Allow infinite prefix lifetime.
We need to handle infinite prefix lifetime specially. With help from original reporter "Bonitch, Joseph" <Joseph.Bonitch@xerox.com>. Signed-off-by: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
69cdf8f92a
commit
6f704992d3
2 changed files with 52 additions and 25 deletions
|
@ -1106,7 +1106,9 @@ int ip6_route_add(struct fib6_config *cfg)
|
|||
}
|
||||
|
||||
rt->u.dst.obsolete = -1;
|
||||
rt->rt6i_expires = jiffies + clock_t_to_jiffies(cfg->fc_expires);
|
||||
rt->rt6i_expires = (cfg->fc_flags & RTF_EXPIRES) ?
|
||||
jiffies + clock_t_to_jiffies(cfg->fc_expires) :
|
||||
0;
|
||||
|
||||
if (cfg->fc_protocol == RTPROT_UNSPEC)
|
||||
cfg->fc_protocol = RTPROT_BOOT;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue