obtain routing table



Hello, All!

Is there a portable way (except system("netstsat -rn")) :) ) to get routing
table on *NIX systems. Some (not everywhere) have /proc, so we can try to
read /proc/net/route

Examples with routing sockets from Stevens book, don't work on Linux (at
least on 2.4.20 kernel I run)

Thanks in advance!

With best regards, Roman Mashak. E-mail: mrv@xxxxxxxx


.



Relevant Pages

  • Re: [SLE] sis900 support in SuSE 9.1 is broken!
    ... >> Regards, ... >> Marcos Lazarini ... > A Linux Only area Happy bug hunting M$ clan ... the patch to the kernel fixed my problem! ...
    (SuSE)
  • Re: urgent help required
    ... i have got software and is only combitible with linux ... >> and new kernel ... > which shows that RH9 had a default distribution as follows: ... > Regards, Mike Klinke ...
    (RedHat)
  • Re: No NFS after upgrading to 9.1
    ... running SuSE 9.1 Pro with Kernel 2.6.4-52. ... Regards, Torsten ... Linux is like a Wigwam: No Windows, no Gates - but Apache inside! ...
    (alt.os.linux.suse)
  • random numbers
    ... I need to generate randomly numbers from the range on linux 2.4.20 ... kernel. ... What are the most reliable methods to achive this, ... With best regards, Roman Mashak. ...
    (comp.programming)
  • random numbers
    ... I need to generate randomly numbers from the range on linux 2.4.20 ... kernel. ... What are the most reliable methods to achive this, ... With best regards, Roman Mashak. ...
    (comp.os.linux.development.system)