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: Greg Kroah-Hartman <gregkh@google.com>
Change-Id: I303d237116f2f1ef6035af98f00436278ec1c23b
This commit is contained in:
Greg Kroah-Hartman
2020-10-29 12:44:32 +01:00
parent 20dd49792a
commit 0bc7257c7f

View File

@@ -15,6 +15,7 @@
#include <linux/bitops.h>
#include <linux/compiler.h>
#include <linux/android_vendor.h>
#include <linux/netfilter/nf_conntrack_common.h>
#include <linux/netfilter/nf_conntrack_tcp.h>
@@ -105,6 +106,8 @@ struct nf_conn {
/* Storage reserved for other modules, must be the last member */
union nf_conntrack_proto proto;
ANDROID_VENDOR_DATA(1);
};
static inline struct nf_conn *