net/layer/ethernet.h header reference
[Abstract network stack module]
The source code of this header can be browsed online.
Description [link]
this header defines network layer API for ethernet physical layer. Its implementations are device-specific.
Members [link]
Type [link]
Function [link]
- struct net_ethernet_delegate_vtable_s * net_ethernet_delegate_vtable_s_from_base(void *x)
Macro [link]
Members detail [link]
#define NET_LAYER_ETHERNET [link]
This macro is declared in net/layer/ethernet.h source file, line 40.
Network layer ID for ethernet.
#define NET_LAYER_ETHERNET_H_ [link]
This macro is declared in net/layer/ethernet.h source file, line 21.
struct net_ethernet_delegate_vtable_s [link]
This struct is declared in net/layer/ethernet.h source file, line 47.
this struct is a vtable for an ethernet network layer.
Field | Description |
---|---|
struct net_layer_delegate_vtable_s base; | |
void (*link_changed)(void *delegate, struct net_layer_s *layer, bool_t connected) ; | this variable is called when the link-layer status of the network device changes. |
struct net_ethernet_delegate_vtable_s * net_ethernet_delegate_vtable_s_from_base(void *x) [link]
This function is declared in net/layer/ethernet.h source file, line 57.