projects
/
GitHub
/
mt8127
/
android_kernel_alcatel_ttab.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fcbdf09
)
bridge: fix IPv6 queries for bridge multicast snooping
author
David Stevens
<dlstevens@us.ibm.com>
Tue, 14 Dec 2010 08:42:16 +0000
(08:42 +0000)
committer
David S. Miller
<davem@davemloft.net>
Thu, 16 Dec 2010 22:41:23 +0000
(14:41 -0800)
This patch fixes a missing ntohs() for bridge IPv6 multicast snooping.
Signed-off-by: David L Stevens <dlstevens@us.ibm.com>
Acked-by: Herbert Xu <herbert@gondor.apana.org.au>
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 eb5b256ffc8801ff7e187c64ee3dde5da268f570..f19e347f56f6f41543b33f174af38c997739294e 100644
(file)
--- a/
net/bridge/br_multicast.c
+++ b/
net/bridge/br_multicast.c
@@
-437,7
+437,7
@@
static struct sk_buff *br_ip6_multicast_alloc_query(struct net_bridge *br,
ip6h = ipv6_hdr(skb);
*(__force __be32 *)ip6h = htonl(0x60000000);
- ip6h->payload_len =
8 + sizeof(*mldq
);
+ ip6h->payload_len =
htons(8 + sizeof(*mldq)
);
ip6h->nexthdr = IPPROTO_HOPOPTS;
ip6h->hop_limit = 1;
ipv6_addr_set(&ip6h->saddr, 0, 0, 0, 0);