How to obtain routing information from a cache object

Thomas Lloyd thomas.lloyd at actual-experience.com
Mon Apr 10 05:32:51 PDT 2017


Hi All,

I have been looking through the libnl documentation and come across the
cache manager functionality.

My end goal is to query the next hop for a specific IP address. So
basically what nl-route-get is providing.

Is it possible to query the cache rather than send a netlink message each
time I want to query routing information.

I can imagine that keeping the cache up to date is straight forward
however I don't see how you use the cache to get the
routing information rather than sending a nl message.

I have the nl message sending code working but would it be possible to use
a cache/manager implementation.

Are there any examples of what I am trying to do or did I misunderstand
how the cache can be used.

Thanks,

Tom

-- 
Registered Office: Actual Experience plc
Quay House, The Ambury, Bath BA1 1UA,
Registered No. 06838738, VAT No. 971 9696 56

The information transmitted is intended only for the person or entity to 
which it is addressed and may contain confidential and/or privileged 
material. Any review, retransmission, dissemination or other use of, or 
taking of any action in reliance upon, this information by persons or 
entities other than the intended recipient is prohibited. If you received 
this in error, please contact the sender and delete the material from any 
computer. Although we routinely screen for viruses, addressees should check 
this e-mail and any attachment for viruses. We make no warranty as to 
absence of viruses in this e-mail or any attachments.





More information about the libnl mailing list