diff options
Diffstat (limited to 'src/router.c')
-rw-r--r-- | src/router.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/router.c b/src/router.c index 8a2f816..f08a7b0 100644 --- a/src/router.c +++ b/src/router.c @@ -259,11 +259,11 @@ static uint16_t calc_ra_lifetime(struct interface *iface, uint32_t maxival) static uint64_t send_router_advert(struct interface *iface, const struct in6_addr *from) { time_t now = odhcpd_time(); - uint32_t mtu = iface->ra_mtu; + int mtu = iface->ra_mtu; int hlim = iface->ra_hoplimit; if (mtu == 0) - mtu = odhcpd_get_interface_config(iface->ifname, "mtu"); + mtu = odhcpd_get_interface_config(iface->ifname, "mtu"); if (mtu < 1280) mtu = 1280; |