buglwIP - A Lightweight TCP/IP stack - Bugs: bug #37665, ip_canforward operates on address...

 
 

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

bug #37665: ip_canforward operates on address in wrong byte order

Submitter:  Valery Ushakov <uwe>
Submitted:  Sun 04 Nov 2012 12:53:48 AM UTC
   
 
Category:  IPv4 Severity:  3 - Normal
Item Group:  Faulty Behaviour Status:  Fixed
Privacy:  Public Assigned to:  goldsimon
Open/Closed:  Closed Planned Release:  None
lwIP version:  CVS Head

Tue 29 Jan 2013 02:51:15 PM UTC, comment #2: 

Just got around to merge recent changes from the master repo that include this fix.

Nit pick: the fix uses htonl(), but it should use ntohl() since we are converting network order to host order.

Valery Ushakov <uwe>
Tue 15 Jan 2013 08:10:55 PM UTC, comment #1: 

Fixed in git master, thanks for reporting.

Simon Goldschmidt <goldsimon>
Group administrator
Sun 04 Nov 2012 12:53:48 AM UTC, original submission:  

ip_canforward operates on


u32_t addr = ip4_addr_get_u32(ip_current_dest_addr());


that is in network byte order, but applies to it IP_EXPERIMENTAL and IP_CLASSA macros that expect argument in host byte order.

Valery Ushakov <uwe>

 

(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 (Posted a comment)
  • -email is unavailable- added by uwe (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
    2013-01-15 goldsimon StatusNone Fixed
        Assigned toNone goldsimon
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-02a9.
    Corresponding source code