buglwIP - A Lightweight TCP/IP stack - Bugs: bug #31385, sizeof(struct sockaddr) is 30 but...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #31385: sizeof(struct sockaddr) is 30 but should be 16

Submitter:  Simon Goldschmidt <goldsimon>
Submitted:  Wed 20 Oct 2010 02:26:07 PM UTC
   
 
Category:  sockets/netconn Severity:  3 - Normal
Item Group:  Faulty Behaviour Status:  Fixed
Privacy:  Public Assigned to:  goldsimon
Open/Closed:  Closed Planned Release:  None
lwIP version:  CVS Head

Wed 20 Oct 2010 06:00:29 PM UTC, comment #1: 

Already fixed, this has been introduced at in march only, so was not present in 1.3.2.

Simon Goldschmidt <goldsimon>
Group administrator
Wed 20 Oct 2010 02:26:07 PM UTC, original submission:  

struct sockaddr definition currently is

struct sockaddr {
  u8_t sa_len;
  u8_t sa_family;
  u16_t sa_data[14];
};

but should probably be:

struct sockaddr {
  u8_t sa_len;
  u8_t sa_family;
  u8_t sa_data[14];
};

to match other BSD socket implementations and to keep sizeof(struct sockaddr) == sizeof(struct sockaddr_in).

Simon Goldschmidt <goldsimon>
Group administrator

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by goldsimon (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

     

    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2010-10-20 goldsimon StatusNone Fixed
        Assigned toNone goldsimon
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-caa5.
    Corresponding source code