Ignore:
File:
1 edited

Legend:

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

    r609243f4 r28a3e74  
    3939#include <icmp_header.h>
    4040#include <packet_client.h>
     41
     42#ifdef CONFIG_DEBUG
     43#include <stdio.h>
     44#endif
     45
    4146#include <errno.h>
    4247#include <sys/types.h>
     48
    4349#include <net/icmp_codes.h>
    4450#include <net/packet.h>
     
    5460 * @return              Zero if the packet contains no data.
    5561 */
    56 int icmp_client_process_packet(packet_t *packet, icmp_type_t *type,
     62int
     63icmp_client_process_packet(packet_t *packet, icmp_type_t *type,
    5764    icmp_code_t *code, icmp_param_t *pointer, icmp_param_t *mtu)
    5865{
     
    7481                *mtu = header->un.frag.mtu;
    7582
     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
    7688        return sizeof(icmp_header_t);
    7789}
Note: See TracChangeset for help on using the changeset viewer.