From: Stephen Hemminger Date: Mon, 1 Dec 2008 22:19:38 +0000 (-0800) Subject: [zebra] MTU is unsigned X-Git-Tag: frr-2.0-rc1~2318 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=4308abba5cab18c1d30b962567b06b02a1a15361;p=matthieu%2Ffrr.git [zebra] MTU is unsigned The MTU data in the netlink message is always unsigned 32 bits. Don't use integer. --- diff --git a/zebra/rt_netlink.c b/zebra/rt_netlink.c index 0525449877..03df28c1a4 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. */