commit | 504148fedb854299972d164b001357b888a9193e | [log] [tgz] |
---|---|---|
author | Eric Dumazet <edumazet@google.com> | Thu Jun 30 15:07:50 2022 +0000 |
committer | David S. Miller <davem@davemloft.net> | Sat Jul 02 16:22:25 2022 +0100 |
tree | 6039f99c8ba79b59026808ea7d9de215d1c59903 | |
parent | 04740c53cac4bf93b5233a0d774d7f39620378e1 [diff] |
net: add skb_[inner_]tcp_all_headers helpers Most drivers use "skb_transport_offset(skb) + tcp_hdrlen(skb)" to compute headers length for a TCP packet, but others use more convoluted (but equivalent) ways. Add skb_tcp_all_headers() and skb_inner_tcp_all_headers() helpers to harmonize this a bit. Signed-off-by: Eric Dumazet <edumazet@google.com> Signed-off-by: David S. Miller <davem@davemloft.net>