41,6 → 41,11 |
|
#include "../netif/netif_device_id_type.h" |
|
#define IP_MAX_ADDRESS_LENGTH 4 |
|
typedef int address_t[ IP_MAX_ADDRESS_LENGTH ]; |
typedef address_t * address_ref; |
|
typedef struct ip_netif ip_netif_t; |
typedef ip_netif_t * ip_netif_ref; |
|
48,13 → 53,21 |
|
DEVICE_MAP_DECLARE( ip_netifs, ip_netif_t ) |
|
struct ip_netif{ |
struct ip_netif{ |
netif_device_id_t device_id; |
int phone; |
// TODO configuration |
int ipv; |
int dhcp; |
address_t address; |
address_t netmask; |
address_t gateway; |
address_t broadcast; |
address_t dns1; |
address_t dns2; |
// TODO modules |
}; |
|
struct ip_globals{ |
struct ip_globals{ |
int networking_phone; |
int tcp_phone; |
ip_netifs_t netifs; |