summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--cesar/cp/sta/mgr/inc/net.h9
-rw-r--r--cesar/cp/sta/mgr/src/sta_mgr.c4
-rw-r--r--cesar/test_general/dataplane/src/test_dataplane.c4
3 files changed, 4 insertions, 13 deletions
diff --git a/cesar/cp/sta/mgr/inc/net.h b/cesar/cp/sta/mgr/inc/net.h
index cdc91d4b86..5439efd320 100644
--- a/cesar/cp/sta/mgr/inc/net.h
+++ b/cesar/cp/sta/mgr/inc/net.h
@@ -20,15 +20,6 @@
#include "lib/set.h"
#include "lib/slab.h"
-/** Enumerator for the mac to tei table in the CL. */
-enum cp_mactotei_tags_t
-{
- CP_MACTOTEI_TAGS_LIST,
- CP_MACTOTEI_TAGS_BRIDGE,
- CP_MACTOTEI_TAGS_MAX
-};
-
-
struct cp_net_t
{
/** AVLN's SNID. */
diff --git a/cesar/cp/sta/mgr/src/sta_mgr.c b/cesar/cp/sta/mgr/src/sta_mgr.c
index 86c6514b4d..b884d2ee91 100644
--- a/cesar/cp/sta/mgr/src/sta_mgr.c
+++ b/cesar/cp/sta/mgr/src/sta_mgr.c
@@ -786,10 +786,10 @@ cp_sta_mgr_commit_to_dataplane (cp_t *ctx)
cp_sta_private_t *sta_private = (cp_sta_private_t *) sta;
// Copy all the bridge table from the previous list.
cl_mactotei_copy_tei_and_tag (ctx->cl, mactotei, sta_private->tei,
- CP_MACTOTEI_TAGS_BRIDGE);
+ sta_private->tei);
// Add the current station.
cl_mactotei_addr_add (mactotei, sta_private->mac_address,
- sta_private->tei, CP_MACTOTEI_TAGS_LIST);
+ sta_private->tei, MAC_TEI_UNASSOCIATED);
}
diff --git a/cesar/test_general/dataplane/src/test_dataplane.c b/cesar/test_general/dataplane/src/test_dataplane.c
index c0ca3f3aa6..547c78a9cf 100644
--- a/cesar/test_general/dataplane/src/test_dataplane.c
+++ b/cesar/test_general/dataplane/src/test_dataplane.c
@@ -153,8 +153,8 @@ test_dataplane_add_mac_fcall (fcall_ctx_t *fcall, fcall_param_t **param,
/* Add MAC to MAC to TEI table. */
cl_mactotei_blk_t *table;
table = cl_mactotei_new ();
- cl_mactotei_copy_except_tag (ctx->cl, table, 2);
- cl_mactotei_addr_add (table, mac, tei, 1);
+ cl_mactotei_copy_except_tag (ctx->cl, table, MAC_TEI_BCAST);
+ cl_mactotei_addr_add (table, mac, tei, tei);
cl_mactotei_use_table (ctx->cl, table);
/* Return. */
fcall_param_reset (*param);