Re: [patch] /proc/net/{tcp,udp,raw} cleanup

From: David S. Miller (davem@redhat.com)
Date: Mon Sep 11 2000 - 07:12:56 EST


   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/



This archive was generated by hypermail 2b29 : Fri Sep 15 2000 - 21:00:14 EST