tasklwIP - A Lightweight TCP/IP stack - Tasks: task #1568, Comment whether fields are host or...

 
 

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

task #1568: Comment whether fields are host or network byte order.

Submitter:  Leon Woestenberg <likewise>
Submitted:  -
   
 
Category:  Documentation Should Start On:  Tue 22 Oct 2002 10:00:00 PM UTC
Should be Finished on:  Mon 30 Dec 2002 11:00:00 PM UTC Priority:  3 - Low
Status:  None Privacy:  Public
Assigned to:  None Percent Complete:  50%
Open/Closed:  Closed Planned Release:  None
Effort:  0.00

Mon 18 Jun 2007 07:57:30 PM UTC, comment #3: 

Oh, I just realized my last comment is kind of incomplete...
I think I wanted to write:

Does anyone know of any other places that need comments regarding the byte order? If not, we can close this task!

Simon Goldschmidt <goldsimon>
Group administrator
Thu 17 May 2007 12:22:53 PM UTC, comment #2: 

I added comments to some files:

- ip.h (define IP_PCB): IP addresses in network byte order
- inet.h inet_chksum_pseudo(): IP addresses are expected to be in network byte order.
- tcp.h struct tcp_hdr: Fields are (of course) in network byte order. Some fields are converted to host byte order in tcp_input().
- tcp.h struct tcp_pcb: ports are in host byte order, the rest of the fields are in host byte order as we have to do some math with them
- udp.h struct udp_pcb: ports are in host byte order, recv callback: addr and port are in same byte order as in the pcb

- udp.c (all functions having struct ip_addr and port as an argument): ipaddr & port are expected to be in the same byte order as in the pcb.

- sockets.h: struct sockaddr_in: members are in network byte order

Does anyone

Simon Goldschmidt <goldsimon>
Group administrator
Fri 27 Apr 2007 11:35:26 AM UTC, comment #1: 

Once we know which fields are in network byte order (;-) we could implement defines for individual protocol headers (IP/TCP/UDP/ARP) to use host byte order instead so that we could support accelerating MACs that can change byte order for some known protocols on-the-fly.

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 kieranm (Updated the item)
  • -email is unavailable- added by goldsimon (Posted a comment)
  •  

    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
    2007-07-13 kieranm Open/ClosedOpen Closed
    2007-05-17 goldsimon Percent Complete0% 50%
    2007-04-27 goldsimon Percent CompleteNone 0%

    Back to the top

    Powered by Savane 3.13-d3ae.
    Corresponding source code