mirror of
https://github.com/Hizenberg469/Routing-Table-Manager.git
synced 2026-04-20 02:12:25 +03:00
RTM Project
This commit is contained in:
26
Mac-List/mac-list.h
Normal file
26
Mac-List/mac-list.h
Normal file
@@ -0,0 +1,26 @@
|
||||
#ifndef MAC_LIST_H
|
||||
#define MAC_LIST_H
|
||||
|
||||
#define MAC_ADDR_LEN 18
|
||||
|
||||
typedef struct dll_ dll_t;
|
||||
typedef struct dll_node_ dll_node_t;
|
||||
|
||||
/*
|
||||
* Data structure defination for MAC
|
||||
* address list entry.
|
||||
*/
|
||||
typedef struct mac_list_entry_ {
|
||||
|
||||
char mac[MAC_ADDR_LEN];
|
||||
|
||||
}mac_list_entry_t;
|
||||
|
||||
/*
|
||||
* Public API's for MAC list functionality.
|
||||
*/
|
||||
|
||||
void display_mac_list(const dll_t* mac_list);
|
||||
dll_node_t* find_mac(const dll_t* mac_list, const char* mac);
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user