lkml.org 
[lkml]   [1998]   [Oct]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Patch to fix /proc/net files.
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/

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