summaryrefslogtreecommitdiff
path: root/netsniff-ng
diff options
context:
space:
mode:
authorVadim Kochan <vadim4j@gmail.com>2015-08-01 11:04:06 +0300
committerTobias Klauser <tklauser@distanz.ch>2015-08-03 09:54:34 +0200
commita0aa230246ae57a03c44ba0c9d2be8e64507f97e (patch)
treeb9342da7de779d91f4db7b2cd3afae288abe20ba /netsniff-ng
parentd19a87a0b2d6c8a282a04ef80bee5a3b9f4547a1 (diff)
flowtop: Move filter creating to separate function
Move creating nfct filter to separate function to make collector() less messy. Signed-off-by: Vadim Kochan <vadim4j@gmail.com> Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Diffstat (limited to 'netsniff-ng')
0 files changed, 0 insertions, 0 deletions
n 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/dt-bindings/reset/qcom,gcc-mdm9615.h')