summaryrefslogtreecommitdiff
path: root/cesar/cl/stub
diff options
context:
space:
mode:
Diffstat (limited to 'cesar/cl/stub')
-rw-r--r--cesar/cl/stub/Module5
-rw-r--r--cesar/cl/stub/src/cl_eoc_mactotei.c62
-rw-r--r--cesar/cl/stub/src/mcast.c26
3 files changed, 92 insertions, 1 deletions
diff --git a/cesar/cl/stub/Module b/cesar/cl/stub/Module
index 2ad195744b..20fad46b15 100644
--- a/cesar/cl/stub/Module
+++ b/cesar/cl/stub/Module
@@ -1 +1,4 @@
-SOURCES:=cl.c cl_mactotei.c bridge_table.c brg_rx.c
+SOURCES:=cl.c cl_mactotei.c bridge_table.c brg_rx.c mcast.c
+ifeq ($(CONFIG_CL_EOC_ROUTE),y)
+SOURCES += cl_eoc_mactotei.c
+endif
diff --git a/cesar/cl/stub/src/cl_eoc_mactotei.c b/cesar/cl/stub/src/cl_eoc_mactotei.c
new file mode 100644
index 0000000000..fadac7182f
--- /dev/null
+++ b/cesar/cl/stub/src/cl_eoc_mactotei.c
@@ -0,0 +1,62 @@
+/* Cesar project {{{
+ *
+ * Copyright (C) 2009 Spidcom
+ *
+ * <<<Licence>>>
+ *
+ * }}} */
+/**
+ * \file cl/src/cl_eoc_mactotei.c
+ * \brief MAC to TEI mapping for the Convergence Layer
+ * \ingroup cl
+ *
+ */
+#include "common/std.h"
+#include "cl/inc/context.h"
+#include "cl/cl_eoc_mactotei.h"
+#include "hal/arch/arch.h"
+#include "lib/stats.h"
+
+bool
+cl_eoc_mactotei_entry_insert (cl_t *ctx, mac_t mac_addr, uint tei)
+ __attribute__((weak));
+
+bool
+cl_eoc_mactotei_entry_insert (cl_t *ctx, mac_t mac_addr, uint tei)
+{
+ return true;
+}
+
+uint
+cl_eoc_mactotei_find_tei (cl_t *ctx, mac_t mac_addr) __attribute__((weak));
+
+uint
+cl_eoc_mactotei_find_tei (cl_t *ctx, mac_t mac_addr)
+{ return MAC_TEI_UNASSOCIATED; }
+
+void
+cl_eoc_mactotei_entry_remove (cl_t *ctx, uint tei) __attribute__((weak));
+
+void
+cl_eoc_mactotei_entry_remove (cl_t *ctx, uint tei)
+{
+ dbg_assert (MAC_TEI_IS_STA (tei));
+}
+
+void
+cl_eoc_mactotei_periodic_action (cl_t *ctx)
+{
+ dbg_assert (ctx);
+}
+
+uint
+cl_eoc_mactotei_snapshot_create (cl_t *ctx)
+{
+ return 0;
+}
+
+void
+cl_eoc_mactotei_snapshot_get_mac_tei (cl_t *ctx, uint index, mac_t *mac,
+ uint *tei)
+{
+}
diff --git a/cesar/cl/stub/src/mcast.c b/cesar/cl/stub/src/mcast.c
new file mode 100644
index 0000000000..a3a4e99b05
--- /dev/null
+++ b/cesar/cl/stub/src/mcast.c
@@ -0,0 +1,26 @@
+/* Cesar project {{{
+ *
+ * Copyright (C) 2011 Spidcom
+ *
+ * <<<Licence>>>
+ *
+ * }}} */
+/**
+ * \file cl/stub/src/mcast.c
+ * \brief Stub the mcast functions
+ * \ingroup cl
+ *
+ */
+#include "common/std.h"
+#include "cl/cl.h"
+#include "cl/mcast.h"
+
+igmp_groups_t*
+cl_get_igmp_groups (cl_t *ctx) __attribute__((weak));
+
+igmp_groups_t*
+cl_get_igmp_groups (cl_t *ctx)
+{
+ dbg_assert (ctx);
+ return NULL;
+};