projects
/
project
/
netifd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
nterface-ip: remove superfluous iface check in interface_ip_set_enabled()
[project/netifd.git]
/
interface-ip.h
diff --git
a/interface-ip.h
b/interface-ip.h
index
bbef62c
..
197bd9a
100644
(file)
--- a/
interface-ip.h
+++ b/
interface-ip.h
@@
-31,8
+31,8
@@
enum device_addr_flags {
/* route overrides the default interface mtu */
DEVROUTE_MTU = (1 << 4),
/* route overrides the default interface mtu */
DEVROUTE_MTU = (1 << 4),
- /* route
automatically added by kernel
*/
- DEV
ADDR_KERNEL
= (1 << 5),
+ /* route
overrides the default proto type
*/
+ DEV
ROUTE_PROTO
= (1 << 5),
/* address is off-link (no subnet-route) */
DEVADDR_OFFLINK = (1 << 6),
/* address is off-link (no subnet-route) */
DEVADDR_OFFLINK = (1 << 6),
@@
-59,6
+59,7
@@
struct device_prefix_assignment {
struct list_head head;
int32_t assigned;
uint8_t length;
struct list_head head;
int32_t assigned;
uint8_t length;
+ int weight;
struct in6_addr addr;
bool enabled;
char name[];
struct in6_addr addr;
bool enabled;
char name[];
@@
-92,6
+93,7
@@
struct device_route {
union if_addr nexthop;
int mtu;
unsigned int type;
union if_addr nexthop;
int mtu;
unsigned int type;
+ unsigned int proto;
time_t valid_until;
/* must be last */
time_t valid_until;
/* must be last */