summaryrefslogtreecommitdiff
path: root/proto/static/static.h
diff options
context:
space:
mode:
authorOndrej Zajicek <santiago@crfreenet.org>2015-07-20 11:12:02 +0200
committerOndrej Zajicek <santiago@crfreenet.org>2015-07-20 17:11:10 +0200
commit1321e12ac460bd542d3946a0c4a4dacd71157cfa (patch)
tree7f9470375fdc8fb4bf8c4b76140c6e4686d7e079 /proto/static/static.h
parentffa398b8d8bac4cf6368fe700466cad4ff12fee8 (diff)
Static: Allows to specify attributes for static routes
The patch adds suport for specifying route attributes together with static routes, e.g.: route 10.1.1.0/24 via 10.0.0.1 { krt_advmss = 1200; ospf_metric1 = 100; };
Diffstat (limited to 'proto/static/static.h')
-rw-r--r--proto/static/static.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/proto/static/static.h b/proto/static/static.h
index 99a0e68b..f197d352 100644
--- a/proto/static/static.h
+++ b/proto/static/static.h
@@ -31,6 +31,7 @@ struct static_route {
struct neighbor *neigh;
byte *if_name; /* Name for RTD_DEVICE routes */
struct static_route *mp_next; /* Nexthops for RTD_MULTIPATH routes */
+ struct f_inst *cmds; /* List of commands for setting attributes */
int installed; /* Installed in rt table, -1 for reinstall */
};