mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-05 22:50:14 +00:00
lib, zebra: Fix overlapping message types
We had duplicate message id's. Shit's broke yo. Fix. I have no idea how this properly worked. Signed-off-by: Donald Sharp <sharpd@nvidia.com>
This commit is contained in:
parent
6a684109ae
commit
aab4eca1c0
@ -389,14 +389,13 @@ struct zclient {
|
||||
/* Backup nexthops are present */
|
||||
#define ZAPI_MESSAGE_BACKUP_NEXTHOPS 0x40
|
||||
#define ZAPI_MESSAGE_NHG 0x80
|
||||
|
||||
/*
|
||||
* This should only be used by a DAEMON that needs to communicate
|
||||
* the table being used is not in the VRF. You must pass the
|
||||
* default vrf, else this will be ignored.
|
||||
*/
|
||||
#define ZAPI_MESSAGE_TABLEID 0x0080
|
||||
#define ZAPI_MESSAGE_SRTE 0x0100
|
||||
#define ZAPI_MESSAGE_TABLEID 0x0100
|
||||
#define ZAPI_MESSAGE_SRTE 0x0200
|
||||
|
||||
#define ZSERV_VERSION 6
|
||||
/* Zserv protocol message header */
|
||||
|
@ -2748,7 +2748,7 @@ static void _route_entry_dump_nh(const struct route_entry *re,
|
||||
if (nexthop->weight)
|
||||
snprintf(wgt_str, sizeof(wgt_str), "wgt %d,", nexthop->weight);
|
||||
|
||||
zlog_debug("%s: %s %s[%u] vrf %s(%u) %s%s with flags %s%s%s%s%s",
|
||||
zlog_debug("%s: %s %s[%u] vrf %s(%u) %s%s with flags %s%s%s%s%s%s%s%s",
|
||||
straddr, (nexthop->rparent ? " NH" : "NH"), nhname,
|
||||
nexthop->ifindex, vrf ? vrf->name : "Unknown",
|
||||
nexthop->vrf_id,
|
||||
@ -2767,7 +2767,13 @@ static void _route_entry_dump_nh(const struct route_entry *re,
|
||||
: ""),
|
||||
(CHECK_FLAG(nexthop->flags, NEXTHOP_FLAG_DUPLICATE)
|
||||
? "DUPLICATE "
|
||||
: ""));
|
||||
: ""),
|
||||
(CHECK_FLAG(nexthop->flags, NEXTHOP_FLAG_RNH_FILTERED)
|
||||
? "FILTERED " : ""),
|
||||
(CHECK_FLAG(nexthop->flags, NEXTHOP_FLAG_HAS_BACKUP)
|
||||
? "BACKUP " : ""),
|
||||
(CHECK_FLAG(nexthop->flags, NEXTHOP_FLAG_SRTE)
|
||||
? "SRTE " : ""));
|
||||
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user