Re: /proc/net/tcp format question

Keith Owens (kaos@ocs.com.au)
Fri, 07 Mar 1997 12:13:50 +1100


On Thu, 06 Mar 1997 11:29:50 EST,
thoth@purplefrog.com wrote:
>cat /proc/net/tcp ...
> *) port numbers are printed MSB->LSB as if someone did a printf("%04x",
>portnum);
> *) internet numbers are printed LSB-)MSB as if someone was dumping the bytes
>one-by-one.
> Lord knows what would break if you made the two consistent (either both host
>order or both network order; I'd prefer the latter).

Anything that reads /proc/net/tcp, netstat for one. Oh no, not another
"my XXXX utility does not work" - "proc has changed, did you upgrade
package YYYY like the docs said?" thread on linux-kernel!