PetteriAimonen opened a new pull request, #10813:
URL: https://github.com/apache/nuttx/pull/10813
## Summary
Allows setting the advertised route lifetime, and also to set it to 0 for
advertising only the prefix.
From RFC4861:
> A router might want to send Router Advertisements without advertising
itself as a default router. For instance, a router might advertise
prefixes for stateless address autoconfiguration while not wishing to
forward packets. Such a router sets the Router Lifetime field in
outgoing advertisements to zero.
## Impact
Default setting is the same 1800 as previously hardcoded value.
## Testing
Tested on custom STM32F4 target communicating with Linux system.
With default settings NuttX appears as a default router in `ip -6 route`
output.
By setting `CONFIG_NET_ICMPv6_ROUTER_LIFETIME=0` only the advertised prefix
appears.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]