]> git.baikalelectronics.ru Git - kernel.git/commit
net: warn if transport header was not set
authorEric Dumazet <edumazet@google.com>
Tue, 10 May 2022 03:57:39 +0000 (20:57 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 11 May 2022 11:44:16 +0000 (12:44 +0100)
commitf588aa3f37189adf7e0e161b96f9a0d83323ced8
treeb1739cc30f5456d88562cecc2d1e6665bc6e623e
parent99ecea56f80eae1b2bbd14fdc79cddb6fca8456f
net: warn if transport header was not set

Make sure skb_transport_header() and skb_transport_offset() uses
are not fooled if the transport header has not been set.

This change will likely expose existing bugs in linux networking stacks.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/skbuff.h