lwip-devel
[Top][All Lists]
Advanced

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

[lwip-devel] [bug #20590] Byte ordering discrepency in ipv4/ip_addr.h


From: Jared Grubb
Subject: [lwip-devel] [bug #20590] Byte ordering discrepency in ipv4/ip_addr.h
Date: Thu, 26 Jul 2007 03:45:30 +0000
User-agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X; en; rv:1.8.1.4) Gecko/20070509 Camino/1.5

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

                 Summary: Byte ordering discrepency in ipv4/ip_addr.h
                 Project: lwIP - A Lightweight TCP/IP stack
            Submitted by: jgrubb
            Submitted on: Wednesday 07/25/2007 at 20:45
                Category: None
                Severity: 3 - Normal
              Item Group: None
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any
         Planned Release: 

    _______________________________________________________

Details:

I am working on the documentation, and was looking at some of the #define's
in ip_addr.h. I am thinking there is an error in a few of them. Do the
following need to have nhtol() around them? 
* #define INADDR_LOOPBACK ((u32_t)0x7f000001UL)  /* 127.0.0.1 */
* #define IN_CLASSA(a) ((((u32_t)(a)) & 0x80000000UL) == 0)

and a few others in the same idea. Am I right, or is there some assumption
that the comparison is done on a value already in the right order?




    _______________________________________________________

Reply to this item at:

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

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





reply via email to

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