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-10-29 12:49:38 +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-10-29 12:49:38 +0000 |
commit | 62b2c282232df3407b966198a3cbd1292edb4913 (patch) | |
tree | 4c4f2493b70d81ade7df2b9c325ed57aeb77d2f1 /include/libnetfilter_conntrack/libnetfilter_conntrack_extensions.h | |
parent | e0fb5af798a1b7723e228ffc7c67e38babc883c6 (diff) |
Thanks to Harald for all the comments.
o libnetfilter_conntrack.h splitted into two parts: what is visible to
application programs and what is visible to extensions.
o Killed includes asm/types.h and linux/if.h
o Fixed nasty wrong ipv6 definition
o Stolen the status bits from ip_conntrack.h, we don't include ip_conntrack.h
anymore.
o move nfct_handle to libnetfilter_conntrack.c: better for encapsulation
Diffstat (limited to 'include/libnetfilter_conntrack/libnetfilter_conntrack_extensions.h')
-rw-r--r-- | include/libnetfilter_conntrack/libnetfilter_conntrack_extensions.h | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/include/libnetfilter_conntrack/libnetfilter_conntrack_extensions.h b/include/libnetfilter_conntrack/libnetfilter_conntrack_extensions.h new file mode 100644 index 0000000..4900541 --- /dev/null +++ b/include/libnetfilter_conntrack/libnetfilter_conntrack_extensions.h @@ -0,0 +1,28 @@ +/* + * (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_EXTENSIONS_H_ +#define _LIBNETFILTER_CONNTRACK_EXTENSIONS_H_ + +#include "linux_list.h" + +struct nfct_proto { + struct list_head head; + + char *name; + u_int8_t protonum; + char *version; + + void (*parse_proto)(struct nfattr **, struct nfct_tuple *); + void (*parse_protoinfo)(struct nfattr **, struct nfct_conntrack *); + int (*print_protoinfo)(char *, union nfct_protoinfo *); + int (*print_proto)(char *, struct nfct_tuple *); +}; + +extern void nfct_register_proto(struct nfct_proto *h); + +#endif |