diff options
author | Li RongQing <roy.qing.li@gmail.com> | 2012-07-09 19:56:12 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-07-11 04:31:24 -0400 |
commit | 4715213d9cf40285492fff4092bb1fa8e982f632 (patch) | |
tree | b5cb03e0833061931d23d24afc2f9961132963e1 /net/bridge | |
parent | 0d653ed89144828169282a654ffab26811210fd1 (diff) |
bridge: fix endian
mld->mld_maxdelay is net endian, so we should use ntohs, not htons
CC: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
Signed-off-by: Li RongQing <roy.qing.li@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/bridge')
-rw-r--r-- | net/bridge/br_multicast.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/bridge/br_multicast.c b/net/bridge/br_multicast.c index b66581208cb2..2d9a0663b848 100644 --- a/net/bridge/br_multicast.c +++ b/net/bridge/br_multicast.c | |||
@@ -1160,7 +1160,7 @@ static int br_ip6_multicast_query(struct net_bridge *br, | |||
1160 | goto out; | 1160 | goto out; |
1161 | } | 1161 | } |
1162 | mld = (struct mld_msg *) icmp6_hdr(skb); | 1162 | mld = (struct mld_msg *) icmp6_hdr(skb); |
1163 | max_delay = msecs_to_jiffies(htons(mld->mld_maxdelay)); | 1163 | max_delay = msecs_to_jiffies(ntohs(mld->mld_maxdelay)); |
1164 | if (max_delay) | 1164 | if (max_delay) |
1165 | group = &mld->mld_mca; | 1165 | group = &mld->mld_mca; |
1166 | } else if (skb->len >= sizeof(*mld2q)) { | 1166 | } else if (skb->len >= sizeof(*mld2q)) { |