netfilter: nf_ct_expect: Add nf_ct_remove_expect()
authorGao Feng <fgao@ikuai8.com>
Mon, 27 Mar 2017 02:31:26 +0000 (10:31 +0800)
committerPablo Neira Ayuso <pablo@netfilter.org>
Thu, 6 Apr 2017 16:39:40 +0000 (18:39 +0200)
commitec0e3f01114ad327112432a4da8840eb22fed577
treece5e2fe065270a012e7fb2cabd6f4207a3711f33
parent92f73221f9e9e143d242e3eca9c512dac969765e
netfilter: nf_ct_expect: Add nf_ct_remove_expect()

When remove one expect, it needs three statements. And there are
multiple duplicated codes in current code. So add one common function
nf_ct_remove_expect to consolidate this.

Signed-off-by: Gao Feng <fgao@ikuai8.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
include/net/netfilter/nf_conntrack_expect.h
net/netfilter/nf_conntrack_expect.c
net/netfilter/nf_conntrack_helper.c
net/netfilter/nf_conntrack_sip.c