Skip to content

Commit

Permalink
vrrp: fix IPROUTE_ADD values
Browse files Browse the repository at this point in the history
IPROUTE_ADD was a value in an enum (23) in vrrp_iproute.h, but later
in that file IPROUTE_ADD was defined to be 1. This caused
IPROUTE_BIT_ADD to have the wrong value.

This commit now changes the name in the enum to be IPROUTE_ADD_ROUTE.

Signed-off-by: Quentin Armitage <[email protected]>
  • Loading branch information
pqarmitage committed Jun 9, 2024
1 parent a205e87 commit 9309a4b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions keepalived/include/vrrp_iproute.h
Original file line number Diff line number Diff line change
Expand Up @@ -154,8 +154,8 @@ enum ip_route {
IPROUTE_PREF,
IPROUTE_FASTOPEN_NO_COOKIE,
IPROUTE_TTL_PROPAGATE,
IPROUTE_ADD,
IPROUTE_APPEND
IPROUTE_ADD_ROUTE,
IPROUTE_APPEND_ROUTE
};

#define IPROUTE_BIT_DSFIELD (1<<IPROUTE_DSFIELD)
Expand All @@ -181,8 +181,8 @@ enum ip_route {
#define IPROUTE_BIT_PREF (1<<IPROUTE_PREF)
#define IPROUTE_BIT_FASTOPEN_NO_COOKIE (1<<IPROUTE_FASTOPEN_NO_COOKIE)
#define IPROUTE_BIT_TTL_PROPAGATE (1<<IPROUTE_TTL_PROPAGATE)
#define IPROUTE_BIT_ADD (1<<IPROUTE_ADD)
#define IPROUTE_BIT_APPEND (1<<IPROUTE_APPEND)
#define IPROUTE_BIT_ADD (1<<IPROUTE_ADD_ROUTE)
#define IPROUTE_BIT_APPEND (1<<IPROUTE_APPEND_ROUTE)

typedef struct _ip_route {
ip_address_t *dst;
Expand Down

0 comments on commit 9309a4b

Please sign in to comment.