Changes in uspace/srv/net/il/arp/arp.h [ffa2c8ef:4eca056] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/net/il/arp/arp.h
rffa2c8ef r4eca056 39 39 40 40 #include <fibril_synch.h> 41 42 #include <ipc/ipc.h> 41 43 #include <ipc/services.h> 44 42 45 #include <net/device.h> 43 46 #include <net/packet.h> … … 62 65 typedef struct arp_proto arp_proto_t; 63 66 64 /** Type definition of the ARP address translation record.65 * @see arp_trans66 */67 typedef struct arp_trans arp_trans_t;68 69 67 /** ARP address map. 70 68 * … … 72 70 * @see generic_char_map.h 73 71 */ 74 GENERIC_CHAR_MAP_DECLARE(arp_addr, arp_trans_t);72 GENERIC_CHAR_MAP_DECLARE(arp_addr, measured_string_t); 75 73 76 74 /** ARP address cache. … … 91 89 struct arp_device { 92 90 /** Actual device hardware address. */ 93 measured_string_t * addr;91 measured_string_t * addr; 94 92 /** Actual device hardware address data. */ 95 uint8_t*addr_data;93 char *addr_data; 96 94 /** Broadcast device hardware address. */ 97 measured_string_t * broadcast_addr;95 measured_string_t * broadcast_addr; 98 96 /** Broadcast device hardware address data. */ 99 uint8_t*broadcast_data;97 char *broadcast_data; 100 98 /** Device identifier. */ 101 99 device_id_t device_id; … … 122 120 arp_cache_t cache; 123 121 122 /** 123 * The client connection processing function. 124 * The module skeleton propagates its own one. 125 */ 126 async_client_conn_t client_connection; 127 124 128 /** Networking module phone. */ 125 129 int net_phone; 126 130 /** Safety lock. */ 127 fibril_ mutex_t lock;131 fibril_rwlock_t lock; 128 132 }; 129 133 … … 133 137 measured_string_t *addr; 134 138 /** Actual device protocol address data. */ 135 uint8_t*addr_data;139 char *addr_data; 136 140 /** Address map. */ 137 141 arp_addr_t addresses; … … 140 144 }; 141 145 142 /** ARP address translation record. */143 struct arp_trans {144 /**145 * Hardware address for the translation. NULL denotes an incomplete146 * record with possible waiters.147 */148 measured_string_t *hw_addr;149 /** Condition variable used for waiting for completion of the record. */150 fibril_condvar_t cv;151 };152 153 146 #endif 154 147 155 148 /** @} 156 149 */ 157
Note:
See TracChangeset
for help on using the changeset viewer.