Changeset 331 for EcnlProtoTool/trunk/musl-1.1.18/include/netinet/in.h
- Timestamp:
- Jan 21, 2018, 12:10:09 AM (6 years ago)
- Location:
- EcnlProtoTool/trunk/musl-1.1.18
- Files:
-
- 1 edited
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
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 }
Note:
See TracChangeset
for help on using the changeset viewer.