Skip to content

Commit

Permalink
fix incoming pkt check
Browse files Browse the repository at this point in the history
when an incoming vrrp is
received, we have been
looking for the local iface's
IP network instead of IP address.
Fixed in this commit

Signed-off-by: Paul Wekesa <[email protected]>
  • Loading branch information
Paul-weqe authored and rwestphal committed Nov 27, 2024
1 parent 084d64f commit 6aebe80
Show file tree
Hide file tree
Showing 4 changed files with 1,740 additions and 6 deletions.
7 changes: 1 addition & 6 deletions holo-vrrp/src/events.rs
Original file line number Diff line number Diff line change
Expand Up @@ -195,12 +195,7 @@ fn handle_vrrp_actions(interface: &mut Interface, action: VrrpAction) {
else if pkt.priority > instance.config.priority
|| ((pkt.priority == instance.config.priority)
&& src
> interface
.system
.addresses
.first()
.unwrap()
.network())
> interface.system.addresses.first().unwrap().ip())
{
interface.change_state(
vrid,
Expand Down
Loading

0 comments on commit 6aebe80

Please sign in to comment.