Re: Patch to fix /proc/net files.

Andreas Schwab (schwab@issan.informatik.uni-dortmund.de)
28 Oct 1998 14:14:08 +0100


Matthias Welwarsky <matze@stud.fbi.fh-darmstadt.de> writes:

|> 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
|> >
|>
|> net-tools need the /proc/net stuff quite a lot, and from this point of
|> view having the data in network byte order would be a good thing, I
|> think. Only minor changes on application level, and it would ease
|> maintaining net-tools across the multiple platforms.

Using htonl in net-tools isn't a big deal either, and works across all
platforms.

-- 
Andreas Schwab                                      "And now for something
schwab@issan.cs.uni-dortmund.de                      completely different"
schwab@gnu.org

- 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/