diff options
author | Rich Fought <Rich.Fought@watchguard.com> | 2012-10-08 16:49:06 -0700 |
---|---|---|
committer | Rich Fought <Rich.Fought@watchguard.com> | 2012-10-08 16:49:06 -0700 |
commit | f111efd894560a3f5d4393ff9aa59d1d87b78f6e (patch) | |
tree | 87ea1eb2c82bb0fbb54a3f335023c57083bf6447 /include/netlink/netfilter/exp.h | |
parent | c675bf048669e6387213018298787f4f9415401f (diff) | |
download | libnl-f111efd894560a3f5d4393ff9aa59d1d87b78f6e.tar.gz |
Successful compilation of libnl-nf with expectation
Diffstat (limited to 'include/netlink/netfilter/exp.h')
-rw-r--r-- | include/netlink/netfilter/exp.h | 28 |
1 files changed, 8 insertions, 20 deletions
diff --git a/include/netlink/netfilter/exp.h b/include/netlink/netfilter/exp.h index ba18b243..bb4c98e2 100644 --- a/include/netlink/netfilter/exp.h +++ b/include/netlink/netfilter/exp.h @@ -88,24 +88,24 @@ extern int nfnl_exp_set_fn(struct nfnl_exp *, void *); extern int nfnl_exp_test_fn(const struct nfnl_exp *); extern const char * nfnl_exp_get_fn(const struct nfnl_exp *); -extern void nfnl_exp_set_nat_dir(struct nfnl_exp *, int, uint8_t); -extern int nfnl_exp_test_nat_dir(const struct nfnl_exp *, int); -extern uint8_t nfnl_exp_get_nat_dir(const struct nfnl_exp *, int); +extern void nfnl_exp_set_nat_dir(struct nfnl_exp *, uint8_t); +extern int nfnl_exp_test_nat_dir(const struct nfnl_exp *); +extern uint8_t nfnl_exp_get_nat_dir(const struct nfnl_exp *); -// The int argument specifies which nfnl_ct_dir (expect, master, mask or nat) +// The int argument specifies which nfnl_exp_dir (expect, master, mask or nat) // Expectation objects only use orig, not reply extern int nfnl_exp_set_src(struct nfnl_exp *, int, struct nl_addr *); -extern int nfnl_exp_test_src(const struct nfnl_exp *); -extern struct nl_addr * nfnl_ct_get_src(const struct nfnl_exp *, int); +extern int nfnl_exp_test_src(const struct nfnl_exp *, int); +extern struct nl_addr * nfnl_exp_get_src(const struct nfnl_exp *, int); extern int nfnl_exp_set_dst(struct nfnl_exp *, int, struct nl_addr *); -extern int nfnl_exp_test_dst(const struct nfnl_exp *); +extern int nfnl_exp_test_dst(const struct nfnl_exp *, int); extern struct nl_addr * nfnl_exp_get_dst(const struct nfnl_exp *, int); extern void nfnl_exp_set_l4protonum(struct nfnl_exp *, int, uint8_t); extern int nfnl_exp_test_l4protonum(const struct nfnl_exp *, int); -extern uint8_t * nfnl_exp_get_l4protonum(const struct nfnl_exp *, int); +extern uint8_t nfnl_exp_get_l4protonum(const struct nfnl_exp *, int); extern void nfnl_exp_set_ports(struct nfnl_exp *, int, uint16_t, uint16_t); extern int nfnl_exp_test_ports(const struct nfnl_exp *, int); @@ -118,18 +118,6 @@ extern uint16_t nfnl_exp_get_icmp_id(const struct nfnl_exp *, int); extern uint8_t nfnl_exp_get_icmp_type(const struct nfnl_exp *, int); extern uint8_t nfnl_exp_get_icmp_code(const struct nfnl_exp *, int); -// TODO: Expectation table does support CPU stats get command, not sure if the same -/* -extern void nfnl_ct_set_packets(struct nfnl_ct *, int, uint64_t); -extern int nfnl_ct_test_packets(const struct nfnl_ct *, int); -extern uint64_t nfnl_ct_get_packets(const struct nfnl_ct *,int); - -extern void nfnl_ct_set_bytes(struct nfnl_ct *, int, uint64_t); -extern int nfnl_ct_test_bytes(const struct nfnl_ct *, int); -extern uint64_t nfnl_ct_get_bytes(const struct nfnl_ct *, int); -*/ - - #ifdef __cplusplus } |