Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/net/tl/tl_common.c

    r28a3e74 rf1938c6  
    182182                        else
    183183                                packet_dimensions_exclude(packet_dimensions,
    184                                     DEVICE_INVALID_ID, free);
     184                                    DEVICE_INVALID_ID);
    185185                }
    186186        }
     
    255255        int length;
    256256
    257         /* Detach the first packet and release the others */
     257        // detach the first packet and release the others
    258258        next = pq_detach(packet);
    259259        if (next)
     
    262262        length = packet_get_addr(packet, &src, NULL);
    263263        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)
    268266            (packet_set_addr(packet, src, src, (size_t) length) == EOK)) {
    269267                return EOK;
     
    301299                return EINVAL;
    302300
    303         /* Get the data length */
     301        // get the data length
    304302        if (!async_data_write_receive(&callid, &length))
    305303                return EINVAL;
    306304
    307         /* Get a new packet */
     305        // get a new packet
    308306        *packet = packet_get_4_remote(packet_phone, length, dimension->addr_len,
    309307            prefix + dimension->prefix, dimension->suffix);
     
    311309                return ENOMEM;
    312310
    313         /* Allocate space in the packet */
     311        // allocate space in the packet
    314312        data = packet_suffix(*packet, length);
    315313        if (!data) {
     
    318316        }
    319317
    320         /* Read the data into the packet */
     318        // read the data into the packet
    321319        rc = async_data_write_finalize(callid, data, length);
    322320        if (rc != EOK) {
     
    325323        }
    326324       
    327         /* Set the packet destination address */
     325        // set the packet destination address
    328326        rc = packet_set_addr(*packet, NULL, (uint8_t *) addr, addrlen);
    329327        if (rc != EOK) {
Note: See TracChangeset for help on using the changeset viewer.