diff options
author | Ondrej Zajicek (work) <santiago@crfreenet.org> | 2020-11-19 16:38:39 +0100 |
---|---|---|
committer | Ondrej Zajicek (work) <santiago@crfreenet.org> | 2020-11-19 16:38:39 +0100 |
commit | 3347aaafec5b269637604d1ea5f5969797beadea (patch) | |
tree | 931295840dc79f77de4b204cd42602bec6388a32 /proto/static/static.h | |
parent | df65d519d6a5a7511cc893d2be55399b38b838be (diff) |
Static: Support for multiple routes with the same network
Add support for proper handling of multiple routes with the same network
to the static protocol. Routes are distinguished by internal index, which
is assigned automatically (sequentially for routes within each network).
Having different route preference or igp_metric attribute is optional.
Diffstat (limited to 'proto/static/static.h')
-rw-r--r-- | proto/static/static.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/proto/static/static.h b/proto/static/static.h index f736996c..af714b72 100644 --- a/proto/static/static.h +++ b/proto/static/static.h @@ -40,6 +40,7 @@ struct static_route { struct static_route *mp_head; /* First nexthop of this route */ struct static_route *mp_next; /* Nexthops for multipath routes */ struct f_line *cmds; /* List of commands for setting attributes */ + uint index; /* Distinguish different routes with same net */ byte dest; /* Destination type (RTD_*) */ byte state; /* State of route announcement (SRS_*) */ byte active; /* Next hop is active (nbr/iface/BFD available) */ |