From 18f9c42c868a8995d8500ac40f91eefbc36b70e5 Mon Sep 17 00:00:00 2001 From: Vignesh Saravanaperumal Date: Thu, 8 Jul 2021 07:31:18 -0700 Subject: [PATCH] ANDROID: GKI: add vendor padding variable in struct nf_conn Some vendors want to add things to 'struct nf_conn', so give them a u64 where they can then have a pointer off to their private data and they can do whatever they want to do without breaking or changing any abi for anyone else. Note, usually an android trace hook is also needed to use this properly, so be aware that this will be required as well. Bug: 171013716 Signed-off-by: Vignesh Saravanaperumal Change-Id: I245c162ee3fb083e3f39cf7bec3bd78cb624e005 --- include/net/netfilter/nf_conntrack.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/net/netfilter/nf_conntrack.h b/include/net/netfilter/nf_conntrack.h index 6a2019aaa464..f2f77f023cc8 100644 --- a/include/net/netfilter/nf_conntrack.h +++ b/include/net/netfilter/nf_conntrack.h @@ -15,6 +15,7 @@ #include #include +#include #include #include @@ -123,6 +124,8 @@ struct nf_conn { /* Storage reserved for other modules, must be the last member */ union nf_conntrack_proto proto; + + ANDROID_OEM_DATA(1); }; static inline struct nf_conn *