[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lwip-devel] [task #1568] Comment whether fields are host or network byt
From: |
Simon Goldschmidt |
Subject: |
[lwip-devel] [task #1568] Comment whether fields are host or network byte order. |
Date: |
Thu, 17 May 2007 12:22:54 +0000 |
User-agent: |
Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.8.1.3) Gecko/20070309 Firefox/2.0.0.3 |
Follow-up Comment #2, task #1568 (project lwip):
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
_______________________________________________________
Reply to this item at:
<http://savannah.nongnu.org/task/?1568>
_______________________________________________
Nachricht geschickt von/durch Savannah
http://savannah.nongnu.org/
- [lwip-devel] [task #1568] Comment whether fields are host or network byte order.,
Simon Goldschmidt <=