Re: [PATCH v3] packet: Allow packets with only a header (but no payload)

2015-11-29 Thread David Miller
From: Martin Blumenstingl Date: Sun, 22 Nov 2015 17:46:09 +0100 > Commit 9c7077622dd91 ("packet: make packet_snd fail on len smaller > than l2 header") added validation for the packet size in packet_snd. > This change enforces that every packet needs a header

[PATCH v3] packet: Allow packets with only a header (but no payload)

2015-11-22 Thread Martin Blumenstingl
Commit 9c7077622dd91 ("packet: make packet_snd fail on len smaller than l2 header") added validation for the packet size in packet_snd. This change enforces that every packet needs a header (with at least hard_header_len bytes) plus a payload with at least one byte. Before this change the payload