diff options
author | Willem de Bruijn <willemb@google.com> | 2017-01-02 17:19:46 -0500 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2017-01-09 17:24:55 +0100 |
commit | ec23189049651b16dc2ffab35a4371dc1f491aca (patch) | |
tree | abf3c783fb73b147f463fa686715a08fd2a969c1 /net/netfilter/xt_connlimit.c | |
parent | 4915f7bbc402071539ec0cb8c75aad878c982402 (diff) | |
download | op-kernel-dev-ec23189049651b16dc2ffab35a4371dc1f491aca.zip op-kernel-dev-ec23189049651b16dc2ffab35a4371dc1f491aca.tar.gz |
xtables: extend matches and targets with .usersize
In matches and targets that define a kernel-only tail to their
xt_match and xt_target data structs, add a field .usersize that
specifies up to where data is to be shared with userspace.
Performed a search for comment "Used internally by the kernel" to find
relevant matches and targets. Manually inspected the structs to derive
a valid offsetof.
Signed-off-by: Willem de Bruijn <willemb@google.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'net/netfilter/xt_connlimit.c')
-rw-r--r-- | net/netfilter/xt_connlimit.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/net/netfilter/xt_connlimit.c b/net/netfilter/xt_connlimit.c index 660b61d..b8fd4ab 100644 --- a/net/netfilter/xt_connlimit.c +++ b/net/netfilter/xt_connlimit.c @@ -431,6 +431,7 @@ static struct xt_match connlimit_mt_reg __read_mostly = { .checkentry = connlimit_mt_check, .match = connlimit_mt, .matchsize = sizeof(struct xt_connlimit_info), + .usersize = offsetof(struct xt_connlimit_info, data), .destroy = connlimit_mt_destroy, .me = THIS_MODULE, }; |