/* Learned port. */
union {
+ void *p;
int i;
} port;
};
* 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. */
uint16_t vlan, tag_type *);
/* Flushing. */
+void mac_learning_expire(struct mac_learning *, struct mac_entry *);
void mac_learning_flush(struct mac_learning *);
#endif /* mac-learning.h */