]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
Flowspec: Fix values for true/false operators
authorOndrej Zajicek (work) <santiago@crfreenet.org>
Fri, 14 May 2021 16:44:52 +0000 (18:44 +0200)
committerOndrej Zajicek (work) <santiago@crfreenet.org>
Fri, 14 May 2021 16:44:52 +0000 (18:44 +0200)
RFC 8955 is pretty clear that 000 is false and 111 is true.

lib/flowspec.h

index 9bafc52efb97331ca5ef91cfa9f5be78d26a8fdc..91a2671bbd6aac82448c351aaf496348418653f4 100644 (file)
 
 
 /* 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