diff options
author | Ondrej Zajicek (work) <santiago@crfreenet.org> | 2020-12-02 05:02:26 +0100 |
---|---|---|
committer | Ondrej Zajicek (work) <santiago@crfreenet.org> | 2020-12-02 05:02:26 +0100 |
commit | 8cc5bb09e344038a1f8dff96946e05ec80607c93 (patch) | |
tree | 5c7d1f192d4d7654d40282822c639c887aaaffda /filter/data.h | |
parent | 246586771296d1c42a012c06bdc75b36a7ce0b4f (diff) |
Filter: Add 'weight' route attribute
Add 'weight' route attribute that allows to get and set ECMP weight of
nexthops. Similar to 'gw' attribute, it is limited to the first nexthop,
but it is useful for handling BGP multipath, where an ECMP route is
merged from multiple regular routes.
Diffstat (limited to 'filter/data.h')
-rw-r--r-- | filter/data.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/filter/data.h b/filter/data.h index 4ebce73b..a0ec3819 100644 --- a/filter/data.h +++ b/filter/data.h @@ -99,6 +99,7 @@ enum f_sa_code { SA_DEST, SA_IFNAME, SA_IFINDEX, + SA_WEIGHT, } PACKED; /* Static attribute definition (members of struct rta) */ |