From 01f6f0f933422cfdf9665ed2caf167fc4e5a1e53 Mon Sep 17 00:00:00 2001 From: laranjeiro Date: Thu, 25 Oct 2007 09:41:50 +0000 Subject: CL data tx done. * Tested. git-svn-id: svn+ssh://pessac/svn/cesar/trunk@885 017c9cb6-072f-447c-8318-d5b54f68fe89 --- cl/cl_mactotei.h | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) (limited to 'cl/cl_mactotei.h') diff --git a/cl/cl_mactotei.h b/cl/cl_mactotei.h index bd6f2ca030..83f8da20d6 100644 --- a/cl/cl_mactotei.h +++ b/cl/cl_mactotei.h @@ -19,4 +19,34 @@ typedef struct cl_mactotei_table_t cl_mactotei_table_t; typedef struct cl_mactotei_blk_t cl_mactotei_blk_t; typedef struct cl_mactotei_t cl_mactotei_t; +/** + * Create a new table to be filled by the CP. + * + * \return a pointer to the new block to be fill with the mac to tei table + * data + */ +cl_mactotei_blk_t *cl_mactotei_new (void); + +/** + * Request the CL to copy all the data without the coresponding one provide in + * this function paramater. + * + * \param table_old the table actually use by the CL + * \param table the mactotei new table to fill + * \param tag the tag to exclude from the copy + */ +void cl_mactotei_copy (cl_mactotei_table_t *table_old, + cl_mactotei_blk_t *table, u8 tag); + +/** + * Add a new tupple of data to the table. + * + * \param table the table pointer to add a new mac to tei correspondance. + * \param mac_addr the mac addr to add + * \param tei the tei corresponding to the STA. + * \param tag the CP tag provide to indentifier a network. + */ +void cl_mactotei_addr_add (cl_mactotei_blk_t *table, mac_t mac_addr, + uint tei, uint tag); + #endif /*CL_MACTOTEI_H_*/ -- cgit v1.2.3