Changeset 7715994 in mainline for uspace/srv/net/il/ip/ip.h
- Timestamp:
- 2010-03-13T12:17:02Z (15 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 6ba20a6b
- Parents:
- d0febca (diff), 2070570 (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/ip/ip.h
rd0febca r7715994 90 90 * @see device.h 91 91 */ 92 DEVICE_MAP_DECLARE( ip_netifs, ip_netif_t)92 DEVICE_MAP_DECLARE(ip_netifs, ip_netif_t) 93 93 94 94 /** IP registered protocols. … … 96 96 * @see int_map.h 97 97 */ 98 INT_MAP_DECLARE( ip_protos, ip_proto_t)98 INT_MAP_DECLARE(ip_protos, ip_proto_t) 99 99 100 100 /** IP routing table. 101 101 * @see generic_field.h 102 102 */ 103 GENERIC_FIELD_DECLARE( ip_routes, ip_route_t)103 GENERIC_FIELD_DECLARE(ip_routes, ip_route_t) 104 104 105 105 /** IP network interface specific data. 106 106 */ 107 107 struct ip_netif{ 108 /** Device identifier.109 */110 device_id_t device_id;111 /** Netif module service.112 */113 services_t service;114 /** Netif module phone.115 */116 int phone;117 108 /** ARP module. 118 109 * Assigned if using ARP. 119 110 */ 120 module_ref arp; 111 module_ref arp; 112 /** Broadcast address. 113 */ 114 in_addr_t broadcast; 115 /** Device identifier. 116 */ 117 device_id_t device_id; 118 /** Indicates whether using DHCP. 119 */ 120 int dhcp; 121 121 /** IP version. 122 122 */ 123 int ipv; 124 /** Indicates whether using DHCP. 125 */ 126 int dhcp; 123 int ipv; 124 /** Packet dimension. 125 */ 126 packet_dimension_t packet_dimension; 127 /** Netif module phone. 128 */ 129 int phone; 130 /** Routing table. 131 */ 132 ip_routes_t routes; 127 133 /** Indicates whether IP routing is enabled. 128 134 */ 129 int routing; 135 int routing; 136 /** Netif module service. 137 */ 138 services_t service; 130 139 /** Device state. 131 140 */ 132 device_state_t state; 133 /** Broadcast address. 134 */ 135 in_addr_t broadcast; 136 /** Routing table. 137 */ 138 ip_routes_t routes; 139 /** Packet dimension. 140 */ 141 packet_dimension_t packet_dimension; 141 device_state_t state; 142 142 }; 143 143 … … 145 145 */ 146 146 struct ip_proto{ 147 /** Protocol module phone. 148 */ 149 int phone; 147 150 /** Protocol number. 148 151 */ 149 int protocol; 152 int protocol; 153 /** Protocol packet receiving function. 154 */ 155 tl_received_msg_t received_msg; 150 156 /** Protocol module service. 151 157 */ 152 158 services_t service; 153 /** Protocol module phone.154 */155 int phone;156 /** Protocol packet receiving function.157 */158 tl_received_msg_t received_msg;159 159 }; 160 160 … … 164 164 /** Target address. 165 165 */ 166 in_addr_t address; 166 in_addr_t address; 167 /** Gateway. 168 */ 169 in_addr_t gateway; 170 /** Parent netif. 171 */ 172 ip_netif_ref netif; 167 173 /** Target network mask. 168 174 */ 169 in_addr_t netmask; 170 /** Gateway. 171 */ 172 in_addr_t gateway; 173 /** Parent netif. 174 */ 175 ip_netif_ref netif; 175 in_addr_t netmask; 176 176 }; 177 177 … … 179 179 */ 180 180 struct ip_globals{ 181 /** Default client connection function for support modules. 182 */ 183 async_client_conn_t client_connection; 184 /** Default gateway. 185 */ 186 ip_route_t gateway; 187 /** Safety lock. 188 */ 189 fibril_rwlock_t lock; 190 /** Known support modules. 191 */ 192 modules_t modules; 181 193 /** Networking module phone. 182 194 */ 183 int 195 int net_phone; 184 196 /** Registered network interfaces. 185 197 */ 186 ip_netifs_t 198 ip_netifs_t netifs; 187 199 /** Netifs safeyt lock. 188 200 */ 189 fibril_rwlock_t netifs_lock; 201 fibril_rwlock_t netifs_lock; 202 /** Packet counter. 203 */ 204 uint16_t packet_counter; 190 205 /** Registered protocols. 191 206 */ 192 ip_protos_t 207 ip_protos_t protos; 193 208 /** Protocols safety lock. 194 209 */ 195 fibril_rwlock_t protos_lock; 196 /** Default gateway. 197 */ 198 ip_route_t gateway; 199 /** Known support modules. 200 */ 201 modules_t modules; 202 /** Default client connection function for support modules. 203 */ 204 async_client_conn_t client_connection; 205 /** Packet counter. 206 */ 207 uint16_t packet_counter; 208 /** Safety lock. 209 */ 210 fibril_rwlock_t lock; 210 fibril_rwlock_t protos_lock; 211 211 }; 212 212
Note:
See TracChangeset
for help on using the changeset viewer.