lwip-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lwip-devel] [bug #29210] struct sockaddr


From: hanhui
Subject: [lwip-devel] [bug #29210] struct sockaddr
Date: Sat, 13 Mar 2010 13:37:03 +0000
User-agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; .NET CLR 1.1.4322; MEGAUPLOAD 2.0)

Follow-up Comment #3, bug #29210 (project lwip):

I suggest that you can use the following definition:

struct sockaddr {
  u8_t sa_len;
  u8_t sa_family;
  union {
    char bytes[14];
    struct {
      u16_t a1;
      u32_t a2;
    } alignment;
  } data;
#define sa_data    data.bytes
};

    _______________________________________________________

Reply to this item at:

  <http://savannah.nongnu.org/bugs/?29210>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.nongnu.org/





reply via email to

[Prev in Thread] Current Thread [Next in Thread]