X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=blobdiff_plain;f=include%2Flinux%2Fskbuff.h;fp=include%2Flinux%2Fskbuff.h;h=77c6dc88e95dde78e32dd5e4c9909f2a088b75ed;hb=446bf64b613c4433dac4b15f4eaf326beaad3c8e;hp=7eb28b72d9ba6fe805f8a2228ded0e777726864b;hpb=20e79a0a2cfd15b6cfb18119f2e108396be56716;p=linux.git diff --git a/include/linux/skbuff.h b/include/linux/skbuff.h index 7eb28b72d9ba..77c6dc88e95d 100644 --- a/include/linux/skbuff.h +++ b/include/linux/skbuff.h @@ -1362,6 +1362,14 @@ static inline void skb_copy_hash(struct sk_buff *to, const struct sk_buff *from) to->l4_hash = from->l4_hash; }; +static inline void skb_copy_decrypted(struct sk_buff *to, + const struct sk_buff *from) +{ +#ifdef CONFIG_TLS_DEVICE + to->decrypted = from->decrypted; +#endif +} + #ifdef NET_SKBUFF_DATA_USES_OFFSET static inline unsigned char *skb_end_pointer(const struct sk_buff *skb) {