Changeset 49bd793b in mainline for uspace/srv


Ignore:
Timestamp:
2011-10-07T21:42:14Z (14 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
80099c19
Parents:
00d7e1b
Message:

networking fixes

  • use sysarg_t for packet_id_t to avoid potential overflow
  • fix the confusion in the order of arguments for nil_received_msg(), this fixes the strange ping timeout on 127.0.0.1
Location:
uspace/srv/net
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/net/nil/nildummy/nildummy.c

    r00d7e1b r49bd793b  
    136136                        device->mtu = NET_DEFAULT_MTU;
    137137               
    138                 printf("Device %d already exists:\tMTU\t= %zu\n", device->device_id,
     138                printf("Device %d already exists (mtu: %zu)\n", device->device_id,
    139139                    device->mtu);
    140140                fibril_rwlock_write_unlock(&nildummy_globals.devices_lock);
  • uspace/srv/net/tl/icmp/icmp.c

    r00d7e1b r49bd793b  
    753753                        return rc;
    754754               
    755                 rc = icmp_echo(icmp_id, icmp_seq, ICMP_GET_SIZE(*call), 
     755                rc = icmp_echo(icmp_id, icmp_seq, ICMP_GET_SIZE(*call),
    756756                    ICMP_GET_TIMEOUT(*call), ICMP_GET_TTL(*call),
    757757                    ICMP_GET_TOS(*call), ICMP_GET_DONT_FRAGMENT(*call),
  • uspace/srv/net/tl/tcp/tcp.c

    r00d7e1b r49bd793b  
    16511651        /* Sent packet? */
    16521652        packet = pq_find(socket_data->outgoing, sequence_number);
    1653         printf("retransmit %lu\n", packet_get_id(packet));
    16541653        if (packet) {
    16551654                pq_get_order(packet, NULL, &data_length);
     
    17901789
    17911790                        /* Send the packet */
    1792                         printf("connecting %lu\n", packet_get_id(packet));
    17931791                        tcp_send_packets(socket_data->device_id, packet);
    17941792
Note: See TracChangeset for help on using the changeset viewer.