diff options
author | Holger Eitzenberger <holger@eitzenberger.org> | 2009-03-25 20:52:17 (GMT) |
---|---|---|
committer | Patrick McHardy <kaber@trash.net> | 2009-03-25 20:52:17 (GMT) |
commit | 5c0de29d06318ec8f6e3ba0d17d62529dbbdc1e8 (patch) | |
tree | 8759b27ec098844301343376b600b6ec47b3886f /net | |
parent | 2732c4e45bb67006fdc9ae6669be866762711ab5 (diff) | |
download | linux-fsl-qoriq-5c0de29d06318ec8f6e3ba0d17d62529dbbdc1e8.tar.xz |
netfilter: nf_conntrack: add generic function to get len of generic policy
Usefull for all protocols which do not add additional data, such
as GRE or UDPlite.
Signed-off-by: Holger Eitzenberger <holger@eitzenberger.org>
Signed-off-by: Patrick McHardy <kaber@trash.net>
Diffstat (limited to 'net')
-rw-r--r-- | net/netfilter/nf_conntrack_core.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/net/netfilter/nf_conntrack_core.c b/net/netfilter/nf_conntrack_core.c index c55bbdc..b182b30 100644 --- a/net/netfilter/nf_conntrack_core.c +++ b/net/netfilter/nf_conntrack_core.c @@ -921,6 +921,12 @@ int nf_ct_port_nlattr_to_tuple(struct nlattr *tb[], return 0; } EXPORT_SYMBOL_GPL(nf_ct_port_nlattr_to_tuple); + +int nf_ct_port_nlattr_tuple_size(void) +{ + return nla_policy_len(nf_ct_port_nla_policy, CTA_PROTO_MAX + 1); +} +EXPORT_SYMBOL_GPL(nf_ct_port_nlattr_tuple_size); #endif /* Used by ipt_REJECT and ip6t_REJECT. */ |