]> git.baikalelectronics.ru Git - kernel.git/commit
netfilter: xtables: use memcmp in unconditional check
authorJan Engelhardt <jengelh@medozas.de>
Thu, 9 Jul 2009 21:00:19 +0000 (23:00 +0200)
committerJan Engelhardt <jengelh@medozas.de>
Mon, 10 Aug 2009 11:35:27 +0000 (13:35 +0200)
commitc886ac50d30c97993eb314ba7173391141cac014
tree12bcbe4b7add3cc9beff300165ac4d962015ad15
parentcbcc2533021427e7e3cb15060749d5a304432155
netfilter: xtables: use memcmp in unconditional check

Instead of inspecting each u32/char open-coded, clean up and make use
of memcmp. On some arches, memcmp is implemented as assembly or GCC's
__builtin_memcmp which can possibly take advantages of known
alignment.

Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
net/ipv4/netfilter/arp_tables.c
net/ipv4/netfilter/ip_tables.c
net/ipv6/netfilter/ip6_tables.c