]> git.proxmox.com Git - mirror_frr.git/commitdiff
[zebra] MTU is unsigned
authorStephen Hemminger <stephen.hemminger@vyatta.com>
Mon, 1 Dec 2008 22:19:38 +0000 (14:19 -0800)
committerPaul Jakma <paul@quagga.net>
Thu, 18 Jun 2009 19:18:25 +0000 (20:18 +0100)
The MTU data in the netlink message is always unsigned 32 bits.
Don't use integer.

zebra/rt_netlink.c

index 05254498776974a5cd148a1934a3c2c62e7ad570..03df28c1a4d90f7615b956def0e11829815b6002 100644 (file)
@@ -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. */