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 04:31:59 +0000
User-agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)

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

                 Summary: struct sockaddr
                 Project: lwIP - A Lightweight TCP/IP stack
            Submitted by: hanhui03
            Submitted on: Sat Mar 13 04:31:59 2010
                Category: sockets
                Severity: 3 - Normal
              Item Group: Change Request
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any
         Planned Release: 
            lwIP version: CVS Head

    _______________________________________________________

Details:

In most systems. 

struct sockaddr is defined as:

struct sockaddr {
unsigned   short   sa_family;
           char    sa_data[14];
};

Definition of the lwip current method of sockaddr may cause compatibility
problems. 

for example: (a wifi driver example)
======================================================
struct sockaddr    tmp;
memset(&tmp.sa_data, 0, 14);
======================================================






    _______________________________________________________

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]