Re: Route count

Linux Advanced Routing and Traffic Control

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 2/10/21 1:11 AM, Anton Danilov wrote:
Hello.

Hi Anton,

Instead of fetching all content of a route table, you can parse the /proc/net/fib_triestat file. It contents the number of prefixes for every routing table.

Perfect!

That's exactly what I was wanting.

Now I just need to put together a simple script to parse /proc/net/fib_triestat. I suspect awk, or maybe even sed, will do quite nicely.



--
Grant. . . .
unix || die

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature


[Index of Archives]     [LARTC Home Page]     [Netfilter]     [Netfilter Development]     [Network Development]     [Bugtraq]     [GCC Help]     [Yosemite News]     [Linux Kernel]     [Fedora Users]
  Powered by Linux