diff options
author | /C=DE/ST=Berlin/L=Berlin/O=Netfilter Project/OU=Development/CN=pablo/emailAddress=pablo@netfilter.org </C=DE/ST=Berlin/L=Berlin/O=Netfilter Project/OU=Development/CN=pablo/emailAddress=pablo@netfilter.org> | 2005-12-26 02:29:02 +0000 |
---|---|---|
committer | /C=DE/ST=Berlin/L=Berlin/O=Netfilter Project/OU=Development/CN=pablo/emailAddress=pablo@netfilter.org </C=DE/ST=Berlin/L=Berlin/O=Netfilter Project/OU=Development/CN=pablo/emailAddress=pablo@netfilter.org> | 2005-12-26 02:29:02 +0000 |
commit | 8aa719eb1afb6c6e0a5bf74cbdab79dc82da6c80 (patch) | |
tree | d297a64f5ff25395981334035d5deae8d13e69cc /include/libnetfilter_conntrack/libnetfilter_conntrack_l3extensions.h | |
parent | 5875e04f38e0e5c09e497dc735e287fc6cc626b3 (diff) |
o add IPv6 support
o clean up layer-4 compare functions
o finish the comparison infrastructure: support for tuple/mark matching
o fix bug in the default event display when used in conjunction with the
comparison infrastructure.
o Bumped version to 0.0.30
Thanks to Yasuyuki Kozakai for:
[LIBNETFILTER_CONNTRACK] fix dumping IPv6 connections
that in included in this commit.
Diffstat (limited to 'include/libnetfilter_conntrack/libnetfilter_conntrack_l3extensions.h')
-rw-r--r-- | include/libnetfilter_conntrack/libnetfilter_conntrack_l3extensions.h | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/include/libnetfilter_conntrack/libnetfilter_conntrack_l3extensions.h b/include/libnetfilter_conntrack/libnetfilter_conntrack_l3extensions.h new file mode 100644 index 0000000..86e002a --- /dev/null +++ b/include/libnetfilter_conntrack/libnetfilter_conntrack_l3extensions.h @@ -0,0 +1,29 @@ +/* + * (C) 2005 by Pablo Neira Ayuso <pablo@eurodev.net> + * + * This software may be used and distributed according to the terms + * of the GNU General Public License, incorporated herein by reference. + */ + +#ifndef _LIBNETFILTER_CONNTRACK_L3EXTENSIONS_H_ +#define _LIBNETFILTER_CONNTRACK_L3EXTENSIONS_H_ + +#include "linux_list.h" + +struct nfct_l3proto { + struct list_head head; + + char *name; + u_int16_t protonum; + char *version; + + void (*parse_proto)(struct nfattr **, struct nfct_tuple *); + void (*build_tuple_proto)(struct nfnlhdr *, int, struct nfct_tuple *); + int (*print_proto)(char *, struct nfct_tuple *); + int (*compare)(struct nfct_conntrack *, struct nfct_conntrack *, + unsigned int); +}; + +extern void nfct_register_l3proto(struct nfct_l3proto *h); + +#endif |