diff options
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 |