Skip to content
  • Eric Leblond's avatar
    af_packet: don't emit packet on orig fanout group · c0de08d0
    Eric Leblond authored
    
    
    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: default avatarAleksandr Kotov <a1k@mail.ru>
    Signed-off-by: default avatarEric Leblond <eric@regit.org>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    c0de08d0