summaryrefslogtreecommitdiffstats
path: root/firmware
diff options
context:
space:
mode:
authorFlorian Westphal <fw@strlen.de>2010-02-07 03:19:12 +0100
committerFlorian Westphal <fw@strlen.de>2010-02-16 17:27:19 +0100
commit90b89af7e15143c8ea22f5c8818f5a2eec9e75c1 (patch)
tree28e259c073054635c3cf5db638eb48c94274ced0 /firmware
parent81e675c227ec60a0bdcbb547dc530ebee23ff931 (diff)
downloadop-kernel-dev-90b89af7e15143c8ea22f5c8818f5a2eec9e75c1.zip
op-kernel-dev-90b89af7e15143c8ea22f5c8818f5a2eec9e75c1.tar.gz
netfilter: ebtables: try native set/getsockopt handlers, too
ebtables can be compiled to perform userspace-side padding of structures. In that case, all the structures are already in the 'native' format expected by the kernel. This tries to determine what format the userspace program is using. For most set/getsockopts, this can be done by checking the len argument for sizeof(compat_ebt_replace) and re-trying the native handler on error. In case of EBT_SO_GET_ENTRIES, the native handler is tried first, it will error out early when checking the *len argument (the compat version has to defer this check until after iterating over the kernel data set once, to adjust for all the structure size differences). As this would cause error printks, remove those as well, as recommended by Bart de Schuymer. Signed-off-by: Florian Westphal <fw@strlen.de>
Diffstat (limited to 'firmware')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud