X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=lib%2Fmac-learning.h;h=6a2d30b4b935fa4f4653281d5af4dcbca9413702;hb=f35409904bc4a0a695a4aecb2435933d8a8187fe;hp=aa164d3ba762bc4b66534ec8090698cedf36e27c;hpb=a14bc59fb8f27db193d74662dc9c5cb8237177ef;p=openvswitch diff --git a/lib/mac-learning.h b/lib/mac-learning.h index aa164d3b..6a2d30b4 100644 --- a/lib/mac-learning.h +++ b/lib/mac-learning.h @@ -28,6 +28,9 @@ #define MAC_MAX 1024 +/* Time, in seconds, before expiring a mac_entry due to inactivity. */ +#define MAC_ENTRY_IDLE_TIME 60 + /* A MAC learning table entry. */ struct mac_entry { struct list hash_node; /* Element in a mac_learning 'table' list. */ @@ -39,6 +42,8 @@ struct mac_entry { tag_type tag; /* Tag for this learning entry. */ }; +int mac_entry_age(const struct mac_entry *); + /* MAC learning table. */ struct mac_learning { struct list free; /* Not-in-use entries. */