projects
/
project
/
netifd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Incorperate route table into avl key
[project/netifd.git]
/
interface-ip.h
diff --git
a/interface-ip.h
b/interface-ip.h
index
91358b8
..
607999e
100644
(file)
--- a/
interface-ip.h
+++ b/
interface-ip.h
@@
-36,6
+36,9
@@
enum device_addr_flags {
/* address is off-link (no subnet-route) */
DEVADDR_OFFLINK = (1 << 6),
/* address is off-link (no subnet-route) */
DEVADDR_OFFLINK = (1 << 6),
+
+ /* route resides in different table */
+ DEVROUTE_TABLE = (1 << 7),
};
union if_addr {
};
union if_addr {
@@
-98,6
+101,7
@@
struct device_route {
/* must be last */
enum device_addr_flags flags;
int metric; // there can be multiple routes to the same target
/* must be last */
enum device_addr_flags flags;
int metric; // there can be multiple routes to the same target
+ unsigned int table;
unsigned int mask;
union if_addr addr;
};
unsigned int mask;
union if_addr addr;
};