lkml.org 
[lkml]   [2000]   [Sep]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [patch] /proc/net/{tcp,udp,raw} cleanup
   From: Marc Zyngier <mzyngier@freesurf.fr>
Date: 11 Sep 2000 14:14:01 +0200

/proc/net/{tcp,udp,raw} show IPv4 addresses with host order, while
port is shown with network order. The included patch adds the
needed ntohl(). Not very usefull, but hopefully correct.

Are sure that netstat and other tools don't "fix" this?
I just checked, and they in fact do take care of byte swapping what
needs to be byte-swapped.

Thus, this patch would break more than it would fix.

Later,
David S. Miller
davem@redhat.com
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 12:38    [W:0.060 / U:0.252 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site