[ULOGD PATCH 4/4] Suppress usage of deprecated enum

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This patch fixes a problem linked with the usage of a deprecated enum.
This was causing the misdetection of DESTROY message.

Signed-off-by: Eric Leblond <eric@xxxxxx>
---
 input/flow/ulogd_inpflow_NFCT.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/input/flow/ulogd_inpflow_NFCT.c b/input/flow/ulogd_inpflow_NFCT.c
index cce06aa..ef6232e 100644
--- a/input/flow/ulogd_inpflow_NFCT.c
+++ b/input/flow/ulogd_inpflow_NFCT.c
@@ -608,7 +608,7 @@ static int event_handler(enum nf_conntrack_msg_type type,
 	struct ulogd_pluginstance *npi = NULL;
 	int ret = 0;
 
-	if (type == NFCT_MSG_NEW) {
+	if (type == NF_NETLINK_CONNTRACK_NEW) {
 		if (usehash_ce(upi->config_kset).u.value != 0) {
 			ct_hash_add(cpi->ct_active, nfct_get_attr_u32(ct, ATTR_ID));
 			return 0;
@@ -617,7 +617,7 @@ static int event_handler(enum nf_conntrack_msg_type type,
 			gettimeofday(&ts->time[START], NULL);
 			ts->time[STOP].tv_sec = 0;
 		}
-	} else if (type == NFCT_MSG_DESTROY) {
+	} else if (type == NF_NETLINK_CONNTRACK_DESTROY) {
 		if (usehash_ce(upi->config_kset).u.value != 0)
 			ts = ct_hash_get(cpi->ct_active, nfct_get_attr_u32(ct, ATTR_ID));
 		else {
-- 
1.5.4.3

--
To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Netfitler Users]     [LARTC]     [Bugtraq]     [Yosemite Forum]

  Powered by Linux