summaryrefslogtreecommitdiff
path: root/cesar/cp2/msg/test/src/cl_stub.c
diff options
context:
space:
mode:
Diffstat (limited to 'cesar/cp2/msg/test/src/cl_stub.c')
-rw-r--r--cesar/cp2/msg/test/src/cl_stub.c27
1 files changed, 14 insertions, 13 deletions
diff --git a/cesar/cp2/msg/test/src/cl_stub.c b/cesar/cp2/msg/test/src/cl_stub.c
index 6c24a2ba02..e9ff2f1556 100644
--- a/cesar/cp2/msg/test/src/cl_stub.c
+++ b/cesar/cp2/msg/test/src/cl_stub.c
@@ -9,17 +9,18 @@
* \file cl/cl_mactotei.h
* \brief mac to tei table interface between the CL and the CP
* \ingroup cl
- *
- */
+ *
+ */
#include "common/std.h"
#include "cl/cl_mactotei.h"
#include "lib/bitstream.h"
+#include <string.h>
/**
* 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
+ *
+ * \return a pointer to the new block to be fill with the mac to tei table
* data
*/
cl_mactotei_blk_t *
@@ -34,7 +35,7 @@ cl_mactotei_new (void)
/**
* 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.
@@ -65,12 +66,12 @@ void cl_mactotei_addr_add (cl_mactotei_blk_t *table, mac_t mac_addr,
/**
* Request the CL to copy all the data corresponding to the tag.
- *
+ *
* \param ctx the cl context.
* \param table the mactotei new table to fill
* \param tag the tag to copy
*/
-void
+void
cl_mactotei_copy_tag (cl_t *ctx,
cl_mactotei_blk_t *table, u8 tag)
{
@@ -78,13 +79,13 @@ cl_mactotei_copy_tag (cl_t *ctx,
/**
* Request the CL to copy all the data corresponding to the tag and the tei.
- *
+ *
* \param ctx the cl context.
* \param table the mactotei new table to fill
* \param tei the tei to copy.
* \param tag the tag to copy
*/
-void
+void
cl_mactotei_copy_tei_and_tag (cl_t *ctx,
cl_mactotei_blk_t *table, u8 tei, u8 tag)
{
@@ -92,9 +93,9 @@ cl_mactotei_copy_tei_and_tag (cl_t *ctx,
/**
* Request the CL to use the new table and remove the old one.
- *
+ *
* \param ctx the CL context
- * \param table the new table to use.
+ * \param table the new table to use.
*/
void
cl_mactotei_use_table (cl_t *ctx, cl_mactotei_blk_t *table)
@@ -102,14 +103,14 @@ cl_mactotei_use_table (cl_t *ctx, cl_mactotei_blk_t *table)
dbg_assert (ctx);
dbg_assert (table);
- bitstream_memcpy ((u8 *) ctx, (u8 *)table, 512) ;
+ memcpy ((u8 *) ctx, (u8 *)table, 512) ;
blk_release (table);
}
/**
* Release the complete table from the memory.
- *
+ *
* \param ctx the convergence layer context
*/
void cl_mactotei_release_table (cl_t *ctx)