netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net-next 1/3] ipip: fix sparse warnings in ipip_netlink_parms()
@ 2012-11-15  8:53 Nicolas Dichtel
  2012-11-15  8:53 ` [PATCH net-next 2/3] sit: fix sparse warnings Nicolas Dichtel
                   ` (3 more replies)
  0 siblings, 4 replies; 12+ messages in thread
From: Nicolas Dichtel @ 2012-11-15  8:53 UTC (permalink / raw)
  To: netdev; +Cc: davem, Nicolas Dichtel

Signed-off-by: Nicolas Dichtel <nicolas.dichtel@6wind.com>
---
 net/ipv4/ipip.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/net/ipv4/ipip.c b/net/ipv4/ipip.c
index 64686e1..c26c171 100644
--- a/net/ipv4/ipip.c
+++ b/net/ipv4/ipip.c
@@ -864,10 +864,10 @@ static void ipip_netlink_parms(struct nlattr *data[],
 		parms->link = nla_get_u32(data[IFLA_IPTUN_LINK]);
 
 	if (data[IFLA_IPTUN_LOCAL])
-		parms->iph.saddr = nla_get_u32(data[IFLA_IPTUN_LOCAL]);
+		parms->iph.saddr = nla_get_be32(data[IFLA_IPTUN_LOCAL]);
 
 	if (data[IFLA_IPTUN_REMOTE])
-		parms->iph.daddr = nla_get_u32(data[IFLA_IPTUN_REMOTE]);
+		parms->iph.daddr = nla_get_be32(data[IFLA_IPTUN_REMOTE]);
 
 	if (data[IFLA_IPTUN_TTL]) {
 		parms->iph.ttl = nla_get_u8(data[IFLA_IPTUN_TTL]);
-- 
1.7.12

^ permalink raw reply related	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2012-11-15 18:57 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-11-15  8:53 [PATCH net-next 1/3] ipip: fix sparse warnings in ipip_netlink_parms() Nicolas Dichtel
2012-11-15  8:53 ` [PATCH net-next 2/3] sit: fix sparse warnings Nicolas Dichtel
2012-11-15  8:53 ` [PATCH net-next 3/3] ip6tnl: fix sparse warnings in ip6_tnl_netlink_parms() Nicolas Dichtel
2012-11-15  9:41 ` [PATCH net-next 1/3] ipip: fix sparse warnings in ipip_netlink_parms() Nicolas Dichtel
2012-11-15 13:20   ` Eric Dumazet
2012-11-15 14:06     ` [PATCH net-next v2 " Nicolas Dichtel
2012-11-15 14:06       ` [PATCH net-next v2 2/3] sit: fix sparse warnings Nicolas Dichtel
2012-11-15 18:56         ` David Miller
2012-11-15 14:06       ` [PATCH net-next v2 3/3] ip6tnl: fix sparse warnings in ip6_tnl_netlink_parms() Nicolas Dichtel
2012-11-15 18:57         ` David Miller
2012-11-15 18:56       ` [PATCH net-next v2 1/3] ipip: fix sparse warnings in ipip_netlink_parms() David Miller
2012-11-15 13:15 ` [PATCH net-next " Eric Dumazet

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).