Changeset 858fc90 in mainline for uspace/srv/net/il/arp/arp.h
- Timestamp:
- 2010-03-15T19:35:25Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 6092b56e
- Parents:
- 92307f1 (diff), 4684368 (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
r92307f1 r858fc90 51 51 52 52 53 /** Type definition of the ARP global data.54 * @see arp_globals55 */56 typedef struct arp_globals arp_globals_t;57 58 53 /** Type definition of the ARP device specific data. 59 54 * @see arp_device … … 65 60 */ 66 61 typedef arp_device_t * arp_device_ref; 62 63 /** Type definition of the ARP global data. 64 * @see arp_globals 65 */ 66 typedef struct arp_globals arp_globals_t; 67 67 68 68 /** Type definition of the ARP protocol specific data. … … 76 76 typedef arp_proto_t * arp_proto_ref; 77 77 78 /** ARP address map. 79 * Translates addresses. 80 * @see generic_char_map.h 81 */ 82 GENERIC_CHAR_MAP_DECLARE(arp_addr, measured_string_t) 83 78 84 /** ARP address cache. 79 85 * Maps devices to the ARP device specific data. 80 86 * @see device.h 81 87 */ 82 DEVICE_MAP_DECLARE( arp_cache, arp_device_t)88 DEVICE_MAP_DECLARE(arp_cache, arp_device_t) 83 89 84 90 /** ARP protocol map. … … 86 92 * @see int_map.h 87 93 */ 88 INT_MAP_DECLARE( arp_protos, arp_proto_t ) 89 90 /** ARP address map. 91 * Translates addresses. 92 * @see generic_char_map.h 93 */ 94 GENERIC_CHAR_MAP_DECLARE( arp_addr, measured_string_t ) 94 INT_MAP_DECLARE(arp_protos, arp_proto_t) 95 95 96 96 /** ARP device specific data. 97 97 */ 98 98 struct arp_device{ 99 /** Actual device hardware address. 100 */ 101 measured_string_ref addr; 102 /** Actual device hardware address data. 103 */ 104 char * addr_data; 105 /** Broadcast device hardware address. 106 */ 107 measured_string_ref broadcast_addr; 108 /** Broadcast device hardware address data. 109 */ 110 char * broadcast_data; 99 111 /** Device identifier. 100 112 */ 101 device_id_t 113 device_id_t device_id; 102 114 /** Hardware type. 103 115 */ 104 hw_type_t 116 hw_type_t hardware; 105 117 /** Packet dimension. 106 118 */ 107 packet_dimension_t packet_dimension; 108 /** Actual device hardware address. 109 */ 110 measured_string_ref addr; 111 /** Actual device hardware address data. 112 */ 113 char * addr_data; 114 /** Broadcast device hardware address. 115 */ 116 measured_string_ref broadcast_addr; 117 /** Broadcast device hardware address data. 118 */ 119 char * broadcast_data; 120 /** Device module service. 121 */ 122 services_t service; 119 packet_dimension_t packet_dimension; 123 120 /** Device module phone. 124 121 */ 125 int 122 int phone; 126 123 /** Protocol map. 127 124 * Address map for each protocol. 128 125 */ 129 arp_protos_t protos; 126 arp_protos_t protos; 127 /** Device module service. 128 */ 129 services_t service; 130 }; 131 132 /** ARP global data. 133 */ 134 struct arp_globals{ 135 /** ARP address cache. 136 */ 137 arp_cache_t cache; 138 /** The client connection processing function. 139 * The module skeleton propagates its own one. 140 */ 141 async_client_conn_t client_connection; 142 /** Networking module phone. 143 */ 144 int net_phone; 145 /** Safety lock. 146 */ 147 fibril_rwlock_t lock; 130 148 }; 131 149 … … 133 151 */ 134 152 struct arp_proto{ 153 /** Actual device protocol address. 154 */ 155 measured_string_ref addr; 156 /** Actual device protocol address data. 157 */ 158 char * addr_data; 159 /** Address map. 160 */ 161 arp_addr_t addresses; 135 162 /** Protocol service. 136 163 */ 137 services_t service; 138 /** Actual device protocol address. 139 */ 140 measured_string_ref addr; 141 /** Actual device protocol address data. 142 */ 143 char * addr_data; 144 /** Address map. 145 */ 146 arp_addr_t addresses; 147 }; 148 149 /** ARP global data. 150 */ 151 struct arp_globals{ 152 /** Networking module phone. 153 */ 154 int net_phone; 155 /** Safety lock. 156 */ 157 fibril_rwlock_t lock; 158 /** ARP address cache. 159 */ 160 arp_cache_t cache; 161 /** The client connection processing function. 162 * The module skeleton propagates its own one. 163 */ 164 async_client_conn_t client_connection; 164 services_t service; 165 165 }; 166 166
Note:
See TracChangeset
for help on using the changeset viewer.