Changeset cf2af94 in mainline for uspace/srv/net/il/arp/arp.h
- Timestamp:
- 2011-02-09T11:46:47Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- cb15135a
- Parents:
- a49c4002 (diff), 0b37882 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/net/il/arp/arp.h
ra49c4002 rcf2af94 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> … … 65 62 typedef struct arp_proto arp_proto_t; 66 63 64 /** Type definition of the ARP address translation record. 65 * @see arp_trans 66 */ 67 typedef struct arp_trans arp_trans_t; 68 67 69 /** ARP address map. 68 70 * … … 70 72 * @see generic_char_map.h 71 73 */ 72 GENERIC_CHAR_MAP_DECLARE(arp_addr, measured_string_t);74 GENERIC_CHAR_MAP_DECLARE(arp_addr, arp_trans_t); 73 75 74 76 /** ARP address cache. … … 89 91 struct arp_device { 90 92 /** Actual device hardware address. */ 91 measured_string_t * 93 measured_string_t *addr; 92 94 /** Actual device hardware address data. */ 93 char*addr_data;95 uint8_t *addr_data; 94 96 /** Broadcast device hardware address. */ 95 measured_string_t * 97 measured_string_t *broadcast_addr; 96 98 /** Broadcast device hardware address data. */ 97 char*broadcast_data;99 uint8_t *broadcast_data; 98 100 /** Device identifier. */ 99 101 device_id_t device_id; … … 120 122 arp_cache_t cache; 121 123 122 /**123 * The client connection processing function.124 * The module skeleton propagates its own one.125 */126 async_client_conn_t client_connection;127 128 124 /** Networking module phone. */ 129 125 int net_phone; 130 126 /** Safety lock. */ 131 fibril_ rwlock_t lock;127 fibril_mutex_t lock; 132 128 }; 133 129 … … 137 133 measured_string_t *addr; 138 134 /** Actual device protocol address data. */ 139 char*addr_data;135 uint8_t *addr_data; 140 136 /** Address map. */ 141 137 arp_addr_t addresses; … … 144 140 }; 145 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 146 153 #endif 147 154 148 155 /** @} 149 156 */ 157
Note:
See TracChangeset
for help on using the changeset viewer.