Rev 3912 | Rev 4243 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 3912 | Rev 3991 | ||
---|---|---|---|
Line 35... | Line 35... | ||
35 | */ |
35 | */ |
36 | 36 | ||
37 | #ifndef __NET_ARP_H__ |
37 | #ifndef __NET_ARP_H__ |
38 | #define __NET_ARP_H__ |
38 | #define __NET_ARP_H__ |
39 | 39 | ||
- | 40 | #include <rwlock.h> |
|
- | 41 | ||
40 | #include <ipc/ipc.h> |
42 | #include <ipc/ipc.h> |
41 | 43 | ||
42 | #include "../../netif/device.h" |
44 | #include "../../netif/device.h" |
43 | 45 | ||
44 | #include "../../structures/generic_char_map.h" |
46 | #include "../../structures/generic_char_map.h" |
Line 139... | Line 141... | ||
139 | */ |
141 | */ |
140 | struct arp_proto{ |
142 | struct arp_proto{ |
141 | /** Protocol service. |
143 | /** Protocol service. |
142 | */ |
144 | */ |
143 | services_t service; |
145 | services_t service; |
144 | // int phone; |
- | |
145 | /** Actual device protocol address. |
146 | /** Actual device protocol address. |
146 | */ |
147 | */ |
147 | measured_string_ref addr; |
148 | measured_string_ref addr; |
148 | /** Actual device protocol address data. |
149 | /** Actual device protocol address data. |
149 | */ |
150 | */ |
Line 157... | Line 158... | ||
157 | */ |
158 | */ |
158 | struct arp_globals{ |
159 | struct arp_globals{ |
159 | /** Networking module phone. |
160 | /** Networking module phone. |
160 | */ |
161 | */ |
161 | int networking_phone; |
162 | int networking_phone; |
- | 163 | /** Safety lock. |
|
- | 164 | */ |
|
- | 165 | rwlock_t lock; |
|
162 | /** ARP address cache. |
166 | /** ARP address cache. |
163 | */ |
167 | */ |
164 | arp_cache_t cache; |
168 | arp_cache_t cache; |
165 | }; |
169 | }; |
166 | 170 |