Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/net/inetsrv/inetsrv.h

    r3e6a98c5 r13be2583  
    4040#include <adt/list.h>
    4141#include <stdbool.h>
     42#include <inet/addr.h>
    4243#include <inet/iplink.h>
    4344#include <ipc/loc.h>
    4445#include <sys/types.h>
     46#include <types/inet.h>
    4547#include <async.h>
    4648
     
    6264} inetping_client_t;
    6365
    64 /** Host address */
     66/** Inetping6 Client */
    6567typedef struct {
    66         uint32_t ipv4;
    67 } inet_addr_t;
    68 
    69 /** Network address */
    70 typedef struct {
    71         /** Address */
    72         uint32_t ipv4;
    73         /** Number of valid bits in @c ipv4 */
    74         int bits;
    75 } inet_naddr_t;
    76 
    77 /** Address object info */
    78 typedef struct {
    79         /** Network address */
    80         inet_naddr_t naddr;
    81         /** Link service ID */
    82         sysarg_t ilink;
    83         /** Address object name */
    84         char *name;
    85 } inet_addr_info_t;
    86 
    87 /** IP link info */
    88 typedef struct {
    89         /** Link service name */
    90         char *name;
    91         /** Default MTU */
    92         size_t def_mtu;
    93 } inet_link_info_t;
    94 
    95 /** Static route info */
    96 typedef struct {
    97         /** Destination network address */
    98         inet_naddr_t dest;
    99         /** Router address */
    100         inet_addr_t router;
    101         /** Static route name */
    102         char *name;
    103 } inet_sroute_info_t;
     68        /** Callback session */
     69        async_sess_t *sess;
     70        /** Session identifier */
     71        uint16_t ident;
     72        /** Link to client list */
     73        link_t client_list;
     74} inetping6_client_t;
    10475
    10576typedef struct {
     
    11586        uint8_t ttl;
    11687        /** Identifier */
    117         uint16_t ident;
     88        uint32_t ident;
    11889        /** Do not fragment */
    11990        bool df;
     
    129100
    130101typedef struct {
    131         inet_addr_t src;
    132         inet_addr_t dest;
    133         uint8_t tos;
    134         void *data;
    135         size_t size;
    136 } inet_dgram_t;
    137 
    138 typedef struct {
    139102        link_t link_list;
    140103        service_id_t svc_id;
     
    143106        iplink_t *iplink;
    144107        size_t def_mtu;
     108        addr48_t mac;
     109        bool mac_valid;
    145110} inet_link_t;
    146111
     
    183148} inet_dir_t;
    184149
    185 typedef struct {
    186         inet_addr_t src;
    187         inet_addr_t dest;
    188         uint16_t seq_no;
    189         void *data;
    190         size_t size;
    191 } inetping_sdu_t;
    192 
    193150extern int inet_ev_recv(inet_client_t *, inet_dgram_t *);
    194151extern int inet_recv_packet(inet_packet_t *);
Note: See TracChangeset for help on using the changeset viewer.