Jason A. Donenfeld 75ea1f4773 net: sit: implement header_ops->parse_protocol for AF_PACKET
Sit uses skb->protocol to determine packet type, and bails out if it's
not set. For AF_PACKET injection, we need to support its call chain of:

    packet_sendmsg -> packet_snd -> packet_parse_headers ->
      dev_parse_header_protocol -> parse_protocol

Without a valid parse_protocol, this returns zero, and sit rejects the
skb. So, this wires up the ip_tunnel handler for layer 3 packets for
that case.

Reported-by: Willem de Bruijn <willemdebruijn.kernel@gmail.com>
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2020-06-30 12:29:39 -07:00
..
2020-05-12 18:12:40 -07:00
2020-04-28 11:28:36 +02:00
2019-07-27 14:23:48 -07:00
2020-03-30 13:45:04 -07:00
2020-03-29 22:30:57 -07:00
2020-05-22 14:00:38 -07:00
2020-04-18 15:04:27 -07:00
2020-05-22 15:49:30 -07:00