ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/hopm/trunk/src/patricia.h
(Generate patch)

Comparing hopm/trunk/src/patricia.h (file contents):
Revision 8752 by michael, Sun Nov 6 18:20:25 2016 UTC vs.
Revision 8753 by michael, Tue Jan 1 13:56:48 2019 UTC

# Line 38 | Line 38
38  
39   /* { from defs.h */
40   #define prefix_touchar(prefix) ((unsigned char *)&(prefix)->add.sin)
41 #define MAXLINE 1024
41   #define BIT_TEST(f, b)  ((f) & (b))
42   /* } */
43  
# Line 67 | Line 66 | typedef struct _patricia_node_t
66    struct _patricia_node_t *l, *r;  /* left and right children */
67    struct _patricia_node_t *parent;  /* may be used */
68    void *data;  /* pointer to data */
70  void *user1;  /* pointer to usr data (ex. route flap info) */
69   } patricia_node_t;
70  
71   typedef struct _patricia_tree_t
# Line 96 | Line 94 | extern patricia_node_t *patricia_try_sea
94  
95   /* { from demo.c */
96   extern patricia_node_t *patricia_make_and_lookup(patricia_tree_t *, const char *);
97 + extern patricia_node_t *patricia_make_and_lookup_addr(patricia_tree_t *, struct sockaddr *, int);
98   /* } */
99  
100   #define PATRICIA_MAXBITS   (sizeof(struct in6_addr) * 8)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines