[PATCH 1/1] netfilter: h323: Use mod_timer instead of set_expect_timeout

2016-07-21 Thread fgao
From: Gao Feng It could simplify the codes without any side effect. The set_expect_timeout is used to modify the timer expired time. It tries to delete timer, and add it again. So we could use mod_timer directly. Signed-off-by: Gao Feng --- v1: Intial Patch

[PATCH 1/1] lvs: Use IS_ERR_OR_NULL(svc) instead of IS_ERR(svc) || svc == NULL

2016-07-21 Thread fgao
From: Gao Feng This minor refactoring does not change the logic of function ip_vs_genl_dump_dests. Signed-off-by: Gao Feng --- v1: Initial patch net/netfilter/ipvs/ip_vs_ctl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[PATCH 1/1] netfilter: Use IS_ERR_OR_NULL instead of IS_ERR and NULl check to simplify the codes in ip_vs_genl_dump_dests and resolve_normal_ct

2016-07-21 Thread fgao
From: Gao Feng Signed-off-by: Gao Feng --- v1: Initial Version net/netfilter/ipvs/ip_vs_ctl.c| 2 +- net/netfilter/nf_conntrack_core.c | 6 ++ 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/net/netfilter/ipvs/ip_vs_ctl.c

[PATCH 1/1] netfilter: udp: Remove a bit misleading comment in udp_pkt_to_tuple

2016-07-21 Thread fgao
From: Gao Feng Signed-off-by: Gao Feng --- v1: Initial patch net/netfilter/nf_conntrack_proto_udp.c | 1 - 1 file changed, 1 deletion(-) diff --git a/net/netfilter/nf_conntrack_proto_udp.c b/net/netfilter/nf_conntrack_proto_udp.c index 4fd0405..bc8276b

[PATCH 1/1] netfilter: udp: Only get 8 bytes header in udp_pkt_to_tuple to keep consistent with tcp_pkt_to_tuple and comments

2016-07-21 Thread fgao
From: Gao Feng Signed-off-by: Gao Feng --- net/netfilter/nf_conntrack_proto_udp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/netfilter/nf_conntrack_proto_udp.c b/net/netfilter/nf_conntrack_proto_udp.c index 4fd0405..a886a8a 100644

[PATCH 1/1] netfilter: Add helper array register/unregister functions

2016-07-17 Thread fgao
From: Gao Feng Add nf_ct_helper_init, nf_conntrack_helpers_register/unregister functions to enhance the conntrack helper codes. Signed-off-by: Gao Feng --- include/net/netfilter/nf_conntrack_helper.h | 16 ++ net/netfilter/nf_conntrack_ftp.c|

<    1   2