diff options
| author | Pablo Neira Ayuso <pablo@netfilter.org> | 2013-08-07 12:13:20 -0400 |
|---|---|---|
| committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2013-08-13 10:32:10 -0400 |
| commit | bd0779370588386e4a67ba5d0b176cfded8e6a53 (patch) | |
| tree | 7fddb1464b457c3288ced39a635fd38f0d207ba5 /include/linux | |
| parent | 0ef71ee1a5b92c038abefd8991d5368e6031d7de (diff) | |
netfilter: nfnetlink_queue: allow to attach expectations to conntracks
This patch adds the capability to attach expectations via nfnetlink_queue.
This is required by conntrack helpers that trigger expectations based on
the first packet seen like the TFTP and the DHCPv6 user-space helpers.
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/netfilter.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/netfilter.h b/include/linux/netfilter.h index 655d5d198d49..e2cf786be22f 100644 --- a/include/linux/netfilter.h +++ b/include/linux/netfilter.h | |||
| @@ -325,6 +325,8 @@ struct nfq_ct_hook { | |||
| 325 | size_t (*build_size)(const struct nf_conn *ct); | 325 | size_t (*build_size)(const struct nf_conn *ct); |
| 326 | int (*build)(struct sk_buff *skb, struct nf_conn *ct); | 326 | int (*build)(struct sk_buff *skb, struct nf_conn *ct); |
| 327 | int (*parse)(const struct nlattr *attr, struct nf_conn *ct); | 327 | int (*parse)(const struct nlattr *attr, struct nf_conn *ct); |
| 328 | int (*attach_expect)(const struct nlattr *attr, struct nf_conn *ct, | ||
| 329 | u32 portid, u32 report); | ||
| 328 | }; | 330 | }; |
| 329 | extern struct nfq_ct_hook __rcu *nfq_ct_hook; | 331 | extern struct nfq_ct_hook __rcu *nfq_ct_hook; |
| 330 | 332 | ||
