mend
This commit is contained in:
parent
62f174b9c9
commit
5427571e88
|
@ -1,6 +1,5 @@
|
|||
#include "trie.h"
|
||||
|
||||
#define READ_MODE "r"
|
||||
#define RULE_NOT_FOUND -1
|
||||
#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 TEST_FILE "../data/test-data"
|
||||
#define TEST_ROWS 5721
|
||||
#define READ_MODE "r"
|
||||
|
||||
int parse_line(ipv6_t* key, int* val, int* mask, FILE* f) { /*! assumes only good input */
|
||||
memset(key, 0, sizeof(ipv6_t));
|
||||
|
|
Loading…
Reference in New Issue