VirtualBox

Changeset 50169 in vbox for trunk/src/VBox/Devices


Ignore:
Timestamp:
Jan 23, 2014 3:40:12 AM (11 years ago)
Author:
vboxsync
Message:

lwip: Sync with git master up to
commit ae300c98a4107458d0aa040c074d89ee9d3ac984
Date: Sat Jun 29 21:47:22 2013 +0200

These git commits don't affect VBox, same object code is generated.

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  
    8080
    8181 ++ 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
    8288
    8389  2013-04-24: patch by Liam <morepork>
  • trunk/src/VBox/Devices/Network/lwip-new/src/include/ipv4/lwip/inet.h

    r47886 r50169  
    4141#endif
    4242
     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)
     46typedef u32_t in_addr_t;
     47#endif
    4348/** For compatibility with BSD code */
    4449struct in_addr {
    45   u32_t s_addr;
     50  in_addr_t s_addr;
    4651};
    4752
  • trunk/src/VBox/Devices/Network/lwip-new/src/include/ipv6/lwip/inet6.h

    r47886 r50169  
    5959    u32_t u32_addr[4];
    6060  } un;
    61 #define s6_addr  un.u32_addr
     61#define s6_addr  un.u8_addr
    6262};
    6363
  • trunk/src/VBox/Devices/Network/lwip-new/src/include/lwip/sockets.h

    r47886 r50169  
    4949#endif
    5050
     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)
     54typedef 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)
     59typedef u16_t in_port_t;
     60#endif
     61
    5162/* members are in network byte order */
    5263struct sockaddr_in {
    53   u8_t sin_len;
    54   u8_t sin_family;
    55   u16_t sin_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;
    5768#define SIN_ZERO_LEN 8
    58   char sin_zero[SIN_ZERO_LEN];
     69  char            sin_zero[SIN_ZERO_LEN];
    5970};
    6071
    6172#if LWIP_IPV6
    6273struct 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             */
    6879};
    6980#endif /* LWIP_IPV6 */
    7081
    7182struct sockaddr {
    72   u8_t sa_len;
    73   u8_t sa_family;
    74 #if LWIP_IPV6
    75   u8_t sa_data[22];
     83  u8_t        sa_len;
     84  sa_family_t sa_family;
     85#if LWIP_IPV6
     86  char        sa_data[22];
    7687#else /* LWIP_IPV6 */
    77   u8_t sa_data[14];
     88  char        sa_data[14];
     89#endif /* LWIP_IPV6 */
     90};
     91
     92struct 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];
    7899#endif /* LWIP_IPV6 */
    79100};
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette