netfilter: ctnetlink: refactor ctnetlink_create_expect 94/103594/1
authorPablo Neira Ayuso <pablo@netfilter.org>
Wed, 7 Aug 2013 17:12:34 +0000 (19:12 +0200)
committerSeung-Woo Kim <sw0312.kim@samsung.com>
Fri, 9 Dec 2016 01:50:13 +0000 (10:50 +0900)
commit2dfe6f4cef72e486b40a390e56b241c8c5f5dcae
treeab19ef6127ed87a2d97158f5b8bb8138161ad251
parente5244ccbc775acd5ec53da41c1a863487ee90bae
netfilter: ctnetlink: refactor ctnetlink_create_expect

This patch refactors ctnetlink_create_expect by spliting it in two
chunks. As a result, we have a new function ctnetlink_alloc_expect
to allocate and to setup the expectation from ctnetlink.

Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
[Applied from mainline v3.11 for the other backported commit 930a2d023b07 ("netfilter: nfnetlink_queue: allow to attach expectations to conntracks")]
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Change-Id: I97e8ac912bab81a4668cbaa602c5ba7bc52fb2e8
net/netfilter/nf_conntrack_netlink.c