aboutsummaryrefslogtreecommitdiffstats
path: root/src/patricia.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/patricia.h')
-rw-r--r--src/patricia.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/patricia.h b/src/patricia.h
index 2e6fb45..68c4150 100644
--- a/src/patricia.h
+++ b/src/patricia.h
@@ -1,5 +1,5 @@
/*
- * $Id: patricia.h 7852 2016-11-06 18:20:25Z michael $
+ * $Id: patricia.h 8597 2018-10-22 18:53:58Z michael $
* Dave Plonka <plonka@doit.wisc.edu>
*
* This file had been called "radix.h" in the MRT sources.
@@ -38,7 +38,6 @@
/* { from defs.h */
#define prefix_touchar(prefix) ((unsigned char *)&(prefix)->add.sin)
-#define MAXLINE 1024
#define BIT_TEST(f, b) ((f) & (b))
/* } */
@@ -67,7 +66,6 @@ typedef struct _patricia_node_t
struct _patricia_node_t *l, *r; /* left and right children */
struct _patricia_node_t *parent; /* may be used */
void *data; /* pointer to data */
- void *user1; /* pointer to usr data (ex. route flap info) */
} patricia_node_t;
typedef struct _patricia_tree_t
@@ -96,6 +94,7 @@ extern patricia_node_t *patricia_try_search_best_addr(patricia_tree_t *, struct
/* { from demo.c */
extern patricia_node_t *patricia_make_and_lookup(patricia_tree_t *, const char *);
+extern patricia_node_t *patricia_make_and_lookup_addr(patricia_tree_t *, struct sockaddr *, int);
/* } */
#define PATRICIA_MAXBITS (sizeof(struct in6_addr) * 8)