• WANG Cong's avatar
    net: allow setting mac address of loopback device · 25f929fb
    WANG Cong authored
    We are trying to mirror the local traffic from lo to eth0,
    allowing setting mac address of lo to eth0 would make
    the ether addresses in these packets correct, so that
    we don't have to modify the ether header again.
    
    Since usually no one cares about its mac address (all-zero),
    it is safe to allow those who care to set its mac address.
    
    Cc: Hannes Frederic Sowa <hannes@stressinduktion.org>
    Cc: Neil Horman <nhorman@tuxdriver.com>
    Cc: Stephen Hemminger <stephen@networkplumber.org>
    Cc: Eric Dumazet <edumazet@google.com>
    Cc: David S. Miller <davem@davemloft.net>
    Signed-off-by: default avatarCong Wang <xiyou.wangcong@gmail.com>
    Acked-by: default avatarNeil Horman <nhorman@tuxdriver.com>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    25f929fb
loopback.c 5.71 KB