]> git.ipfire.org Git - thirdparty/nftables.git/commit
expr: add protocol context update callback
authorPatrick McHardy <kaber@trash.net>
Wed, 8 Jan 2014 13:02:15 +0000 (13:02 +0000)
committerPatrick McHardy <kaber@trash.net>
Wed, 8 Jan 2014 13:02:15 +0000 (13:02 +0000)
commit77ef4d83c8d030b183ff763605b2c3026545fc9c
tree8ad321d7a8d5f285d84f3873c75f65c408ec11be
parent8f86606efe82489945db1706bd1d1a4d524afcad
expr: add protocol context update callback

Add a callback function to the expression ops to update the protocol
context for relational protocol expressions (EXPR_F_PROTOCOL).

Also set the EXPR_F_PROTOCOL flag for IIFTYPE meta expressions to make
sure the callback is invoked when necessary.

Signed-off-by: Patrick McHardy <kaber@trash.net>
include/expression.h
include/meta.h
include/payload.h
src/evaluate.c
src/meta.c
src/netlink_delinearize.c
src/payload.c