Changeset 609243f4 in mainline for uspace/lib/net/tl


Ignore:
Timestamp:
2011-10-07T15:46:01Z (14 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
e2c50e1
Parents:
f51b1d3
Message:

cherrypick general networking improvements from lp:~helenos-nicf/helenos/nicf (after sanitization)
remove obsolete networking drivers
this renders the networking non-functional for the time being

Location:
uspace/lib/net/tl
Files:
3 edited

Legend:

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

    rf51b1d3 r609243f4  
    3939#include <icmp_header.h>
    4040#include <packet_client.h>
    41 
    42 #ifdef CONFIG_DEBUG
    43 #include <stdio.h>
    44 #endif
    45 
    4641#include <errno.h>
    4742#include <sys/types.h>
    48 
    4943#include <net/icmp_codes.h>
    5044#include <net/packet.h>
     
    6054 * @return              Zero if the packet contains no data.
    6155 */
    62 int
    63 icmp_client_process_packet(packet_t *packet, icmp_type_t *type,
     56int icmp_client_process_packet(packet_t *packet, icmp_type_t *type,
    6457    icmp_code_t *code, icmp_param_t *pointer, icmp_param_t *mtu)
    6558{
     
    8174                *mtu = header->un.frag.mtu;
    8275
    83         /* Remove debug dump */
    84 #ifdef CONFIG_DEBUG
    85         printf("ICMP error %d (%d) in packet %d\n", header->type, header->code,
    86             packet_get_id(packet));
    87 #endif
    8876        return sizeof(icmp_header_t);
    8977}
  • uspace/lib/net/tl/tl_common.c

    rf51b1d3 r609243f4  
    119119 */
    120120int tl_get_ip_packet_dimension(async_sess_t *sess,
    121     packet_dimensions_t *packet_dimensions, device_id_t device_id,
     121    packet_dimensions_t *packet_dimensions, nic_device_id_t device_id,
    122122    packet_dimension_t **packet_dimension)
    123123{
     
    160160int
    161161tl_update_ip_packet_dimension(packet_dimensions_t *packet_dimensions,
    162     device_id_t device_id, size_t content)
     162    nic_device_id_t device_id, size_t content)
    163163{
    164164        packet_dimension_t *packet_dimension;
     
    170170        packet_dimension->content = content;
    171171
    172         if (device_id != DEVICE_INVALID_ID) {
     172        if (device_id != NIC_DEVICE_INVALID_ID) {
    173173                packet_dimension = packet_dimensions_find(packet_dimensions,
    174                     DEVICE_INVALID_ID);
     174                    NIC_DEVICE_INVALID_ID);
    175175
    176176                if (packet_dimension) {
     
    179179                        else
    180180                                packet_dimensions_exclude(packet_dimensions,
    181                                     DEVICE_INVALID_ID, free);
     181                                    NIC_DEVICE_INVALID_ID, free);
    182182                }
    183183        }
  • uspace/lib/net/tl/tl_remote.c

    rf51b1d3 r609243f4  
    5656 *
    5757 */
    58 int tl_received_msg(async_sess_t *sess, device_id_t device_id, packet_t *packet,
     58int tl_received_msg(async_sess_t *sess, nic_device_id_t device_id, packet_t *packet,
    5959    services_t target, services_t error)
    6060{
Note: See TracChangeset for help on using the changeset viewer.