On Freitag, 31. August 2018 12:30:00 CEST Sven Eckelmann wrote:
skb_put. For example 44 to get to the minimum ethernet frame size:
hard_iface->bat_v.elp_skb = dev_alloc_skb(size + 44); ... elp_buff = skb_put_zero(hard_iface->bat_v.elp_skb, BATADV_ELP_HLEN + 44);
It should have been 30 not 44. The ethernet packet also has 14 bytes of ethernet header.
14 + 16 + 30 == 60 (aka the minimum)
Sorry about that.
Kind regards, Sven