Re: Patch to fix /proc/net files.

Vojtech Pavlik (vojtech-lists@twilight.ucw.cz)
Wed, 28 Oct 1998 19:47:47 +0100


On Wed, Oct 28, 1998 at 03:43:20PM +0100, Matthias Welwarsky wrote:

> > On Wed, Oct 28, 1998 at 01:10:24PM +0000, Alan Cox wrote:
> > > > This patch should convert /proc/net/{raw,tcp,udp} so that the various
> > > > IP addresses therein are shown in dotted quad format rather than in
> > > > little-endian hex integers.
> > >
> > > Changing the format is an even worse idea
> >
> > * Changing the format is a bad idea.
> > * Leaving things as they are is a bad idea.
> > * Just changing the endianity is a bad idea.
> >
> > Hmm, is there anything else to do except going with a bad idea then?
> >
>
> Guess no. After all the format isn't that bad, maybe it is not human
> readable but as changing the format would break existing binaries, this
> should be taken very carefully. I suggested changing the endianess to
> network byte order, but Andreas is quite right in pointing out, that
> using htonl() on application level would be the more sensible solution.
>
> So, I think the right way is not to have the /proc/net/* stuff be very
> descriptive but informative, just like the new /proc/pci implementation

Yes, this makes sense. How about the time stuff? (jiffies & co)

Vojtech Pavlik

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/