Changeset 331 for EcnlProtoTool/trunk/musl-1.1.18/include/netinet
- Timestamp:
- Jan 21, 2018, 12:10:09 AM (6 years ago)
- Location:
- EcnlProtoTool/trunk/musl-1.1.18
- Files:
-
- 5 edited
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
EcnlProtoTool/trunk/musl-1.1.18/include/netinet/if_ether.h
r321 r331 15 15 #define ETH_P_PUP 0x0200 16 16 #define ETH_P_PUPAT 0x0201 17 #define ETH_P_TSN 0x22F0 17 18 #define ETH_P_IP 0x0800 18 19 #define ETH_P_X25 0x0805 … … 52 53 #define ETH_P_802_EX1 0x88B5 53 54 #define ETH_P_TIPC 0x88CA 55 #define ETH_P_MACSEC 0x88E5 54 56 #define ETH_P_8021AH 0x88E7 55 57 #define ETH_P_MVRP 0x88F5 56 58 #define ETH_P_1588 0x88F7 59 #define ETH_P_NCSI 0x88F8 57 60 #define ETH_P_PRP 0x88FB 58 61 #define ETH_P_FCOE 0x8906 … … 60 63 #define ETH_P_FIP 0x8914 61 64 #define ETH_P_80221 0x8917 65 #define ETH_P_HSR 0x892F 62 66 #define ETH_P_LOOPBACK 0x9000 63 67 #define ETH_P_QINQ1 0x9100 … … 93 97 #define ETH_P_IEEE802154 0x00F6 94 98 #define ETH_P_CAIF 0x00F7 99 #define ETH_P_XDSA 0x00F8 95 100 96 101 struct ethhdr { -
EcnlProtoTool/trunk/musl-1.1.18/include/netinet/in.h
r321 r331 14 14 struct in_addr { in_addr_t s_addr; }; 15 15 16 struct sockaddr_in 17 { 16 struct sockaddr_in { 18 17 sa_family_t sin_family; 19 18 in_port_t sin_port; … … 22 21 }; 23 22 24 struct in6_addr 25 { 23 struct in6_addr { 26 24 union { 27 25 uint8_t __s6_addr[16]; … … 34 32 #define s6_addr32 __in6_union.__s6_addr32 35 33 36 struct sockaddr_in6 37 { 34 struct sockaddr_in6 { 38 35 sa_family_t sin6_family; 39 36 in_port_t sin6_port; … … 43 40 }; 44 41 45 struct ipv6_mreq 46 { 42 struct ipv6_mreq { 47 43 struct in6_addr ipv6mr_multiaddr; 48 44 unsigned ipv6mr_interface; … … 73 69 uint32_t ntohl(uint32_t); 74 70 uint16_t ntohs(uint16_t); 71 72 #define IPPORT_RESERVED 1024 75 73 76 74 #define IPPROTO_IP 0 … … 104 102 #define IPPROTO_MH 135 105 103 #define IPPROTO_UDPLITE 136 104 #define IPPROTO_MPLS 137 106 105 #define IPPROTO_RAW 255 107 106 #define IPPROTO_MAX 256 … … 201 200 #define IP_NODEFRAG 22 202 201 #define IP_CHECKSUM 23 202 #define IP_BIND_ADDRESS_NO_PORT 24 203 203 #define IP_MULTICAST_IF 32 204 204 #define IP_MULTICAST_TTL 33 … … 227 227 #define IP_MAX_MEMBERSHIPS 20 228 228 229 struct ip_opts 230 { 229 struct ip_opts { 231 230 struct in_addr ip_dst; 232 231 char ip_opts[40]; … … 246 245 #define MCAST_INCLUDE 1 247 246 248 struct ip_mreq 249 { 247 struct ip_mreq { 250 248 struct in_addr imr_multiaddr; 251 249 struct in_addr imr_interface; 252 250 }; 253 251 254 struct ip_mreqn 255 { 252 struct ip_mreqn { 256 253 struct in_addr imr_multiaddr; 257 254 struct in_addr imr_address; … … 298 295 + (numsrc) * sizeof(struct sockaddr_storage)) 299 296 300 struct in_pktinfo 301 { 297 struct in_pktinfo { 302 298 int ipi_ifindex; 303 299 struct in_addr ipi_spec_dst; … … 305 301 }; 306 302 307 struct in6_pktinfo 308 { 303 struct in6_pktinfo { 309 304 struct in6_addr ipi6_addr; 310 305 unsigned ipi6_ifindex; 311 306 }; 312 307 313 struct ip6_mtuinfo 314 { 308 struct ip6_mtuinfo { 315 309 struct sockaddr_in6 ip6m_addr; 316 310 uint32_t ip6m_mtu; … … 343 337 #define IPV6_IPSEC_POLICY 34 344 338 #define IPV6_XFRM_POLICY 35 339 #define IPV6_HDRINCL 36 345 340 346 341 #define IPV6_RECVPKTINFO 49 … … 393 388 #define IPV6_RTHDR_TYPE_0 0 394 389 390 #define __UAPI_DEF_IN_ADDR 0 391 #define __UAPI_DEF_IN_IPPROTO 0 392 #define __UAPI_DEF_IN_PKTINFO 0 393 #define __UAPI_DEF_IP_MREQ 0 394 #define __UAPI_DEF_SOCKADDR_IN 0 395 #define __UAPI_DEF_IN_CLASS 0 396 #define __UAPI_DEF_IN6_ADDR 0 397 #define __UAPI_DEF_IN6_ADDR_ALT 0 398 #define __UAPI_DEF_SOCKADDR_IN6 0 399 #define __UAPI_DEF_IPV6_MREQ 0 400 #define __UAPI_DEF_IPPROTO_V6 0 401 #define __UAPI_DEF_IPV6_OPTIONS 0 402 #define __UAPI_DEF_IN6_PKTINFO 0 403 #define __UAPI_DEF_IP6_MTUINFO 0 404 395 405 #ifdef __cplusplus 396 406 } -
EcnlProtoTool/trunk/musl-1.1.18/include/netinet/ip_icmp.h
r321 r331 24 24 uint16_t mtu; 25 25 } frag; 26 uint8_t reserved[4]; 26 27 } un; 27 28 }; -
EcnlProtoTool/trunk/musl-1.1.18/include/netinet/tcp.h
r321 r331 28 28 #define TCP_TIMESTAMP 24 29 29 #define TCP_NOTSENT_LOWAT 25 30 #define TCP_CC_INFO 26 31 #define TCP_SAVE_SYN 27 32 #define TCP_SAVED_SYN 28 33 #define TCP_REPAIR_WINDOW 29 30 34 31 35 #define TCP_ESTABLISHED 1 … … 42 46 43 47 #if defined(_GNU_SOURCE) || defined(_BSD_SOURCE) 48 #define TCPOPT_EOL 0 49 #define TCPOPT_NOP 1 50 #define TCPOPT_MAXSEG 2 51 #define TCPOPT_WINDOW 3 52 #define TCPOPT_SACK_PERMITTED 4 53 #define TCPOPT_SACK 5 54 #define TCPOPT_TIMESTAMP 8 55 #define TCPOLEN_SACK_PERMITTED 2 56 #define TCPOLEN_WINDOW 3 57 #define TCPOLEN_MAXSEG 4 58 #define TCPOLEN_TIMESTAMP 10 59 44 60 #define SOL_TCP 6 61 45 62 #include <sys/types.h> 46 63 #include <sys/socket.h> … … 130 147 #define TCP_CA_Loss 4 131 148 132 struct tcp_info 133 { 149 struct tcp_info { 134 150 uint8_t tcpi_state; 135 151 uint8_t tcpi_ca_state; … … 139 155 uint8_t tcpi_options; 140 156 uint8_t tcpi_snd_wscale : 4, tcpi_rcv_wscale : 4; 157 uint8_t tcpi_delivery_rate_app_limited : 1; 141 158 uint32_t tcpi_rto; 142 159 uint32_t tcpi_ato; … … 165 182 uint64_t tcpi_pacing_rate; 166 183 uint64_t tcpi_max_pacing_rate; 184 uint64_t tcpi_bytes_acked; 185 uint64_t tcpi_bytes_received; 186 uint32_t tcpi_segs_out; 187 uint32_t tcpi_segs_in; 188 uint32_t tcpi_notsent_bytes; 189 uint32_t tcpi_min_rtt; 190 uint32_t tcpi_data_segs_in; 191 uint32_t tcpi_data_segs_out; 192 uint64_t tcpi_delivery_rate; 167 193 }; 168 194 169 195 #define TCP_MD5SIG_MAXKEYLEN 80 170 196 171 struct tcp_md5sig 172 { 197 struct tcp_md5sig { 173 198 struct sockaddr_storage tcpm_addr; 174 199 uint16_t __tcpm_pad1; … … 178 203 }; 179 204 180 #endif 181 182 #endif 205 struct tcp_repair_window { 206 uint32_t snd_wl1; 207 uint32_t snd_wnd; 208 uint32_t max_window; 209 uint32_t rcv_wnd; 210 uint32_t rcv_wup; 211 }; 212 213 #endif 214 215 #endif -
EcnlProtoTool/trunk/musl-1.1.18/include/netinet/udp.h
r321 r331 29 29 #define UDP_ENCAP_ESPINUDP 2 30 30 #define UDP_ENCAP_L2TPINUDP 3 31 #define UDP_ENCAP_GTP0 4 32 #define UDP_ENCAP_GTP1U 5 31 33 32 34 #define SOL_UDP 17
Note:
See TracChangeset
for help on using the changeset viewer.