Changes in uspace/srv/net/il/arp/arp.h [ffa2c8ef:e9caf47] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/net/il/arp/arp.h
rffa2c8ef re9caf47 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> … … 52 55 typedef struct arp_device arp_device_t; 53 56 57 /** Type definition of the ARP device specific data pointer. 58 * @see arp_device 59 */ 60 typedef arp_device_t *arp_device_ref; 61 54 62 /** Type definition of the ARP global data. 55 63 * @see arp_globals … … 62 70 typedef struct arp_proto arp_proto_t; 63 71 64 /** Type definition of the ARP address translation record.65 * @see arp_ trans72 /** Type definition of the ARP protocol specific data pointer. 73 * @see arp_proto 66 74 */ 67 typedef struct arp_trans arp_trans_t;75 typedef arp_proto_t *arp_proto_ref; 68 76 69 77 /** ARP address map. … … 72 80 * @see generic_char_map.h 73 81 */ 74 GENERIC_CHAR_MAP_DECLARE(arp_addr, arp_trans_t);82 GENERIC_CHAR_MAP_DECLARE(arp_addr, measured_string_t); 75 83 76 84 /** ARP address cache. … … 91 99 struct arp_device { 92 100 /** Actual device hardware address. */ 93 measured_string_ t *addr;101 measured_string_ref addr; 94 102 /** Actual device hardware address data. */ 95 uint8_t*addr_data;103 char *addr_data; 96 104 /** Broadcast device hardware address. */ 97 measured_string_ t *broadcast_addr;105 measured_string_ref broadcast_addr; 98 106 /** Broadcast device hardware address data. */ 99 uint8_t*broadcast_data;107 char *broadcast_data; 100 108 /** Device identifier. */ 101 109 device_id_t device_id; … … 122 130 arp_cache_t cache; 123 131 132 /** 133 * The client connection processing function. 134 * The module skeleton propagates its own one. 135 */ 136 async_client_conn_t client_connection; 137 124 138 /** Networking module phone. */ 125 139 int net_phone; 126 140 /** Safety lock. */ 127 fibril_ mutex_t lock;141 fibril_rwlock_t lock; 128 142 }; 129 143 … … 131 145 struct arp_proto { 132 146 /** Actual device protocol address. */ 133 measured_string_ t *addr;147 measured_string_ref addr; 134 148 /** Actual device protocol address data. */ 135 uint8_t*addr_data;149 char *addr_data; 136 150 /** Address map. */ 137 151 arp_addr_t addresses; … … 140 154 }; 141 155 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 156 #endif 154 157 155 158 /** @} 156 159 */ 157
Note:
See TracChangeset
for help on using the changeset viewer.