summaryrefslogtreecommitdiff
path: root/cesar/cl/stub/src/cl_mactotei.c
blob: 386133bc758585dea4a7a48b7211875277b6ecdb (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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
/* Cesar project {{{
 *
 * Copyright (C) 2008 Spidcom
 *
 * <<<Licence>>>
 *
 * }}} */
/**
 * \file    src/cl_mactotei.c
 * \brief   « brief description »
 * \ingroup « module »
 *
 * « long description »
 */
#include "common/std.h"

#include "cl/cl_mactotei.h"

cl_mactotei_blk_t *
cl_mactotei_new (void) __attribute__((weak));

cl_mactotei_blk_t *
cl_mactotei_new (void)
{
    return NULL;
}

void
cl_mactotei_addr_add (cl_mactotei_blk_t *table, mac_t mac_addr,
                      uint tei, uint tag) __attribute__((weak));

void
cl_mactotei_addr_add (cl_mactotei_blk_t *table, mac_t mac_addr,
                      uint tei, uint tag)
{
}

void
cl_mactotei_copy_tei_and_tag (cl_t *ctx, cl_mactotei_blk_t *table,
                              uint tei, uint tag) __attribute__((weak));

void
cl_mactotei_copy_tei_and_tag (cl_t *ctx, cl_mactotei_blk_t *table,
                              uint tei, uint tag)
{
}

void
cl_mactotei_copy_tei (cl_t *ctx, cl_mactotei_blk_t *table,
                      uint tei)
__attribute__((weak));

void
cl_mactotei_copy_tei (cl_t *ctx, cl_mactotei_blk_t *table,
                      uint tei) {}

uint
cl_mactotei_table_find_tei_from_mac (cl_t *ctx, mac_t mac)
    __attribute__((weak));

uint
cl_mactotei_table_find_tei_from_mac (cl_t *ctx, mac_t mac)
{
    return MAC_TEI_UNASSOCIATED;
}

uint
cl_mactotei_table_find_tei_and_tag_from_mac (cl_t *ctx, mac_t mac, uint *tag)
    __attribute__((weak));

uint
cl_mactotei_table_find_tei_and_tag_from_mac (cl_t *ctx, mac_t mac, uint *tag)
{
    return MAC_TEI_UNASSOCIATED;
}

void
cl_mactotei_use_table (cl_t *ctx, cl_mactotei_blk_t *table)
    __attribute__((weak));

void
cl_mactotei_use_table (cl_t *ctx, cl_mactotei_blk_t *table)
{
}

void cl_mactotei_release_table (cl_t *ctx) __attribute__((weak));

void cl_mactotei_release_table (cl_t *ctx)
{
}

void
cl_mactotei_copy_except_tag (cl_t *ctx, cl_mactotei_blk_t *table, uint tag)
    __attribute__((weak));

void
cl_mactotei_copy_except_tag (cl_t *ctx, cl_mactotei_blk_t *table, uint tag)
{
}

void
cl_mactotei_copy_except_tei (cl_t *ctx, cl_mactotei_blk_t *table, uint tei)
__attribute__((weak));

void
cl_mactotei_copy_except_tei (cl_t *ctx, cl_mactotei_blk_t *table, uint tei)
{
}

void
cl_mactotei_cancel (cl_mactotei_blk_t *table) __attribute__((weak));

void
cl_mactotei_cancel (cl_mactotei_blk_t *table)
{
}

uint
cl_mactotei_table_size (cl_t *ctx) __attribute__((weak));

uint
cl_mactotei_table_size (cl_t *ctx)
{
    return 0;
}

void
cl_mactotei_table_get_entry (cl_t *ctx, uint index,
                             cl_mactotei_entry_t* data) __attribute__((weak));

void
cl_mactotei_table_get_entry (cl_t *ctx, uint index,
                             cl_mactotei_entry_t* data)
{
}