Changeset 6428115 in mainline for uspace/lib/c


Ignore:
Timestamp:
2012-03-11T23:07:29Z (13 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
3b3c689
Parents:
ffa8912
Message:

Ping utility, ICMP echo send and receive.

Location:
uspace/lib/c
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/c/Makefile

    rffa8912 r6428115  
    8989        generic/inet.c \
    9090        generic/inetcfg.c \
     91        generic/inetping.c \
    9192        generic/io/asprintf.c \
    9293        generic/io/io.c \
  • uspace/lib/c/include/ipc/inet.h

    rffa8912 r6428115  
    4343        INET_PORT_DEFAULT = 1,
    4444        /** Configuration port */
    45         INET_PORT_CFG
     45        INET_PORT_CFG,
     46        /** Ping service port */
     47        INET_PORT_PING
    4648} inet_port_t;
    4749
     
    7072} inetcfg_request_t;
    7173
     74/** Events on Inet ping port */
     75typedef enum {
     76        INETPING_EV_RECV = IPC_FIRST_USER_METHOD
     77} inetping_event_t;
     78
     79/** Requests on Inet ping port */
     80typedef enum {
     81        INETPING_SEND = IPC_FIRST_USER_METHOD,
     82        INETPING_GET_SRCADDR
     83} inetping_request_t;
     84
    7285#endif
    7386
  • uspace/lib/c/include/ipc/services.h

    rffa8912 r6428115  
    5252} services_t;
    5353
    54 #define SERVICE_NAME_INET    "net/inet"
    55 #define SERVICE_NAME_INETCFG "net/inetcfg"
     54#define SERVICE_NAME_INET     "net/inet"
     55#define SERVICE_NAME_INETCFG  "net/inetcfg"
     56#define SERVICE_NAME_INETPING "net/inetping"
    5657
    5758#endif
Note: See TracChangeset for help on using the changeset viewer.