path: root/src/sync-ftfw.c
diff options
authorPablo Neira Ayuso <>2012-01-04 14:30:02 +0100
committerPablo Neira Ayuso <>2012-01-10 01:54:45 +0100
commit931c0eff309d8c7277ebe6d670fd72d8fbe3c674 (patch)
tree08de51d959a6e642aad1f506f089ea2e1393e3b9 /src/sync-ftfw.c
parent395ac42f5f1844834698f29032b101c2890b6772 (diff)
conntrackd: generalize/cleanup network message building/parsing
This patch generalizes the network message building and parsing to prepare the upcoming expectation support. Basically, it renames: - NET_T_STATE_* by NET_T_STATE_CT_*, as I plan to add NET_T_STATE_EXP_* - BUILD_NETMSG by BUILD_NETMSG_FROM_CT, and build_payload by ct2msg. I plan to add exp2msg. - parse_payload by msg2ct, since I plan to add msg2exp. - modify object_status_to_network_type to prepare the support of expectations. - add prefix ct_ to all parsing functions in parse.c, as we will have similar functions to convert messages to expectation objects. Signed-off-by: Pablo Neira Ayuso <>
Diffstat (limited to 'src/sync-ftfw.c')
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sync-ftfw.c b/src/sync-ftfw.c
index 55eda0b..cff4d25 100644
--- a/src/sync-ftfw.c
+++ b/src/sync-ftfw.c
@@ -518,7 +518,7 @@ static int tx_queue_xmit(struct queue_node *n, const void *data)
cn = (struct cache_ftfw *)n;
obj = cache_data_get_object(STATE(mode)->internal->, cn);
- type = object_status_to_network_type(obj->status);
+ type = object_status_to_network_type(obj);
net = obj->cache->ops->build_msg(obj, type);