summaryrefslogtreecommitdiffstats
path: root/net/netfilter/nfnetlink.c
diff options
context:
space:
mode:
authorPatrick McHardy <kaber@trash.net>2013-04-17 06:47:09 +0000
committerDavid S. Miller <davem@davemloft.net>2013-04-19 14:58:36 -0400
commit3ab1f683bf8be7aa7869cc3ffb8d1db2ec8c8307 (patch)
tree06bdfb40df2905a7e6daa3dbff4cb0cc1357abb5 /net/netfilter/nfnetlink.c
parentec464e5dc504a164c5dbff4a06812d495e44e34d (diff)
downloadtalos-op-linux-3ab1f683bf8be7aa7869cc3ffb8d1db2ec8c8307.tar.gz
talos-op-linux-3ab1f683bf8be7aa7869cc3ffb8d1db2ec8c8307.zip
nfnetlink: add support for memory mapped netlink
Signed-off-by: Patrick McHardy <kaber@trash.net> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/netfilter/nfnetlink.c')
-rw-r--r--net/netfilter/nfnetlink.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/net/netfilter/nfnetlink.c b/net/netfilter/nfnetlink.c
index 1640bd7dcdf4..572d87dc116f 100644
--- a/net/netfilter/nfnetlink.c
+++ b/net/netfilter/nfnetlink.c
@@ -112,6 +112,13 @@ int nfnetlink_has_listeners(struct net *net, unsigned int group)
}
EXPORT_SYMBOL_GPL(nfnetlink_has_listeners);
+struct sk_buff *nfnetlink_alloc_skb(struct net *net, unsigned int size,
+ u32 dst_portid, gfp_t gfp_mask)
+{
+ return netlink_alloc_skb(net->nfnl, size, dst_portid, gfp_mask);
+}
+EXPORT_SYMBOL_GPL(nfnetlink_alloc_skb);
+
int nfnetlink_send(struct sk_buff *skb, struct net *net, u32 portid,
unsigned int group, int echo, gfp_t flags)
{
OpenPOWER on IntegriCloud