Suppress usage of deprecated enum
PATCH 4/4 Suppress usage of deprecated enum
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 <[email protected]>
--- input/flow/ulogd_inpflow_NFCT.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)
input/flow/ulogd_inpflow_NFCT.c +2 -2
@@ -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 {
Signature · 1 line
1.5.4.3