summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephen Hemminger <stephen.hemminger@vyatta.com>2008-12-01 14:19:38 -0800
committerPaul Jakma <paul@quagga.net>2009-06-18 20:18:25 +0100
commit4308abba5cab18c1d30b962567b06b02a1a15361 (patch)
tree000095719fdc1a66599af3160f9af4e97c2a935f
parent6c684653f08fadf738ca52a3fbe512e3d1698ceb (diff)
[zebra] MTU is unsigned
The MTU data in the netlink message is always unsigned 32 bits. Don't use integer.
-rw-r--r--zebra/rt_netlink.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/zebra/rt_netlink.c b/zebra/rt_netlink.c
index 05254498..03df28c1 100644
--- a/zebra/rt_netlink.c
+++ b/zebra/rt_netlink.c
@@ -469,7 +469,7 @@ netlink_interface (struct sockaddr_nl *snl, struct nlmsghdr *h)
ifp = if_get_by_name (name);
set_ifindex(ifp, ifi->ifi_index);
ifp->flags = ifi->ifi_flags & 0x0000fffff;
- ifp->mtu6 = ifp->mtu = *(int *) RTA_DATA (tb[IFLA_MTU]);
+ ifp->mtu6 = ifp->mtu = *(uint32_t *) RTA_DATA (tb[IFLA_MTU]);
ifp->metric = 1;
/* Hardware type and address. */