Changes in uspace/lib/net/tl/tl_common.c [28a3e74:5fe7692] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/net/tl/tl_common.c
r28a3e74 r5fe7692 255 255 int length; 256 256 257 / * Detach the first packet and release the others */257 // detach the first packet and release the others 258 258 next = pq_detach(packet); 259 259 if (next) … … 262 262 length = packet_get_addr(packet, &src, NULL); 263 263 if ((length > 0) && (!error) && (icmp_phone >= 0) && 264 /* 265 * Set both addresses to the source one (avoids the source address 266 * deletion before setting the destination one) 267 */ 264 // set both addresses to the source one (avoids the source address 265 // deletion before setting the destination one) 268 266 (packet_set_addr(packet, src, src, (size_t) length) == EOK)) { 269 267 return EOK; … … 301 299 return EINVAL; 302 300 303 / * Get the data length */301 // get the data length 304 302 if (!async_data_write_receive(&callid, &length)) 305 303 return EINVAL; 306 304 307 / * Get a new packet */305 // get a new packet 308 306 *packet = packet_get_4_remote(packet_phone, length, dimension->addr_len, 309 307 prefix + dimension->prefix, dimension->suffix); … … 311 309 return ENOMEM; 312 310 313 / * Allocate space in the packet */311 // allocate space in the packet 314 312 data = packet_suffix(*packet, length); 315 313 if (!data) { … … 318 316 } 319 317 320 / * Read the data into the packet */318 // read the data into the packet 321 319 rc = async_data_write_finalize(callid, data, length); 322 320 if (rc != EOK) { … … 325 323 } 326 324 327 / * Set the packet destination address */325 // set the packet destination address 328 326 rc = packet_set_addr(*packet, NULL, (uint8_t *) addr, addrlen); 329 327 if (rc != EOK) {
Note:
See TracChangeset
for help on using the changeset viewer.