This commit is contained in:
hladu357 2024-06-06 14:41:35 +02:00
parent 62f174b9c9
commit 5427571e88
1 changed files with 1 additions and 1 deletions

View File

@ -1,6 +1,5 @@
#include "trie.h" #include "trie.h"
#define READ_MODE "r"
#define RULE_NOT_FOUND -1 #define RULE_NOT_FOUND -1
#define GET_BIT(key, bit) ( ( key.s[ bit / 16 ] & (1u << (15 - bit % 16)) ) != 0 ) #define GET_BIT(key, bit) ( ( key.s[ bit / 16 ] & (1u << (15 - bit % 16)) ) != 0 )
@ -84,6 +83,7 @@ int trie_search(trie_holder_t t, ipv6_t key) {
#define RULES_FILE "../data/routing-data" #define RULES_FILE "../data/routing-data"
#define TEST_FILE "../data/test-data" #define TEST_FILE "../data/test-data"
#define TEST_ROWS 5721 #define TEST_ROWS 5721
#define READ_MODE "r"
int parse_line(ipv6_t* key, int* val, int* mask, FILE* f) { /*! assumes only good input */ int parse_line(ipv6_t* key, int* val, int* mask, FILE* f) { /*! assumes only good input */
memset(key, 0, sizeof(ipv6_t)); memset(key, 0, sizeof(ipv6_t));