Subversion Repositories HelenOS

Rev

Rev 3666 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 3666 Rev 3685
Line 39... Line 39...
39
 
39
 
40
#include <ipc/ipc.h>
40
#include <ipc/ipc.h>
41
 
41
 
42
#include "../netif/netif_device_id_type.h"
42
#include "../netif/netif_device_id_type.h"
43
 
43
 
-
 
44
#define IP_MAX_ADDRESS_LENGTH   4
-
 
45
 
-
 
46
typedef int     address_t[ IP_MAX_ADDRESS_LENGTH ];
-
 
47
typedef address_t * address_ref;
-
 
48
 
44
typedef struct ip_netif ip_netif_t;
49
typedef struct ip_netif ip_netif_t;
45
typedef ip_netif_t *    ip_netif_ref;
50
typedef ip_netif_t *    ip_netif_ref;
46
 
51
 
47
typedef struct ip_globals   ip_globals_t;
52
typedef struct ip_globals   ip_globals_t;
48
 
53
 
49
DEVICE_MAP_DECLARE( ip_netifs, ip_netif_t )
54
DEVICE_MAP_DECLARE( ip_netifs, ip_netif_t )
50
 
55
 
51
struct ip_netif{
56
struct  ip_netif{
52
    netif_device_id_t   device_id;
57
    netif_device_id_t   device_id;
53
    int         phone;
58
    int         phone;
-
 
59
    int         ipv;
-
 
60
    int         dhcp;
-
 
61
    address_t       address;
-
 
62
    address_t       netmask;
-
 
63
    address_t       gateway;
-
 
64
    address_t       broadcast;
-
 
65
    address_t       dns1;
-
 
66
    address_t       dns2;
54
    // TODO configuration
67
    // TODO modules
55
};
68
};
56
 
69
 
57
struct ip_globals{
70
struct  ip_globals{
58
    int     networking_phone;
71
    int     networking_phone;
59
    int     tcp_phone;
72
    int     tcp_phone;
60
    ip_netifs_t netifs;
73
    ip_netifs_t netifs;
61
};
74
};
62
 
75