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

From: Andi Kleen (ak@suse.de)
Date: Mon Sep 11 2000 - 08:10:53 EST


On Mon, Sep 11, 2000 at 02:37:16PM +0200, Marc Zyngier wrote:
> >>>>> "David" == David S Miller <davem@redhat.com> writes:
>
> David> Are sure that netstat and other tools don't "fix" this?
> David> I just checked, and they in fact do take care of byte swapping
> David> what needs to be byte-swapped.
>
> David> Thus, this patch would break more than it would fix.
>
> Oops, you're right... Well, let's leave it the way it is.

If you want to have human readable ports it is much better to fix
the socket handling in d_path() to call a socket function. Then you
could read connections by doing a readlink/ls -l on /proc/<pid>/fd/nr
[I did it before 2.2 and it was very nice, but the patch fell to the
code freeze]

-Andi

-
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