Changes in uspace/lib/net/il/ip_remote.c [d3cdb7f0:e037e20e] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/net/il/ip_remote.c
rd3cdb7f0 re037e20e 57 57 * The target network is routed using this device. 58 58 * 59 * @param[in] ip_phone The IP module phone used for (semi)remote calls. 60 * @param[in] device_id The device identifier. 61 * @param[in] address The target network address. 62 * @param[in] netmask The target network mask. 63 * @param[in] gateway The target network gateway. Not used if zero. 59 * @param[in] ip_phone The IP module phone used for (semi)remote calls. 60 * @param[in] device_id The device identifier. 61 * @param[in] address The target network address. 62 * @param[in] netmask The target network mask. 63 * @param[in] gateway The target network gateway. Not used if zero. 64 * 64 65 */ 65 66 int ip_add_route_req_remote(int ip_phone, device_id_t device_id, … … 105 106 * If the device uses ARP registers also the new ARP device. 106 107 * 107 * @param[in] ip_phone The IP module phone used for (semi)remote calls. 108 * @param[in] device_id The new device identifier. 109 * @param[in] netif The underlying device network interface layer service. 110 * @return EOK on success. 111 * @return ENOMEM if there is not enough memory left. 112 * @return EINVAL if the device configuration is invalid. 113 * @return ENOTSUP if the device uses IPv6. 114 * @return ENOTSUP if the device uses DHCP. 115 * @return Other error codes as defined for the 116 * net_get_device_conf_req() function. 117 * @return Other error codes as defined for the arp_device_req() 118 * function. 108 * @param[in] ip_phone The IP module phone used for (semi)remote calls. 109 * @param[in] device_id The new device identifier. 110 * @param[in] netif The underlying device network interface layer service. 111 * 112 * @return EOK on success. 113 * @return ENOMEM if there is not enough memory left. 114 * @return EINVAL if the device configuration is invalid. 115 * @return ENOTSUP if the device uses IPv6. 116 * @return ENOTSUP if the device uses DHCP. 117 * @return Other error codes as defined for the net_get_device_conf_req() 118 * function. 119 * @return Other error codes as defined for the arp_device_req() function. 120 * 119 121 */ 120 122 int ip_device_req_remote(int ip_phone, device_id_t device_id, … … 128 130 * destination address. 129 131 * 130 * @param[in] ip_phoneThe IP module phone used for (semi)remote calls.131 * @param[in] protocolThe transport protocol.132 * @param[in] destination The destination address.133 * @param[in] addrlenThe destination address length.134 * @param[out] device_id The device identifier.135 * @param[out] header 136 * @param[out] headerlen The IP pseudo header length.132 * @param[in] ip_phone The IP module phone used for (semi)remote calls. 133 * @param[in] protocol The transport protocol. 134 * @param[in] destination The destination address. 135 * @param[in] addrlen The destination address length. 136 * @param[out] device_id The device identifier. 137 * @param[out] header The constructed IP pseudo header. 138 * @param[out] headerlen The IP pseudo header length. 137 139 * 138 140 */ … … 141 143 device_id_t *device_id, void **header, size_t *headerlen) 142 144 { 143 if ( !destination|| (addrlen == 0))145 if ((!destination) || (addrlen == 0)) 144 146 return EINVAL; 145 147 146 if ( !device_id || !header || !headerlen)148 if ((!device_id) || (!header) || (!headerlen)) 147 149 return EBADMEM; 148 150 … … 167 169 async_wait_for(message_id, &result); 168 170 169 if ((result != EOK) && *header)171 if ((result != EOK) && (*header)) 170 172 free(*header); 171 173 else … … 177 179 /** Return the device packet dimension for sending. 178 180 * 179 * @param[in] ip_phoneThe IP module phone used for (semi)remote calls.180 * @param[in] device_idThe device identifier.181 * @param[in] ip_phone The IP module phone used for (semi)remote calls. 182 * @param[in] device_id The device identifier. 181 183 * @param[out] packet_dimension The packet dimension. 182 * @return EOK on success. 183 * @return ENOENT if there is no such device. 184 * @return Other error codes as defined for the 185 * generic_packet_size_req_remote() function. 184 * 185 * @return EOK on success. 186 * @return ENOENT if there is no such device. 187 * @return Other error codes as defined for the 188 * generic_packet_size_req_remote() function. 189 * 186 190 */ 187 191 int ip_packet_size_req_remote(int ip_phone, device_id_t device_id, … … 194 198 /** Notify the IP module about the received error notification packet. 195 199 * 196 * @param[in] ip_phone The IP module phone used for (semi)remote calls. 197 * @param[in] device_id The device identifier. 198 * @param[in] packet The received packet or the received packet queue. 199 * @param[in] target The target internetwork module service to be 200 * delivered to. 201 * @param[in] error The packet error reporting service. Prefixes the 202 * received packet. 203 * @return EOK on success. 200 * @param[in] ip_phone The IP module phone used for (semi)remote calls. 201 * @param[in] device_id The device identifier. 202 * @param[in] packet The received packet or the received packet queue. 203 * @param[in] target The target internetwork module service to be 204 * delivered to. 205 * @param[in] error The packet error reporting service. Prefixes the 206 * received packet. 207 * 208 * @return EOK on success. 209 * 204 210 */ 205 211 int ip_received_error_msg_remote(int ip_phone, device_id_t device_id, … … 214 220 * The packets may get fragmented if needed. 215 221 * 216 * @param[in] ip_phone The IP module phone used for (semi)remote calls. 217 * @param[in] device_id The device identifier. 218 * @param[in] packet The packet fragments as a packet queue. All the 219 * packets have to have the same destination address. 220 * @param[in] sender The sending module service. 221 * @param[in] error The packet error reporting service. Prefixes the 222 * received packet. 223 * @return EOK on success. 224 * @return Other error codes as defined for the generic_send_msg() 225 * function. 222 * @param[in] ip_phone The IP module phone used for (semi)remote calls. 223 * @param[in] device_id The device identifier. 224 * @param[in] packet The packet fragments as a packet queue. All the 225 * packets have to have the same destination address. 226 * @param[in] sender The sending module service. 227 * @param[in] error The packet error reporting service. Prefixes the 228 * received packet. 229 * 230 * @return EOK on success. 231 * @return Other error codes as defined for the generic_send_msg() function. 232 * 226 233 */ 227 234 int ip_send_msg_remote(int ip_phone, device_id_t device_id, packet_t packet, … … 236 243 * This gateway is used if no other route is found. 237 244 * 238 * @param[in] ip_phone The IP module phone used for (semi)remote calls. 239 * @param[in] device_id The device identifier. 240 * @param[in] gateway The default gateway. 245 * @param[in] ip_phone The IP module phone used for (semi)remote calls. 246 * @param[in] device_id The device identifier. 247 * @param[in] gateway The default gateway. 248 * 241 249 */ 242 250 int ip_set_gateway_req_remote(int ip_phone, device_id_t device_id,
Note:
See TracChangeset
for help on using the changeset viewer.