X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=blobdiff_plain;f=include%2Fnet%2Ftcp.h;h=af3ec72d5d4163b57142309bf8df72365cf7018d;hb=0ea488ff8d23c93da383fcf424825c298b13b1fb;hp=800582b5dd54f46dc2a853f60994e26562ae1b28;hpb=7ebc14d507b4b55105da8d1a1eda323381529cc7;p=linux.git diff --git a/include/net/tcp.h b/include/net/tcp.h index 800582b5dd54..af3ec72d5d41 100644 --- a/include/net/tcp.h +++ b/include/net/tcp.h @@ -828,6 +828,10 @@ struct tcp_skb_cb { #define TCP_SKB_CB(__skb) ((struct tcp_skb_cb *)&((__skb)->cb[0])) +static inline void bpf_compute_data_end_sk_skb(struct sk_buff *skb) +{ + TCP_SKB_CB(skb)->bpf.data_end = skb->data + skb_headlen(skb); +} #if IS_ENABLED(CONFIG_IPV6) /* This is the variant of inet6_iif() that must be used by TCP,