Add filtering of IGMP packets 72/129472/10
authorPiotr Sawicki <p.sawicki2@partner.samsung.com>
Tue, 16 May 2017 09:49:20 +0000 (11:49 +0200)
committerPiotr Sawicki <p.sawicki2@partner.samsung.com>
Wed, 31 May 2017 16:20:44 +0000 (18:20 +0200)
commit32f7fdc1a75bff5f2709b306e7fd537f59f2582e
tree4c0d807b2c5bf930dfc4bec481947d53aaa89ce8
parent7cbc2580f15008cf1b4c4be8cc7a7f9215f9f419
Add filtering of IGMP packets

When a user application registers itself in a multicast group
(IP_ADD_MEMBERSHIP), the underlying kernel mechanism sends appropriate
IGMP packets out. These packets don't contain any information about
credentials, as they are not associated with any socket. This additional
netfilter rule causes this kind of packets to be accepted before they reach
the Nether service. Prior to this change, IGMP packets were accepted by
Nether's default back-end, so this change is only for optimization purposes.
It is worth to mention that an application is not able to send IGMP packets
on its own, because the CAP_NET_RAW capability is required to do that.

Change-Id: Id2b6756f0e5737bed606742d87c5d09f04b6866a
conf/nether.rules