• E
    af_packet: don't emit packet on orig fanout group · c0de08d0
    Eric Leblond 提交于
    If a packet is emitted on one socket in one group of fanout sockets,
    it is transmitted again. It is thus read again on one of the sockets
    of the fanout group. This result in a loop for software which
    generate packets when receiving one.
    This retransmission is not the intended behavior: a fanout group
    must behave like a single socket. The packet should not be
    transmitted on a socket if it originates from a socket belonging
    to the same fanout group.
    
    This patch fixes the issue by changing the transmission check to
    take fanout group info account.
    Reported-by: NAleksandr Kotov <a1k@mail.ru>
    Signed-off-by: NEric Leblond <eric@regit.org>
    Signed-off-by: NDavid S. Miller <davem@davemloft.net>
    c0de08d0
af_packet.c 91.1 KB