EDGESEC  0.1.0-alpha.0+sha.ca29a8277b72f80785649ea9ef9cd7edf642d939
Secure router - reference implementation
supervisor_utils.h
Go to the documentation of this file.
1 
11 #ifndef SUPERVISOR_UTILS_H
12 #define SUPERVISOR_UTILS_H
13 
14 #include <inttypes.h>
15 
16 #include "supervisor_config.h"
17 
19 
29 int allocate_vlan(struct supervisor_context *context, uint8_t *mac_addr,
30  enum VLAN_ALLOCATION_TYPE type);
31 
40 int save_mac_mapper(struct supervisor_context *context, struct mac_conn conn);
41 #endif
MAC connection structure.
Definition: mac_mapper.h:57
Supervisor structure definition.
Definition: supervisor_config.h:45
File containing the definition of the supervisor service structure.
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.
Definition: supervisor_utils.c:24
VLAN_ALLOCATION_TYPE
Definition: supervisor_utils.h:18
@ VLAN_ALLOCATE_HASH
Definition: supervisor_utils.h:18
@ VLAN_ALLOCATE_RANDOM
Definition: supervisor_utils.h:18
int save_mac_mapper(struct supervisor_context *context, struct mac_conn conn)
Save a MAC entry into the mapper.
Definition: supervisor_utils.c:78