-
Notifications
You must be signed in to change notification settings - Fork 0
/
dict.h
27 lines (23 loc) · 1.09 KB
/
dict.h
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
#include <linux/types.h>
#include <linux/rhashtable.h>
#define NFTA_DICT_MAX (__NFTA_DICT_MAX - 1)
#define NFTA_CTID_MAX (__NFTA_CTID_MAX - 1)
typedef void (*seq_printfn_t)(struct seq_file *m, char *buf);
struct nf_conn_dict_entry_elem {
char * buf;
int len;
u32 hash;
seq_printfn_t printfn;
};
struct nf_conn_dict * new_dict_entry(struct net *net, u8 *key, u32 key_len, char *table, seq_printfn_t key_printfn,
char * field, char * value, u32 len, seq_printfn_t printfn);
void seq_print_ip(struct seq_file *m, char *buf);
void seq_print_ip6(struct seq_file *m, char *buf);
void seq_print_mac(struct seq_file *m, char *buf);
void seq_print_string(struct seq_file *m, char *buf);
void seq_print_bool(struct seq_file *m, char *buf);
void seq_print_integer(struct seq_file *m, char *buf);
void seq_print_signed_integer(struct seq_file *m, char *buf);
void seq_print_integer64(struct seq_file *m, char *buf);
void destroy_dict(struct net *net, u8 *key, u32 key_len, char *table);
struct nf_conn_dict_entry_elem * find_conntrack_dict_entry(struct net *net, u8 *key, u32 key_len, char *table, char * field);