Changeset 609243f4 in mainline for uspace/lib/net/tl
- Timestamp:
- 2011-10-07T15:46:01Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- e2c50e1
- Parents:
- f51b1d3
- Location:
- uspace/lib/net/tl
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/net/tl/icmp_client.c
rf51b1d3 r609243f4 39 39 #include <icmp_header.h> 40 40 #include <packet_client.h> 41 42 #ifdef CONFIG_DEBUG43 #include <stdio.h>44 #endif45 46 41 #include <errno.h> 47 42 #include <sys/types.h> 48 49 43 #include <net/icmp_codes.h> 50 44 #include <net/packet.h> … … 60 54 * @return Zero if the packet contains no data. 61 55 */ 62 int 63 icmp_client_process_packet(packet_t *packet, icmp_type_t *type, 56 int icmp_client_process_packet(packet_t *packet, icmp_type_t *type, 64 57 icmp_code_t *code, icmp_param_t *pointer, icmp_param_t *mtu) 65 58 { … … 81 74 *mtu = header->un.frag.mtu; 82 75 83 /* Remove debug dump */84 #ifdef CONFIG_DEBUG85 printf("ICMP error %d (%d) in packet %d\n", header->type, header->code,86 packet_get_id(packet));87 #endif88 76 return sizeof(icmp_header_t); 89 77 } -
uspace/lib/net/tl/tl_common.c
rf51b1d3 r609243f4 119 119 */ 120 120 int 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, 122 122 packet_dimension_t **packet_dimension) 123 123 { … … 160 160 int 161 161 tl_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) 163 163 { 164 164 packet_dimension_t *packet_dimension; … … 170 170 packet_dimension->content = content; 171 171 172 if (device_id != DEVICE_INVALID_ID) {172 if (device_id != NIC_DEVICE_INVALID_ID) { 173 173 packet_dimension = packet_dimensions_find(packet_dimensions, 174 DEVICE_INVALID_ID);174 NIC_DEVICE_INVALID_ID); 175 175 176 176 if (packet_dimension) { … … 179 179 else 180 180 packet_dimensions_exclude(packet_dimensions, 181 DEVICE_INVALID_ID, free);181 NIC_DEVICE_INVALID_ID, free); 182 182 } 183 183 } -
uspace/lib/net/tl/tl_remote.c
rf51b1d3 r609243f4 56 56 * 57 57 */ 58 int tl_received_msg(async_sess_t *sess, device_id_t device_id, packet_t *packet,58 int tl_received_msg(async_sess_t *sess, nic_device_id_t device_id, packet_t *packet, 59 59 services_t target, services_t error) 60 60 {
Note:
See TracChangeset
for help on using the changeset viewer.