diff options
author | Hiroki Shirokura <slank.dev@gmail.com> | 2021-04-23 14:46:07 +0200 |
---|---|---|
committer | Mark Stapp <mjs@voltanet.io> | 2021-06-02 16:24:48 +0200 |
commit | c60c1ade86c1c999f5219c0ebc35374acddb661c (patch) | |
tree | c6ce5abfb04ada0bd371990760691779d925d95b /lib/zclient.h | |
parent | zebra: early return on seg6local nlmsg crafting (diff) | |
download | frr-c60c1ade86c1c999f5219c0ebc35374acddb661c.tar.xz frr-c60c1ade86c1c999f5219c0ebc35374acddb661c.zip |
*: delete ZEBRA_FLAG_SEG6*_ROUTE and add ZAPI_NEXTHOP_FLAG_SEG6*
https://github.com/FRRouting/frr/pull/5865#discussion_r597670225
As this comment says. ZEBRA_FLAG_XXX should not have been used.
To communicate SRv6 Route Information. A simple Nexthop Flag would
have been sufficient for SRv6 information. And I fixed the whole
thing that way.
Signed-off-by: Hiroki Shirokura <slank.dev@gmail.com>
Diffstat (limited to 'lib/zclient.h')
-rw-r--r-- | lib/zclient.h | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/lib/zclient.h b/lib/zclient.h index c41d25133..48de3425b 100644 --- a/lib/zclient.h +++ b/lib/zclient.h @@ -488,6 +488,8 @@ struct zapi_nexthop { #define ZAPI_NEXTHOP_FLAG_LABEL 0x02 #define ZAPI_NEXTHOP_FLAG_WEIGHT 0x04 #define ZAPI_NEXTHOP_FLAG_HAS_BACKUP 0x08 /* Nexthop has a backup */ +#define ZAPI_NEXTHOP_FLAG_SEG6 0x10 +#define ZAPI_NEXTHOP_FLAG_SEG6LOCAL 0x20 /* * ZAPI Nexthop Group. For use with protocol creation of nexthop groups. @@ -572,16 +574,6 @@ struct zapi_route { * offload situation. */ #define ZEBRA_FLAG_OFFLOAD_FAILED 0x200 -/* - * This flag tells Zebra that the route is a seg6 route and should - * be treated specially. - */ -#define ZEBRA_FLAG_SEG6_ROUTE 0x400 -/* - * This flag tells Zebra that the route is a seg6local route and - * should be treated specially. - */ -#define ZEBRA_FLAG_SEG6LOCAL_ROUTE 0x800 /* The older XXX_MESSAGE flags live here */ uint32_t message; |