diff options
author | Willem de Bruijn <willemb@google.com> | 2018-07-11 12:00:45 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-07-12 16:55:59 -0700 |
commit | 993675a3100b16a4c80dfd70cbcde8ea7127b31d (patch) | |
tree | feef4c1e7ca426c40bdbc1da1f745ee938b13eb3 /tools | |
parent | bab2c80e5a6c855657482eac9e97f5f3eedb509a (diff) |
packet: reset network header if packet shorter than ll reserved space
If variable length link layer headers result in a packet shorter
than dev->hard_header_len, reset the network header offset. Else
skb->mac_len may exceed skb->len after skb_mac_reset_len.
packet_sendmsg_spkt already has similar logic.
Fixes: b84bbaf7a6c8 ("packet: in packet_snd start writing at link layer allocation")
Signed-off-by: Willem de Bruijn <willemb@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools')
0 files changed, 0 insertions, 0 deletions