Rev 4505 | Rev 4582 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 4505 | Rev 4558 | ||
---|---|---|---|
Line 35... | Line 35... | ||
35 | */ |
35 | */ |
36 | 36 | ||
37 | #ifndef __NET_IP_H__ |
37 | #ifndef __NET_IP_H__ |
38 | #define __NET_IP_H__ |
38 | #define __NET_IP_H__ |
39 | 39 | ||
- | 40 | #include <rwlock.h> |
|
- | 41 | ||
40 | #include <ipc/ipc.h> |
42 | #include <ipc/ipc.h> |
41 | #include <ipc/services.h> |
43 | #include <ipc/services.h> |
42 | 44 | ||
43 | #include "../../include/sockaddr.h" |
- | |
44 | #include "../../include/device.h" |
45 | #include "../../include/device.h" |
- | 46 | #include "../../include/inet.h" |
|
45 | #include "../../include/ip_interface.h" |
47 | #include "../../include/ip_interface.h" |
46 | 48 | ||
47 | #include "../../structures/int_map.h" |
49 | #include "../../structures/int_map.h" |
48 | #include "../../structures/generic_field.h" |
50 | #include "../../structures/generic_field.h" |
49 | #include "../../structures/module_map.h" |
51 | #include "../../structures/module_map.h" |
Line 94... | Line 96... | ||
94 | 96 | ||
95 | struct ip_proto{ |
97 | struct ip_proto{ |
96 | int protocol; |
98 | int protocol; |
97 | services_t service; |
99 | services_t service; |
98 | int phone; |
100 | int phone; |
99 | tl_received_msg_t tl_received_msg; |
101 | tl_received_msg_t received_msg; |
100 | }; |
102 | }; |
101 | 103 | ||
102 | struct ip_route{ |
104 | struct ip_route{ |
103 | in_addr_t address; |
105 | in_addr_t address; |
104 | in_addr_t netmask; |
106 | in_addr_t netmask; |
Line 107... | Line 109... | ||
107 | }; |
109 | }; |
108 | 110 | ||
109 | struct ip_globals{ |
111 | struct ip_globals{ |
110 | int net_phone; |
112 | int net_phone; |
111 | ip_netifs_t netifs; |
113 | ip_netifs_t netifs; |
- | 114 | rwlock_t netifs_lock; |
|
112 | ip_protos_t protos; |
115 | ip_protos_t protos; |
- | 116 | rwlock_t protos_lock; |
|
113 | ip_route_t gateway; |
117 | ip_route_t gateway; |
114 | modules_t modules; |
118 | modules_t modules; |
115 | async_client_conn_t client_connection; |
119 | async_client_conn_t client_connection; |
116 | uint16_t packet_counter; |
120 | uint16_t packet_counter; |
- | 121 | rwlock_t lock; |
|
117 | }; |
122 | }; |
118 | 123 | ||
119 | #endif |
124 | #endif |
120 | 125 | ||
121 | /** @} |
126 | /** @} |