Changeset 49bd793b in mainline for uspace/lib/nic/src/nic_driver.c


Ignore:
Timestamp:
2011-10-07T21:42:14Z (13 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
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/nic/src/nic_driver.c

    r00d7e1b r49bd793b  
    671671                }
    672672                fibril_rwlock_write_unlock(&nic_data->stats_lock);
    673                 nil_received_msg(nic_data->nil_session, pid, nic_data->device_id);
     673                nil_received_msg(nic_data->nil_session, nic_data->device_id, pid);
    674674        } else {
    675675                switch (frame_type) {
     
    703703        nic_data->stats.receive_bytes += packet_get_data_length(packet);
    704704        fibril_rwlock_write_unlock(&nic_data->stats_lock);
    705 
    706         nil_received_msg(nic_data->nil_session, packet_get_id(packet),
    707                 nic_data->device_id);
     705       
     706        nil_received_msg(nic_data->nil_session, nic_data->device_id,
     707            packet_get_id(packet));
    708708}
    709709
Note: See TracChangeset for help on using the changeset viewer.