summaryrefslogtreecommitdiff
path: root/cesar/cl/cl_mactotei.h
diff options
context:
space:
mode:
Diffstat (limited to 'cesar/cl/cl_mactotei.h')
-rw-r--r--cesar/cl/cl_mactotei.h23
1 files changed, 22 insertions, 1 deletions
diff --git a/cesar/cl/cl_mactotei.h b/cesar/cl/cl_mactotei.h
index f6e416b588..d403861b45 100644
--- a/cesar/cl/cl_mactotei.h
+++ b/cesar/cl/cl_mactotei.h
@@ -39,8 +39,10 @@ typedef struct mac_lookup_block_header_t cl_mactotei_blk_t;
*/
struct cl_mactotei_entry_t
{
+ /** A MAC address*/
mac_t mac;
- u8 tei;
+ /** A TEI */
+ uint tei;
u8 tag;
};
typedef struct cl_mactotei_entry_t cl_mactotei_entry_t;
@@ -168,6 +170,25 @@ void
cl_mactotei_cancel (cl_mactotei_blk_t *table);
/**
+ * Add a temporary entry to the bridge table (if not already existing).
+ * \param cl the CL context.
+ * \param tei the TEI.
+ * \param mac the source MAC address.
+ */
+void
+cl_mactotei_add (cl_t *ctx, uint tei, mac_t mac);
+
+/**
+ * Get TEI associated to a given MAC address of a packet
+ * \param cl the CL context.
+ * \param mac the source MAC address of a packet
+ *
+ * This function is called every time CCo has to send_sack
+ */
+uint
+cl_mactotei_get_tei (cl_t *ctx, mac_t mac);
+
+/*
* This function will return the current amount of entry in the mactotei table
* (Used by VS_GET_MACTOTEI).
* \param ctx the CL context.