On 04/08/15 22:38, Sven Eckelmann wrote: > The maximum of hard_header_len and needed_headroom of all slave interfaces > of a batman-adv device must be used to define the batman-adv device > headroom/header_len. This is required to avoid too small headroom problems > when these slave devices try to send the encapsulated packet. > > The batman-adv therefore uses: > > needed_headroom = max(0, dev[0].needed_headroom, ..., > dev[n].needed_headroom) > hard_header_len = max(ETH_HLEN, dev[0].hard_header_len, ..., > dev[n].hard_header_len) + ETH_HLEN + > max(sizeof(batadv_*cast_packet)) > > Signed-off-by: Sven Eckelmann Acked-by: Antonio Quartulli -- Antonio Quartulli