lwip-devel
[Top][All Lists]
Advanced

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

[lwip-devel] [bug #27352] Change ip_addr from struct to typedef (u32_t)


From: Stephane Lesage
Subject: [lwip-devel] [bug #27352] Change ip_addr from struct to typedef (u32_t)
Date: Sat, 13 Feb 2010 20:20:43 +0000
User-agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 2.0.50727; .NET CLR 1.1.4322; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)

Follow-up Comment #41, bug #27352 (project lwip):

Hi all,

I've prepared a patch that removes the packing constraint on struct _ip_addr.
Given that Simon already abstracted the ip_addr_t type, it will be very easy
to typedef it to u32_t.

What it does:
- include my previous patch for ip_addr_copy/ip_addr_set_safe
- copy before calling raw api callbacks
- copy before calling tcp_rst (maybe we could use the pcb addresses?)
- copy before calling a few other functions
- changed inet_chksum_pseudo to use u32_t as it's v4 specific, and it would
be silly to copy before, pass pointer and copy inside.

What it does not:
- solve the netbuf issue which stores a pointer inside the pbuf which may be
misaligned



(file #19698)
    _______________________________________________________

Additional Item Attachment:

File name: ip_addr_not_packed.patch       Size:36 KB


    _______________________________________________________

Reply to this item at:

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

_______________________________________________
  Message posté via/par Savannah
  http://savannah.nongnu.org/





reply via email to

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