• Michael Grzeschik's avatar
    ARCNET: fix hard_header_len limit · 980137a2
    Michael Grzeschik authored
    For arcnet the bare minimum header only contains the 4 bytes to
    specify source, dest and offset (1, 1 and 2 bytes respectively).
    The corresponding struct is struct arc_hardware.
    
    The struct archdr contains additionally a union of possible soft
    headers. When doing $insertusecasehere packets might well
    include short (or even no?) soft headers.
    
    For this reason only use arc_hardware instead of archdr to
    determine the hard_header_len for an arcnet device.
    Signed-off-by: default avatarMichael Grzeschik <m.grzeschik@pengutronix.de>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    980137a2
arcnet.c 28.2 KB