Changeset 50169 in vbox for trunk/src/VBox/Devices
- Timestamp:
- Jan 23, 2014 3:40:12 AM (11 years ago)
- Location:
- trunk/src/VBox/Devices/Network/lwip-new
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Network/lwip-new/CHANGELOG
r47886 r50169 80 80 81 81 ++ Bugfixes: 82 83 2013-06-29: Simon Goldschmidt 84 * inet.h, sockets.h: partially fixed bug #37585: IPv6 compatibility (in socket structs) 85 86 2013-06-29: Simon Goldschmidt 87 * inet6.h: bug #37585/task #12600: fixed struct in6_addr.s6_addr to conform to spec 82 88 83 89 2013-04-24: patch by Liam <morepork> -
trunk/src/VBox/Devices/Network/lwip-new/src/include/ipv4/lwip/inet.h
r47886 r50169 41 41 #endif 42 42 43 /* If your port already typedef's in_addr_t, define IN_ADDR_T_DEFINED 44 to prevent this code from redefining it. */ 45 #if !defined(in_addr_t) && !defined(IN_ADDR_T_DEFINED) 46 typedef u32_t in_addr_t; 47 #endif 43 48 /** For compatibility with BSD code */ 44 49 struct in_addr { 45 u32_t s_addr;50 in_addr_t s_addr; 46 51 }; 47 52 -
trunk/src/VBox/Devices/Network/lwip-new/src/include/ipv6/lwip/inet6.h
r47886 r50169 59 59 u32_t u32_addr[4]; 60 60 } un; 61 #define s6_addr un.u 32_addr61 #define s6_addr un.u8_addr 62 62 }; 63 63 -
trunk/src/VBox/Devices/Network/lwip-new/src/include/lwip/sockets.h
r47886 r50169 49 49 #endif 50 50 51 /* If your port already typedef's sa_family_t, define SA_FAMILY_T_DEFINED 52 to prevent this code from redefining it. */ 53 #if !defined(sa_family_t) && !defined(SA_FAMILY_T_DEFINED) 54 typedef u8_t sa_family_t; 55 #endif 56 /* If your port already typedef's in_port_t, define IN_PORT_T_DEFINED 57 to prevent this code from redefining it. */ 58 #if !defined(in_port_t) && !defined(IN_PORT_T_DEFINED) 59 typedef u16_t in_port_t; 60 #endif 61 51 62 /* members are in network byte order */ 52 63 struct sockaddr_in { 53 u8_t sin_len;54 u8_tsin_family;55 u16_tsin_port;56 struct in_addr sin_addr;64 u8_t sin_len; 65 sa_family_t sin_family; 66 in_port_t sin_port; 67 struct in_addr sin_addr; 57 68 #define SIN_ZERO_LEN 8 58 char sin_zero[SIN_ZERO_LEN];69 char sin_zero[SIN_ZERO_LEN]; 59 70 }; 60 71 61 72 #if LWIP_IPV6 62 73 struct sockaddr_in6 { 63 u8_t sin6_len;/* length of this structure */64 u8_t sin6_family;/* AF_INET6 */65 u16_t sin6_port;/* Transport layer port # */66 u32_t sin6_flowinfo;/* IPv6 flow information */67 struct in6_addr sin6_addr; /* IPv6 address */74 u8_t sin6_len; /* length of this structure */ 75 sa_family_t sin6_family; /* AF_INET6 */ 76 in_port_t sin6_port; /* Transport layer port # */ 77 u32_t sin6_flowinfo; /* IPv6 flow information */ 78 struct in6_addr sin6_addr; /* IPv6 address */ 68 79 }; 69 80 #endif /* LWIP_IPV6 */ 70 81 71 82 struct sockaddr { 72 u8_t sa_len;73 u8_t sa_family;74 #if LWIP_IPV6 75 u8_tsa_data[22];83 u8_t sa_len; 84 sa_family_t sa_family; 85 #if LWIP_IPV6 86 char sa_data[22]; 76 87 #else /* LWIP_IPV6 */ 77 u8_t sa_data[14]; 88 char sa_data[14]; 89 #endif /* LWIP_IPV6 */ 90 }; 91 92 struct sockaddr_storage { 93 u8_t s2_len; 94 sa_family_t ss_family; 95 char s2_data1[2]; 96 u32_t s2_data2[3]; 97 #if LWIP_IPV6 98 u32_t s2_data3[2]; 78 99 #endif /* LWIP_IPV6 */ 79 100 };
Note:
See TracChangeset
for help on using the changeset viewer.