diff options
author | Hans Dedecker <dedeckeh@gmail.com> | 2017-01-19 15:59:54 +0100 |
---|---|---|
committer | Felix Fietkau <nbd@nbd.name> | 2017-01-25 09:35:27 +0100 |
commit | 650758b16e5185505a3fbc1307949340af70b611 (patch) | |
tree | b8fdadfb813f45d8f96186c8f71ba61edba14e64 /interface-ip.h | |
parent | a057f6e48f383c7e81cb22aa806216878d87947b (diff) |
interface-ip: route proto config support (FS#170)
Route proto support is usefull when using route distribution
via a routing daemon.
The route proto parameter can be specified via the route proto
uci config parameter, it can hold a numerical value or the string
values unspec, kernel, boot, static or a string present in
/etc/iproute2/rt_protos.
Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
Diffstat (limited to 'interface-ip.h')
-rw-r--r-- | interface-ip.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/interface-ip.h b/interface-ip.h index bbef62c..01727c9 100644 --- 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 automatically added by kernel */ - DEVADDR_KERNEL = (1 << 5), + /* route overrides the default proto type */ + DEVROUTE_PROTO = (1 << 5), /* address is off-link (no subnet-route) */ DEVADDR_OFFLINK = (1 << 6), @@ -92,6 +92,7 @@ struct device_route { union if_addr nexthop; int mtu; unsigned int type; + unsigned int proto; time_t valid_until; /* must be last */ |