Messages in this thread | | | Date | Mon, 11 Sep 2000 05:12:56 -0700 | From | "David S. Miller" <> | Subject | Re: [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/
| |