summaryrefslogtreecommitdiffstats
path: root/src/network.c
diff options
context:
space:
mode:
authorPablo Neira Ayuso <pablo@netfilter.org>2009-03-12 21:19:19 +0100
committerPablo Neira Ayuso <pablo@netfilter.org>2009-03-12 21:19:19 +0100
commit338d8fc2da19f5d6a75c339d9e6ecac43b68a1e4 (patch)
tree4fcdc9911c9831de78bd5ae3ae7f0a805fc7ffc2 /src/network.c
parent656d5ad7c69a5a7d356c6251743890f1eec0bb71 (diff)
sync-mode: rename mcast_track_*() by nethdr_track_*()
This patch is a cleanup. It renames the mcast_track_*() functions by nethdr_track_*() because this functions are related to message sequence tracking. They are not stick to multicast at all. Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'src/network.c')
-rw-r--r--src/network.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/network.c b/src/network.c
index bdfa10c..6a66a2b 100644
--- a/src/network.c
+++ b/src/network.c
@@ -68,7 +68,7 @@ void nethdr_set_ctl(struct nethdr *net)
static int local_seq_set = 0;
/* this function only tracks, it does not update the last sequence received */
-int mcast_track_seq(uint32_t seq, uint32_t *exp_seq)
+int nethdr_track_seq(uint32_t seq, uint32_t *exp_seq)
{
int ret = SEQ_UNKNOWN;
@@ -104,7 +104,7 @@ out:
return ret;
}
-void mcast_track_update_seq(uint32_t seq)
+void nethdr_track_update_seq(uint32_t seq)
{
if (!local_seq_set)
local_seq_set = 1;
@@ -112,7 +112,7 @@ void mcast_track_update_seq(uint32_t seq)
STATE_SYNC(last_seq_recv) = seq;
}
-int mcast_track_is_seq_set()
+int nethdr_track_is_seq_set()
{
return local_seq_set;
}