]> git.ipfire.org Git - thirdparty/nftables.git/commit
datatype: maintain table of all datatypes and add registration/lookup function
authorPatrick McHardy <kaber@trash.net>
Tue, 31 Mar 2009 02:14:26 +0000 (04:14 +0200)
committerPatrick McHardy <kaber@trash.net>
Tue, 31 Mar 2009 02:14:26 +0000 (04:14 +0200)
commit4fee12b4b0a837b4d34d21be99cda8185563f784
tree129d65c66938c3851be3a3a35eb6523e5fef8791
parent53fc2c7a799877c5859298bd16b578711af9cca2
datatype: maintain table of all datatypes and add registration/lookup function

Add a table containing all available datatypes and registration/lookup functions.
This will be used to associate a stand-alone set in the kernel with the correct
type without parsing the entire ruleset.

Additionally it would now be possible to remove the global declarations for the
core types. Not done yet though.

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