ipv6 route: Fix route lifetime in netlink message.
authorYOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
Mon, 12 May 2008 17:52:55 +0000 (02:52 +0900)
committerYOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
Thu, 12 Jun 2008 00:19:08 +0000 (09:19 +0900)
commit36e3deae8ba84865fd9eb3f2f21bbc00d49b7544
treed78448c8c5b9570c2c1066e03a4dc31a73b2085b
parent20c61fbd8deb2ada0ac3acecf6156a986dbfff2d
ipv6 route: Fix route lifetime in netlink message.

1) We may have route lifetime larger than INT_MAX.
In that case we had wired value in lifetime.
Use INT_MAX if lifetime does not fit in s32.

2) Lifetime is valid iif RTF_EXPIRES is set.

Signed-off-by: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
net/ipv6/route.c