summaryrefslogtreecommitdiff
path: root/cesar/cl/inc/cl.h
blob: 9b0a0f50d9292cc5bb51b37817dd522b60c76b2c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#ifndef CL_INC_CL_H_
#define CL_INC_CL_H_

/* Cesar project {{{
 *
 * Copyright (C) 2007 Spidcom
 *
 * <<<Licence>>>
 *
 * }}} */
/**
 * \file    cl/inc/cl.h
 * \brief   private function for the CL
 * \ingroup cl/inc
 *
 */

#include "cl/cl_mactotei.h"
#include "cl/inc/context.h"

/**
 * Init the MME module of the CL.
 *
 * \param  ctx  the MME context.
 */
void cl_mme_init (cl_mme_t *ctx);

/**
 * Switch the old mactotei table with the new one.
 *
 * \param  cl  the convergence layer context
 * \param  table  the table to switch
 */
void cl_mactotei_switch_table (cl_t *cl, cl_mactotei_table_t *table);

/**
 * Find a mac address in the table using a dichotomy search
 *
 * \param  cl  the convergence layer context.
 * \param  mac  the mac address to find
 * \return  the TEI corresponding to the mac address if known otherwise it
 * returns 0xff a broadcast TEI (see HPAV section 5.3.1.2)
 */
uint cl_mactotei_table_find_tei_from_mac (cl_t *cl, mac_t mac);

#endif /*CL_INC_CL_H_*/