summaryrefslogtreecommitdiff
path: root/trafgen_stddef.h
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@distanz.ch>2016-12-10 16:56:47 +0100
committerTobias Klauser <tklauser@distanz.ch>2016-12-10 16:56:47 +0100
commitc16b914a728f2786aaa4e1c44c092c3faaf1df48 (patch)
tree5b33edb77b0db638326c8814eee15366abfb3339 /trafgen_stddef.h
parent19fd2e57dc963f0e26e625645ee6a922cf3aed2f (diff)
bpfc: make verbose parameter boolean
Verbose mode is a boolean option, so make the variable and parameters carrying it of type bool. Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Diffstat (limited to 'trafgen_stddef.h')
0 files changed, 0 insertions, 0 deletions
eir private data may contain kernel data. Introduce helper functions xt_match_to_user, xt_target_to_user and xt_data_to_user that copy only the expected fields. These replace existing logic that calls copy_to_user on entire structs, then overwrites select fields. Private data is defined in xt_match and xt_target. All matches and targets that maintain kernel data store this at the tail of their private structure. Extend xt_match and xt_target with .usersize to limit how many bytes of data are copied. The remainder is cleared. If compatsize is specified, usersize can only safely be used if all fields up to usersize use platform-independent types. Otherwise, the compat_to_user callback must be defined. This patch does not yet enable the support logic. Signed-off-by: Willem de Bruijn <willemb@google.com> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'include/crypto/ecdh.h')