From 33065c43aa9dfcd32d2ef223cf7a1030acc40490 Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Wed, 30 Mar 2011 13:01:36 -0700 Subject: [PATCH] mac-learning: Fix mac_entry_is_grat_arp_locked(). The lock is asserted if its expiration time has not arrived yet, not the reverse. --- lib/mac-learning.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/mac-learning.h b/lib/mac-learning.h index 16c92dbe5..51a7ac738 100644 --- a/lib/mac-learning.h +++ b/lib/mac-learning.h @@ -73,7 +73,7 @@ static inline void mac_entry_set_grat_arp_lock(struct mac_entry *mac) * has ever been asserted or if it has expired. */ static inline bool mac_entry_is_grat_arp_locked(const struct mac_entry *mac) { - return time_now() >= mac->grat_arp_lock; + return time_now() < mac->grat_arp_lock; } /* MAC learning table. */ -- 2.43.0