]> git.baikalelectronics.ru Git - kernel.git/commit
bridge: multicast: enable snooping on general queries only
authorLinus Lüssing <linus.luessing@web.de>
Mon, 10 Mar 2014 21:25:25 +0000 (22:25 +0100)
committerDavid S. Miller <davem@davemloft.net>
Wed, 12 Mar 2014 03:22:10 +0000 (23:22 -0400)
commitd9ddc88d160a2abbdd49fee4dde5eb41d8e74e2d
tree37e01659d8e8974706ecc4042fff98bba274a59a
parentbf055b87713d03d2bba60ad5b9c4404a10923b17
bridge: multicast: enable snooping on general queries only

Without this check someone could easily create a denial of service
by injecting multicast-specific queries to enable the bridge
snooping part if no real querier issuing periodic general queries
is present on the link which would result in the bridge wrongly
shutting down ports for multicast traffic as the bridge did not learn
about these listeners.

With this patch the snooping code is enabled upon receiving valid,
general queries only.

Signed-off-by: Linus Lüssing <linus.luessing@web.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/bridge/br_multicast.c