projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0d653ed
)
bridge: fix endian
author
Li RongQing
<roy.qing.li@gmail.com>
Mon, 9 Jul 2012 23:56:12 +0000
(23:56 +0000)
committer
David S. Miller
<davem@davemloft.net>
Wed, 11 Jul 2012 08:31:24 +0000
(
01:31
-0700)
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>
net/bridge/br_multicast.c
patch
|
blob
|
blame
|
history
diff --git
a/net/bridge/br_multicast.c
b/net/bridge/br_multicast.c
index b66581208cb2fc2b8972dcdeb1654550efdba0df..2d9a0663b848f10df87f6a6be1b516c1877b0136 100644
(file)
--- 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,
goto out;
}
mld = (struct mld_msg *) icmp6_hdr(skb);
- max_delay = msecs_to_jiffies(
hton
s(mld->mld_maxdelay));
+ max_delay = msecs_to_jiffies(
ntoh
s(mld->mld_maxdelay));
if (max_delay)
group = &mld->mld_mca;
} else if (skb->len >= sizeof(*mld2q)) {