Changeset 637a3b4 in mainline for uspace/srv/inet/inet.c


Ignore:
Timestamp:
2012-03-09T19:41:43Z (13 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
ffa8912
Parents:
fa101c4
Message:

ICMP echo replying.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/inet/inet.c

    rfa101c4 r637a3b4  
    4848
    4949#include "addrobj.h"
     50#include "icmp.h"
     51#include "icmp_std.h"
    5052#include "inet.h"
    5153#include "inetcfg.h"
     
    110112}
    111113
    112 static int inet_route_packet(inet_dgram_t *dgram, uint8_t proto, uint8_t ttl,
     114int inet_route_packet(inet_dgram_t *dgram, uint8_t proto, uint8_t ttl,
    113115    int df)
    114116{
     
    338340        log_msg(LVL_DEBUG, "inet_recv_dgram_local()");
    339341
     342        /* ICMP messages are handled internally */
     343        if (proto == IP_PROTO_ICMP)
     344                return icmp_recv(dgram);
     345
    340346        client = inet_client_find(proto);
    341347        if (client == NULL) {
Note: See TracChangeset for help on using the changeset viewer.