Changes in uspace/srv/net/inetsrv/inetsrv.h [13be2583:3e6a98c5] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/net/inetsrv/inetsrv.h
r13be2583 r3e6a98c5 40 40 #include <adt/list.h> 41 41 #include <stdbool.h> 42 #include <inet/addr.h>43 42 #include <inet/iplink.h> 44 43 #include <ipc/loc.h> 45 44 #include <sys/types.h> 46 #include <types/inet.h>47 45 #include <async.h> 48 46 … … 64 62 } inetping_client_t; 65 63 66 /** Inetping6 Client */ 67 typedef struct { 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; 64 /** Host address */ 65 typedef 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; 75 104 76 105 typedef struct { … … 86 115 uint8_t ttl; 87 116 /** Identifier */ 88 uint 32_t ident;117 uint16_t ident; 89 118 /** Do not fragment */ 90 119 bool df; … … 100 129 101 130 typedef 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 { 102 139 link_t link_list; 103 140 service_id_t svc_id; … … 106 143 iplink_t *iplink; 107 144 size_t def_mtu; 108 addr48_t mac;109 bool mac_valid;110 145 } inet_link_t; 111 146 … … 148 183 } inet_dir_t; 149 184 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 150 193 extern int inet_ev_recv(inet_client_t *, inet_dgram_t *); 151 194 extern int inet_recv_packet(inet_packet_t *);
Note:
See TracChangeset
for help on using the changeset viewer.