diff options
author | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2008-12-01 14:19:38 -0800 |
---|---|---|
committer | Paul Jakma <paul@quagga.net> | 2009-06-18 20:18:25 +0100 |
commit | 4308abba5cab18c1d30b962567b06b02a1a15361 (patch) | |
tree | 000095719fdc1a66599af3160f9af4e97c2a935f /zebra/rt_netlink.c | |
parent | 6c684653f08fadf738ca52a3fbe512e3d1698ceb (diff) | |
download | quagga-4308abba5cab18c1d30b962567b06b02a1a15361.tar.bz2 quagga-4308abba5cab18c1d30b962567b06b02a1a15361.tar.xz |
[zebra] MTU is unsigned
The MTU data in the netlink message is always unsigned 32 bits.
Don't use integer.
Diffstat (limited to 'zebra/rt_netlink.c')
-rw-r--r-- | zebra/rt_netlink.c | 2 |
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. */ |