projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e5686ad
)
igmp: Avoid zero delay when receiving odd mixture of IGMP queries
author
Ben Hutchings
<
[email protected]
>
Mon, 9 Jan 2012 22:06:46 +0000
(14:06 -0800)
committer
David S. Miller
<
[email protected]
>
Mon, 9 Jan 2012 22:06:46 +0000
(14:06 -0800)
Commit
5b7c84066733c5dfb0e4016d939757b38de189e4
('ipv4: correct IGMP
behavior on v3 query during v2-compatibility mode') added yet another
case for query parsing, which can result in max_delay = 0. Substitute
a value of 1, as in the usual v3 case.
Reported-by: Simon McVittie <
[email protected]
>
References: http://bugs.debian.org/654876
Signed-off-by: Ben Hutchings <
[email protected]
>
Signed-off-by: David S. Miller <
[email protected]
>
net/ipv4/igmp.c
patch
|
blob
|
history
diff --git
a/net/ipv4/igmp.c
b/net/ipv4/igmp.c
index fa057d105befea6e775c251f900b763929d4f572..5104bc0bbdbe73d43f0b92e659e7fb2dda24928f 100644
(file)
--- a/
net/ipv4/igmp.c
+++ b/
net/ipv4/igmp.c
@@
-880,6
+880,8
@@
static void igmp_heard_query(struct in_device *in_dev, struct sk_buff *skb,
* to be intended in a v3 query.
*/
max_delay = IGMPV3_MRC(ih3->code)*(HZ/IGMP_TIMER_SCALE);
+ if (!max_delay)
+ max_delay = 1; /* can't mod w/ 0 */
} else { /* v3 */
if (!pskb_may_pull(skb, sizeof(struct igmpv3_query)))
return;