blob: db7828d0f80d27bbce196c5ce19d185ef6898cae (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
/*
* (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_
/* some systems have old libc's */
#include <netinet/in.h>
#ifndef IPPROTO_SCTP
#define IPPROTO_SCTP 132
#endif
#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 *);
void (*build_tuple_proto)(struct nfnlhdr *, int, struct nfct_tuple *);
void (*build_protoinfo)(struct nfnlhdr *, int, struct nfct_conntrack *);
int (*print_protoinfo)(char *, union nfct_protoinfo *);
int (*print_proto)(char *, struct nfct_tuple *);
int (*compare)(struct nfct_conntrack *, struct nfct_conntrack *,
unsigned int);
};
extern void nfct_register_proto(struct nfct_proto *h);
#endif
|