config: clamp ra_mtu to interface MTU, and default ra_mtu to interface MTU
authorPaul Donald <[email protected]>
Thu, 30 Oct 2025 00:52:20 +0000 (01:52 +0100)
committerÁlvaro Fernández Rojas <[email protected]>
Mon, 3 Nov 2025 07:17:07 +0000 (08:17 +0100)
commit1480c09ee0aaca2d00db74af6b5f468cb409e064
tree8f48be22ed438b4f5061dde10eaf86a5a54ad6ca
parentee4f0df6bd686bf58594fca394dfaf3ba153d92c
config: clamp ra_mtu to interface MTU, and default ra_mtu to interface MTU

Set ra_mtu max to that of its interface. We also default ra_mtu if the user
did not configure it.

Signed-off-by: Paul Donald <[email protected]>
Link: https://github.com/openwrt/odhcpd/pull/296
Signed-off-by: Álvaro Fernández Rojas <[email protected]>
src/config.c