]> git.baikalelectronics.ru Git - kernel.git/commit
[NETFILTER]: xt_sctp: simplify xt_sctp.h
authorJan Engelhardt <jengelh@computergmbh.de>
Mon, 14 Apr 2008 07:56:04 +0000 (09:56 +0200)
committerPatrick McHardy <kaber@trash.net>
Mon, 14 Apr 2008 07:56:04 +0000 (09:56 +0200)
commit0527fa350597b37e5b53871abb25990a5fa69102
tree39f222526e2559acfca999f0cd40f10fe3fd136a
parent77f21c920d4bed3624503f56adc9720df8af13b3
[NETFILTER]: xt_sctp: simplify xt_sctp.h

The use of xt_sctp.h flagged up -Wshadow warnings in userspace, which
prompted me to look at it and clean it up. Basic operations have been
directly replaced by library calls (memcpy, memset is both available
in the kernel and userspace, and usually faster than a self-made
loop). The is_set and is_clear functions now use a processing time
shortcut, too.

Signed-off-by: Jan Engelhardt <jengelh@computergmbh.de>
Signed-off-by: Patrick McHardy <kaber@trash.net>
include/linux/netfilter/xt_sctp.h