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