#compdef flowtop # # flowtop.zsh -- zsh completion function for flowtop # # Copyright (C) 2013 Hideo Hattori # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License version 2 as # published by the Free Software Foundation. typeset -A opt_args _arguments -s -S \ "(-4 --ipv4)"{-4,--ipv4}"[Show only IPv4 flows (default)]" \ "(-6 --ipv6)"{-6,--ipv6}"[Show only IPv6 flows (default)]" \ "(-T --tcp)"{-T,--tcp}"[Show only TCP flows (default)]" \ "(-U --udp)"{-U,--udp}"[Show only UDP flows]" \ "(-D --dccp)"{-D,--dccp}"[Show only DCCP flows]" \ "(-I --icmp)"{-I,--icmp}"[Show only ICMP/ICMPv6 flows]" \ "(-S --sctp)"{-S,--sctp}"[Show only SCTP flows]" \ "(-s --show-src)"{-s,--show-src}"[Also show source, not only dest]" \ "(-u --update)"{-u,--update}"[Update GeoIP databases]" \ {-v,--version}"[Print version]:" \ {-h,--help}"[Print this help]:" \ "*::args:_gnu_generic" 9cef4d2d9e0866214c2'/> net-next plumbingsTobias Klauser
summaryrefslogtreecommitdiff
path: root/arch/arm/plat-omap
diff options
context:
space:
mode:
authorWillem de Bruijn <willemb@google.com>2017-01-02 17:19:40 -0500
committerPablo Neira Ayuso <pablo@netfilter.org>2017-01-09 17:24:53 +0100
commitf32815d21d4d8287336fb9cef4d2d9e0866214c2 (patch)
treeeedb12ee6e68b344d1ffb5df9615981394e8d07b /arch/arm/plat-omap
parent4cc4b72c136a45aeccd86f66b0859b148b47d881 (diff)
xtables: add xt_match, xt_target and data copy_to_user functions
xt_entry_target, xt_entry_match and their 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 'arch/arm/plat-omap')