Changeset 1d24ad3 in mainline for uspace/srv/net/inetsrv/inetsrv.c
- Timestamp:
- 2013-07-03T14:20:04Z (11 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- d8b47eca
- Parents:
- 02a09ed
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/net/inetsrv/inetsrv.c
r02a09ed r1d24ad3 50 50 #include "icmp.h" 51 51 #include "icmp_std.h" 52 #include "icmpv6.h" 53 #include "icmpv6_std.h" 52 54 #include "inetsrv.h" 53 55 #include "inetcfg.h" 54 56 #include "inetping.h" 57 #include "inetping6.h" 55 58 #include "inet_link.h" 56 59 #include "reass.h" … … 93 96 rc = loc_service_register_with_iface(SERVICE_NAME_INETPING, &sid, 94 97 INET_PORT_PING); 98 if (rc != EOK) { 99 log_msg(LOG_DEFAULT, LVL_ERROR, "Failed registering service (%d).", rc); 100 return EEXIST; 101 } 102 103 rc = loc_service_register_with_iface(SERVICE_NAME_INETPING6, &sid, 104 INET_PORT_PING6); 95 105 if (rc != EOK) { 96 106 log_msg(LOG_DEFAULT, LVL_ERROR, "Failed registering service (%d).", rc); … … 350 360 inetping_conn(iid, icall, arg); 351 361 break; 362 case INET_PORT_PING6: 363 inetping6_conn(iid, icall, arg); 364 break; 352 365 default: 353 366 async_answer_0(iid, ENOTSUP); … … 416 429 log_msg(LOG_DEFAULT, LVL_DEBUG, "inet_recv_dgram_local()"); 417 430 418 /* ICMP messages are handled internally */431 /* ICMP and ICMPv6 messages are handled internally */ 419 432 if (proto == IP_PROTO_ICMP) 420 433 return icmp_recv(dgram); 434 435 if (proto == IP_PROTO_ICMPV6) 436 return icmpv6_recv(dgram); 421 437 422 438 client = inet_client_find(proto);
Note:
See TracChangeset
for help on using the changeset viewer.