EDGESEC
0.1.0-alpha.0+sha.ca29a8277b72f80785649ea9ef9cd7edf642d939
Secure router - reference implementation
|
File containing the implementation of the supervisor utils. More...
#include <inttypes.h>
#include "../utils/hash.h"
#include "../utils/os.h"
#include "sqlite_macconn_writer.h"
#include "supervisor_config.h"
#include "supervisor_utils.h"
Functions | |
int | allocate_vlan (struct supervisor_context *context, uint8_t *mac_addr, enum VLAN_ALLOCATION_TYPE type) |
Allocates a VLAN ID for a given MAC address. More... | |
int | save_mac_mapper (struct supervisor_context *context, struct mac_conn conn) |
Save a MAC entry into the mapper. More... | |
File containing the implementation of the supervisor utils.
int allocate_vlan | ( | struct supervisor_context * | context, |
uint8_t * | mac_addr, | ||
enum VLAN_ALLOCATION_TYPE | type | ||
) |
Allocates a VLAN ID for a given MAC address.
context[in] | The supervisor context |
mac_addr[in] | The MAC address |
type[in] | The VLAN allocation type |
int save_mac_mapper | ( | struct supervisor_context * | context, |
struct mac_conn | conn | ||
) |
Save a MAC entry into the mapper.
context | The supervisor context |
conn | The MAC connection structure |