From 4308abba5cab18c1d30b962567b06b02a1a15361 Mon Sep 17 00:00:00 2001 From: Stephen Hemminger Date: Mon, 1 Dec 2008 14:19:38 -0800 Subject: [zebra] MTU is unsigned The MTU data in the netlink message is always unsigned 32 bits. Don't use integer. --- zebra/rt_netlink.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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. */ -- cgit v1.2.1