[mythtv] [PATCH]: show IP address in system status screen
Tom Marshall
tommy at home.tig-grr.com
Mon Mar 8 14:07:24 EST 2004
On Mon, Mar 08, 2004 at 03:02:24PM +0100, eric moors wrote:
> I took the replies of Oscar and Tom into account and created a new patch.
> I just chose a few frequently used interfaces to iterate over. I think the
> subset is easily enough extended if I missed something (no doubt that I
> missed some). I just don't know what a good set of interfaces should
> contain. (All I've ever used are ppp and eth)
You can use the code from net-tools (apt-get source net-tools) as an example
for retrieving the interface list. Look in lib/interface.c. It has code
for both procfs style (if_readlist_proc) and ioctl style (if_readconf).
--
Majority, n.:
That quality that distinguishes a crime from a law.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 240 bytes
Desc: not available
Url : http://mythtv.org/pipermail/mythtv-dev/attachments/20040308/27bf7d00/attachment.pgp
More information about the mythtv-dev
mailing list