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