Re: Suggested dual human/binary interface for proc/devfs

From: Matthew Kirkwood (weejock@ferret.lmh.ox.ac.uk)
Date: Tue Apr 11 2000 - 06:00:17 EST


On Tue, 11 Apr 2000 allbery@kf8nh.apk.net wrote:

> eth0:
> {
> ip_address=192.168.201.116
> netmask=255.255.255.0
> alias:
> {
> 192.168.201.117
> 192.168.201.118
> }
> }
>
> is not prohibitively difficult for a shell script to deal with.

Yes it is. Why should it all be in one big file?

# cat /proc/netdev/eth0/address/0/ip
# cat /proc/netdev/eth0/address/0/netmask
# cat /proc/netdev/eth0/address/1/ip
# cat /proc/netdev/eth0/address/2/ip

provides the same information, and is easier to parse.

Matthew.

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



This archive was generated by hypermail 2b29 : Sat Apr 15 2000 - 21:00:15 EST