filter: add XOR instruction for use with X/K
authorDaniel Borkmann <dxchgb@gmail.com>
Mon, 24 Sep 2012 02:23:59 +0000 (02:23 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 24 Sep 2012 20:49:21 +0000 (16:49 -0400)
commit9e49e88958feb41ec701fa34b44723dabadbc28c
treeab17d7738505ade25a0a16bf442086cbf07d0f22
parent718cffc4ac65f01c6f1efd6baec8b4b5ff0c76b5
filter: add XOR instruction for use with X/K

SKF_AD_ALU_XOR_X has been added a while ago, but as an 'ancillary'
operation that is invoked through a negative offset in K within BPF
load operations. Since BPF_MOD has recently been added, BPF_XOR should
also be part of the common ALU operations. Removing SKF_AD_ALU_XOR_X
might not be an option since this is exposed to user space.

Signed-off-by: Daniel Borkmann <daniel.borkmann@tik.ee.ethz.ch>
Acked-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/filter.h
net/core/filter.c