summaryrefslogtreecommitdiffhomepage
path: root/src/odhcpd.h
diff options
context:
space:
mode:
authorHans Dedecker <dedeckeh@gmail.com>2017-05-15 17:40:37 +0200
committerHans Dedecker <dedeckeh@gmail.com>2017-05-15 17:42:29 +0200
commitf8d40a5b25b47f145f20ca83d5581428cb6a4e2c (patch)
tree136fa9471e3e7632ef55af04f82ef581248838de /src/odhcpd.h
parentf8f4b8769fbbd4fd52d2854c912b5d298ff8f8fb (diff)
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>
Diffstat (limited to 'src/odhcpd.h')
-rw-r--r--src/odhcpd.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/odhcpd.h b/src/odhcpd.h
index bb4702e..ecb7d9a 100644
--- a/src/odhcpd.h
+++ b/src/odhcpd.h
@@ -165,7 +165,7 @@ struct interface {
uint32_t ra_reachabletime;
uint32_t ra_retranstime;
uint32_t ra_hoplimit;
- uint32_t ra_mtu;
+ int ra_mtu;
// DHCPv4
struct in_addr dhcpv4_start;