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 Change-Id: I245c162ee3fb083e3f39cf7bec3bd78cb624e005 Signed-off-by: Aditya Agrawal <aditya.a1@samsung.com> (cherry picked from commit 56285b8656590c47079b1e8cfcbbe59a3b2f57a3)
This commit is contained in:
committed by
Carlos Llamas
parent
ef3d16e0e0
commit
bad3ca6c52
@@ -16,6 +16,7 @@
|
||||
#include <linux/bitops.h>
|
||||
#include <linux/compiler.h>
|
||||
#include <linux/android_kabi.h>
|
||||
#include <linux/android_vendor.h>
|
||||
|
||||
#include <linux/netfilter/nf_conntrack_common.h>
|
||||
#include <linux/netfilter/nf_conntrack_tcp.h>
|
||||
@@ -127,6 +128,7 @@ struct nf_conn {
|
||||
|
||||
ANDROID_KABI_RESERVE(1);
|
||||
ANDROID_KABI_RESERVE(2);
|
||||
ANDROID_OEM_DATA(1);
|
||||
};
|
||||
|
||||
static inline struct nf_conn *
|
||||
|
||||
Reference in New Issue
Block a user