diff options
author | Pablo Neira Ayuso <pablo@netfilter.org> | 2008-12-13 16:15:18 +0100 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2008-12-13 16:15:18 +0100 |
commit | 8d6efef0daed05925bf9b13c21948afa651482a5 (patch) | |
tree | ae9053c2a1579d3a74fd68cd508d1922eafccfb2 /src/sync-ftfw.c | |
parent | 77d7daef4e41b5fb55d9fb2c4c0a66fe7039887d (diff) | |
download | conntrack-tools-8d6efef0daed05925bf9b13c21948afa651482a5.tar.gz conntrack-tools-8d6efef0daed05925bf9b13c21948afa651482a5.zip |
network: use NET_T_* instead of NFCT_Q_*
This patch replaces the use of NFCT_Q_* in the message type by
specific network message type NET_T_*. The query types are reserved
for libnetfilter_conntrack operations.
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'src/sync-ftfw.c')
-rw-r--r-- | src/sync-ftfw.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/sync-ftfw.c b/src/sync-ftfw.c index a4895d4..05475ab 100644 --- a/src/sync-ftfw.c +++ b/src/sync-ftfw.c @@ -454,9 +454,9 @@ static void ftfw_send(struct nethdr *net, struct us_conntrack *u) struct cache_ftfw *cn; switch(net->type) { - case NFCT_Q_CREATE: - case NFCT_Q_UPDATE: - case NFCT_Q_DESTROY: + case NET_T_STATE_NEW: + case NET_T_STATE_UPD: + case NET_T_STATE_DEL: cn = (struct cache_ftfw *) cache_get_extra(STATE_SYNC(internal), u); @@ -537,9 +537,9 @@ static void ftfw_run(void) u = cache_get_conntrack(STATE_SYNC(internal), cn); if (alarm_pending(&u->alarm)) - tx_list_xmit(&cn->tx_list, u, NFCT_Q_DESTROY); + tx_list_xmit(&cn->tx_list, u, NET_T_STATE_DEL); else - tx_list_xmit(&cn->tx_list, u, NFCT_Q_UPDATE); + tx_list_xmit(&cn->tx_list, u, NET_T_STATE_UPD); } /* reset alive alarm */ |