summaryrefslogtreecommitdiffstats
path: root/src/methods
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2016-02-22 15:20:25 +0100
committerMatthias Schiffer <mschiffer@universe-factory.net>2016-02-22 15:20:25 +0100
commit96c9ba0f09db026ec361b4d4d3a1fbf1f57bdc06 (patch)
tree8c32464bd3a2fc0f1178c2e357617a9c4e256114 /src/methods
parent8255dd8965cde43311d6e89ca9e9644fe29d4bca (diff)
downloadfastd-96c9ba0f09db026ec361b4d4d3a1fbf1f57bdc06.tar
fastd-96c9ba0f09db026ec361b4d4d3a1fbf1f57bdc06.zip
types: replace static consts with defines
Diffstat (limited to 'src/methods')
-rw-r--r--src/methods/common.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/methods/common.c b/src/methods/common.c
index 4d1a795..fddfc20 100644
--- a/src/methods/common.c
+++ b/src/methods/common.c
@@ -96,15 +96,15 @@ fastd_tristate_t fastd_method_reorder_check(fastd_peer_t *peer, fastd_method_com
memcpy(session->receive_nonce, nonce, COMMON_NONCEBYTES);
session->reorder_timeout = ctx.now + REORDER_TIME;
- return fastd_tristate_false;
+ return FASTD_TRISTATE_FALSE;
}
else if (age == 0 || session->receive_reorder_seen & ((uint64_t)1 << (age-1))) {
pr_debug("dropping duplicate packet from %P (age %u)", peer, (unsigned)age);
- return fastd_tristate_undef;
+ return FASTD_TRISTATE_UNDEF;
}
else {
pr_debug2("accepting reordered packet from %P (age %u)", peer, (unsigned)age);
session->receive_reorder_seen |= ((uint64_t)1 << (age-1));
- return fastd_tristate_true;
+ return FASTD_TRISTATE_TRUE;
}
}