|
EDGESEC
0.1.0-alpha.0+sha.ca29a8277b72f80785649ea9ef9cd7edf642d939
Secure router - reference implementation
|
File containing the implementation of the bridge creation functions. More...
Functions | |
| struct bridge_mac_list * | init_bridge_list (void) |
| Init the MAC brideg address list for bridge assignment. More... | |
| void | bridge_mac_list_free (struct bridge_mac_list *e) |
| void | free_bridge_list (struct bridge_mac_list *ml) |
| Free MAC bridge address list. More... | |
| bool | compare_edge (struct bridge_mac_list *e, const uint8_t *mac_addr_left, const uint8_t *mac_addr_right) |
| struct bridge_mac_list_tuple | get_bridge_mac (struct bridge_mac_list *ml, const uint8_t *mac_addr_left, const uint8_t *mac_addr_right) |
| Get the bridge mac object from a bridge connection. More... | |
| int | check_bridge_exist (struct bridge_mac_list *ml, const uint8_t *mac_addr_left, const uint8_t *mac_addr_right) |
| Check if a bridge exist. More... | |
| int | add_bridge_mac (struct bridge_mac_list *ml, const uint8_t *mac_addr_left, const uint8_t *mac_addr_right) |
| Add bridge connection to the MAC bridge address list. More... | |
| int | remove_bridge_mac (struct bridge_mac_list *ml, const uint8_t *mac_addr_left, const uint8_t *mac_addr_right) |
| Removes a bridge connection from the MAC address list. More... | |
| int | get_src_mac_list (struct bridge_mac_list *ml, const uint8_t *src_addr, UT_array **mac_list_arr) |
| Get the MAC address dst list array for a src MAC address. More... | |
| int | get_all_bridge_edges (struct bridge_mac_list *ml, UT_array **tuple_list_arr) |
| Get the all the bridge edges as tuple list array. More... | |
File containing the implementation of the bridge creation functions.
| int add_bridge_mac | ( | struct bridge_mac_list * | ml, |
| const uint8_t * | mac_addr_left, | ||
| const uint8_t * | mac_addr_right | ||
| ) |
Add bridge connection to the MAC bridge address list.
| ml | The MAC bridge address list |
| mac_addr_left | The MAC address in byte format for left node |
| mac_addr_right | The MAC address in byte format for right node |
| void bridge_mac_list_free | ( | struct bridge_mac_list * | e | ) |
| int check_bridge_exist | ( | struct bridge_mac_list * | ml, |
| const uint8_t * | mac_addr_left, | ||
| const uint8_t * | mac_addr_right | ||
| ) |
Check if a bridge exist.
| ml | The MAC bridge address list |
| mac_addr_left | The MAC address in byte format for left node |
| mac_addr_right | The MAC address in byte format for rigth node |
| bool compare_edge | ( | struct bridge_mac_list * | e, |
| const uint8_t * | mac_addr_left, | ||
| const uint8_t * | mac_addr_right | ||
| ) |
| void free_bridge_list | ( | struct bridge_mac_list * | ml | ) |
Free MAC bridge address list.
| ml | The MAC bridge address list |
| int get_all_bridge_edges | ( | struct bridge_mac_list * | ml, |
| UT_array ** | tuple_list_arr | ||
| ) |
Get the all the bridge edges as tuple list array.
| ml | The MAC bridge address list |
| tuple_list_arr | The returned array of tuples |
| struct bridge_mac_list_tuple get_bridge_mac | ( | struct bridge_mac_list * | ml, |
| const uint8_t * | mac_addr_left, | ||
| const uint8_t * | mac_addr_right | ||
| ) |
Get the bridge mac object from a bridge connection.
| ml | The MAC bridge address list |
| mac_addr_left | The MAC address in byte format for left node |
| mac_addr_right | The MAC address in byte format for rigth node |
| int get_src_mac_list | ( | struct bridge_mac_list * | ml, |
| const uint8_t * | src_addr, | ||
| UT_array ** | mac_list_arr | ||
| ) |
Get the MAC address dst list array for a src MAC address.
| ml | The MAC bridge address list |
| src_addr | The source MAC address in byte format |
| mac_list_arr | The returned array of MAC addresses |
| struct bridge_mac_list* init_bridge_list | ( | void | ) |
Init the MAC brideg address list for bridge assignment.
| int remove_bridge_mac | ( | struct bridge_mac_list * | ml, |
| const uint8_t * | mac_addr_left, | ||
| const uint8_t * | mac_addr_right | ||
| ) |
Removes a bridge connection from the MAC address list.
| ml | The MAC bridge address list |
| mac_addr_left | The MAC address in byte format for left node |
| mac_addr_right | The MAC address in byte format for right node |