Network interface structure. More...
#include <sys/types.h>#include <stdint.h>#include <sys/device.h>#include <dev/netbuf.h>#include <net/if_types.h>
Go to the source code of this file.
Data Structures | |
| struct | _ARPENTRY |
| ARP entry structure. More... | |
| struct | _MCASTENTRY |
| Multicast entry structure. More... | |
| struct | ifnet |
| Network interface structure. More... | |
Defines | |
| #define | ATF_REM 0x01 |
| Entry marked for removal. | |
| #define | ATF_COM 0x02 |
| Completed entry. | |
| #define | ATF_PERM 0x04 |
| Permanent entry. | |
| #define | SIOCSIFMTU 0x1001 |
| Set maximum transfer unit. | |
| #define | SIOCGIFMTU 0x1002 |
| Get maximum transfer unit. | |
| #define | SIOCSIFFLAGS 0x1003 |
| Set interface flags. | |
| #define | SIOCGIFFLAGS 0x1004 |
| Get interface flags. | |
| #define | SIOCSIFADDR 0x1005 |
| Set interface address. | |
| #define | SIOCGIFADDR 0x1006 |
| Get interface address. | |
| #define | SIOCADDMULTI 0x1007 |
| Add multicast address. | |
| #define | SIOCDELMULTI 0x1008 |
| Delete multicast address. | |
Typedefs | |
| typedef struct _ARPENTRY | ARPENTRY |
| ARP entry type. | |
| typedef struct _MCASTENTRY | MCASTENTRY |
| Multicast address entry type. | |
| typedef struct ifnet | IFNET |
| Network interface type. | |
Functions | |
| int | NutNetIfConfig2 (CONST char *name, void *mac_dev, uint32_t ip_addr, uint32_t ip_mask, uint32_t gateway) |
| Configure a network interface including the default gateway. | |
| int | NutNetIfConfig (CONST char *name, void *mac_dev, uint32_t ip_addr, uint32_t ip_mask) |
| Configure a network interface. | |
| int | NutNetIfSetup (NUTDEVICE *dev, uint32_t ip_addr, uint32_t ip_mask, uint32_t gateway) |
| Network interface setup. | |
| int | NutNetIfAddMcastAddr (CONST char *name, uint32_t ip_addr) |
| int | NutNetIfDelMcastAddr (CONST char *name, uint32_t ip_addr) |
| int | NutNetLoadConfig (CONST char *name) |
| Load network configuration from non-volatile memory. | |
| int | NutNetSaveConfig (void) |
| Save network configuration in non-volatile memory. | |
Network interface structure.
Each network device in Nut/Net has an associated network interface structure.
Definition in file if_var.h.