Changeset 6428115 in mainline for uspace/srv/inet/inet.h


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.

File:
1 edited

Legend:

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

    rffa8912 r6428115  
    5050        link_t client_list;
    5151} inet_client_t;
     52
     53/** Inetping Client */
     54typedef struct {
     55        /** Callback session */
     56        async_sess_t *sess;
     57        /** Session identifier */
     58        uint16_t ident;
     59        /** Link to client list */
     60        link_t client_list;
     61} inetping_client_t;
    5262
    5363/** Host address */
     
    115125} inet_addrobj_t;
    116126
     127typedef struct {
     128        inet_addr_t src;
     129        inet_addr_t dest;
     130        uint16_t seq_no;
     131        void *data;
     132        size_t size;
     133} inetping_sdu_t;
     134
    117135extern int inet_ev_recv(inet_client_t *, inet_dgram_t *);
    118136extern int inet_recv_packet(inet_packet_t *);
    119137extern int inet_route_packet(inet_dgram_t *, uint8_t, uint8_t, int);
     138extern int inet_get_srcaddr(inet_addr_t *, uint8_t, inet_addr_t *);
     139
    120140
    121141#endif
Note: See TracChangeset for help on using the changeset viewer.