diff options
| author | Mark Stapp <mjs@voltanet.io> | 2020-08-20 14:50:38 -0400 |
|---|---|---|
| committer | Mark Stapp <mjs@voltanet.io> | 2020-08-20 14:50:38 -0400 |
| commit | 38fd3eda40035ae50e51a7012587dfdf372091e4 (patch) | |
| tree | 3222100017b2b4d945a696952bee589b08a19f95 /lib/zclient.h | |
| parent | f07254d0f526ea7933c7589cda98e82e2e41c885 (diff) | |
lib: zapi nexthop sort fixes
The sorting for zapi nexthops in zapi routes needs to match
the sorting of nexthops done in zebra. Ensure all zapi_nexthop
attributes are included in the sort.
Signed-off-by: Mark Stapp <mjs@voltanet.io>
Diffstat (limited to 'lib/zclient.h')
| -rw-r--r-- | lib/zclient.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/zclient.h b/lib/zclient.h index dab384d5ec..c6a67790a1 100644 --- a/lib/zclient.h +++ b/lib/zclient.h @@ -391,6 +391,11 @@ struct zmsghdr { } __attribute__((packed)); #define ZAPI_HEADER_CMD_LOCATION offsetof(struct zmsghdr, command) +/* + * ZAPI nexthop. Note that these are sorted when associated with ZAPI routes, + * and that sorting must be aligned with the sorting of nexthops in + * lib/nexthop.c. Any new fields must be accounted for in zapi_nexthop_cmp(). + */ struct zapi_nexthop { enum nexthop_types_t type; vrf_id_t vrf_id; |
