router: fix interface mtu read error
authorHans Dedecker <dedeckeh@gmail.com>
Mon, 15 May 2017 15:40:37 +0000 (17:40 +0200)
committerHans Dedecker <dedeckeh@gmail.com>
Mon, 15 May 2017 15:42:29 +0000 (17:42 +0200)
commitf8d40a5b25b47f145f20ca83d5581428cb6a4e2c
tree136fa9471e3e7632ef55af04f82ef581248838de
parentf8f4b8769fbbd4fd52d2854c912b5d298ff8f8fb
router: fix interface mtu read error

Use integer type for mtu variable as odhcpd_get_interface_config returns
-1 when it fails to read the interface mtu. This allows to set the mtu
to a meaningfull value of 1280 in case of interface mtu read failure.

Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
src/odhcpd.h
src/router.c