46 |
across all types of interfaces in use */ |
across all types of interfaces in use */ |
47 |
#define NETIF_MAX_HWADDR_LEN 6 |
#define NETIF_MAX_HWADDR_LEN 6 |
48 |
|
|
49 |
|
/** TODO: define the use (where, when, whom) of netif flags */ |
50 |
|
|
51 |
/** whether the network interface is 'up'. this is |
/** whether the network interface is 'up'. this is |
52 |
* a software flag used to control whether this network |
* a software flag used to control whether this network |
53 |
* interface is enabled and processes traffic */ |
* interface is enabled and processes traffic */ |
57 |
/** if set, the netif is one end of a point-to-point connection */ |
/** if set, the netif is one end of a point-to-point connection */ |
58 |
#define NETIF_FLAG_POINTTOPOINT 4U |
#define NETIF_FLAG_POINTTOPOINT 4U |
59 |
/** if set, the interface is configured using DHCP */ |
/** if set, the interface is configured using DHCP */ |
60 |
#define NETIF_FLAG_DHCP 8U |
#define NETIF_FLAG_DHCP 0x08U |
61 |
|
/** if set, the interface has an active link |
62 |
|
* (set by the interface) */ |
63 |
|
#define NETIF_FLAG_LINK_UP 0x10U |
64 |
|
|
65 |
/** generic data structure used for all lwIP network interfaces */ |
/** generic data structure used for all lwIP network interfaces */ |
66 |
struct netif { |
struct netif { |