Skip to contentSkip to conversation

libconntrack usage

DISCUSSION Eric Leblond 2 participants 2 messages Dec 4, 2005 netfilter

lore
Share & tools
lore
#0 lore raw

Hi,

INL has develop a daemon (nutrackd) which use the libconntrack. It opens event handler for DESTROY event and to register the callback it uses :

	nfct_register_callback(cth, update_handler, NULL);

and this work well, our handler is called.

But is still display [DESTROY] on stdout after each message.

By doing :

    nfct_unregister_callback(cth);
    nfct_register_callback(cth, update_handler, NULL);

we manage to suppress the useless message.

Is this a bug or a feature ?

BR,

Signature · 2 lines
Eric Leblond <[email protected]>
INL
#1 lore raw

Hi Eric,

Quoted 5 lines · Eric Leblond

INL has develop a daemon (nutrackd) which use the libconntrack. It opens event handler for DESTROY event and to register the callback it uses :

	nfct_register_callback(cth, update_handler, NULL);

and this work well, our handler is called.

Quoted 8 lines

But is still display [DESTROY] on stdout after each message.

By doing :

    nfct_unregister_callback(cth);
    nfct_register_callback(cth, update_handler, NULL);

we manage to suppress the useless message.

Is this a bug or a feature ?

Curiously I noticed that some hours ago, I fixed in the last SVN commit together with some changes. That will fix your problem. Check out a working copy from SVN.

BTW, nfct_event_display_handler doesn't exist anymore, now you have to use nfct_conntrack_display_handler instead.

cheers.

Signature · 1 line
Pablo