]> git.ipfire.org Git - thirdparty/systemd.git/commit
network: ndisc - drop routes of lifetime 0 28496/head
authorSusant Sahani <ssahani@gmail.com>
Wed, 26 Jul 2023 09:44:13 +0000 (15:14 +0530)
committerSusant Sahani <ssahani@gmail.com>
Tue, 22 Aug 2023 15:58:11 +0000 (21:28 +0530)
commit4ccd48cb2693a3603f14a30b6286228597285d92
treed0c083502bfd9de2b634bb84e8863ef459ef84d3
parentf44eebd1bab9327c5dd3a281196bd07192134d3b
network: ndisc - drop routes of lifetime 0

A Lifetime of 0 indicates that the router is not a default router anymore
and associated default route should be discarded from host's routing table.

https://datatracker.ietf.org/doc/html/rfc4861
```
Router Lifetime
     16-bit unsigned integer.  The lifetime associated
     with the default router in units of seconds.  The
     field can contain values up to 65535 and receivers
     should handle any value, while the sending rules in
     Section 6 limit the lifetime to 9000 seconds.  A
     Lifetime of 0 indicates that the router is not a
     default router and SHOULD NOT appear on the default
     router list.  The Router Lifetime applies only to
     the router's usefulness as a default router; it
     does not apply to information contained in other
     message fields or options.  Options that need time
     limits for their information include their own
     lifetime fields.

```
src/network/networkd-ndisc.c