mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-07 17:18:56 +00:00
Quagga: Fix memcmp usage for MPLS
Signed-off-by: Daniel Walton <dwalton@cumulusnetworks.com> Ticket: CM-6611 Reviewed By: Trivial Testing Done: Manual in SE-1
This commit is contained in:
parent
3ab18ff268
commit
ea6bebb83c
@ -604,14 +604,14 @@ nhlfe_nhop_match (zebra_nhlfe_t *nhlfe, enum nexthop_types_t gtype,
|
|||||||
union g_addr *gate, char *ifname, ifindex_t ifindex)
|
union g_addr *gate, char *ifname, ifindex_t ifindex)
|
||||||
{
|
{
|
||||||
struct nexthop *nhop;
|
struct nexthop *nhop;
|
||||||
u_char cmp = -1;
|
int cmp = 1;
|
||||||
|
|
||||||
nhop = nhlfe->nexthop;
|
nhop = nhlfe->nexthop;
|
||||||
if (!nhop)
|
if (!nhop)
|
||||||
return -1;
|
return 1;
|
||||||
|
|
||||||
if (nhop->type != gtype)
|
if (nhop->type != gtype)
|
||||||
return -1;
|
return 1;
|
||||||
|
|
||||||
switch (nhop->type)
|
switch (nhop->type)
|
||||||
{
|
{
|
||||||
@ -1086,10 +1086,10 @@ static int
|
|||||||
snhlfe_match (zebra_snhlfe_t *snhlfe, enum nexthop_types_t gtype,
|
snhlfe_match (zebra_snhlfe_t *snhlfe, enum nexthop_types_t gtype,
|
||||||
union g_addr *gate, char *ifname, ifindex_t ifindex)
|
union g_addr *gate, char *ifname, ifindex_t ifindex)
|
||||||
{
|
{
|
||||||
u_char cmp = -1;
|
int cmp = 1;
|
||||||
|
|
||||||
if (snhlfe->gtype != gtype)
|
if (snhlfe->gtype != gtype)
|
||||||
return -1;
|
return 1;
|
||||||
|
|
||||||
switch (snhlfe->gtype)
|
switch (snhlfe->gtype)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user