aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOndrej Zajicek (work) <santiago@crfreenet.org>2021-05-14 18:44:52 +0200
committerOndrej Zajicek (work) <santiago@crfreenet.org>2021-05-14 18:44:52 +0200
commitd114959e3aeef872441dccea34552047380af742 (patch)
tree23e71f4a89fdc0d89ac00c611601144d8c663d60
parent69a33c92ffce12d173794508cc9d8acfa87d1dc3 (diff)
downloadbird-d114959e3aeef872441dccea34552047380af742.tar.gz
Flowspec: Fix values for true/false operators
RFC 8955 is pretty clear that 000 is false and 111 is true.
-rw-r--r--lib/flowspec.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/flowspec.h b/lib/flowspec.h
index 9bafc52e..91a2671b 100644
--- a/lib/flowspec.h
+++ b/lib/flowspec.h
@@ -15,14 +15,14 @@
/* Flow component operators */
-#define FLOW_OP_TRUE 0x00 /* 0b000 */
+#define FLOW_OP_FALSE 0x00 /* 0b000 */
#define FLOW_OP_EQ 0x01 /* 0b001 */
#define FLOW_OP_GT 0x02 /* 0b010 */
#define FLOW_OP_GEQ 0x03 /* 0b011 */
#define FLOW_OP_LT 0x04 /* 0b100 */
#define FLOW_OP_LEQ 0x05 /* 0b101 */
#define FLOW_OP_NEQ 0x06 /* 0b110 */
-#define FLOW_OP_FALSE 0x07 /* 0b111 */
+#define FLOW_OP_TRUE 0x07 /* 0b111 */
#define FLOW_OP_OR 0x00
#define FLOW_OP_AND 0x40