Skip to contentSkip to conversation

netlink socket help

DISCUSSION Jyotheeswara Rao Kurma 2 participants 2 messages Dec 5, 2001

lore
Share & tools
lore
#0 lore raw
Quoted 8 lines
Quoted 3 lines

How to get kernel route table ( not cache ) into user space , using netlink sockets, i tried with NLM_F_ROOT option. but it is

giving the

Quoted 1 line

route cache .

Don't set the RTM_F_CLONED flag in the request.

But still getting entries more than what route/netstat command is showing. Any thing else ?

Quoted 2 lines

-Andi

-------------------------------------------------------------------------------------------------------------------------
Information transmitted by this E-MAIL is proprietary to Wipro and/or its Customers and is intended for use only by the individual or entity to which it is addressed, and may contain information that is privileged, confidential or exempt from disclosure under applicable law. If you are not the intended recipient or it appears that this mail has been forwarded to you without proper authority, you are notified that any use or dissemination of this information in any manner is strictly prohibited. In such cases, please notify us immediately at mailto:[email protected] and delete this mail from your records.
----------------------------------------------------------------------------------------------------------------------

#1 lore raw
Quoted 11 lines · Jyotheeswara Rao Kurma
Quoted 8 lines
Quoted 3 lines

How to get kernel route table ( not cache ) into user space , using netlink sockets, i tried with NLM_F_ROOT option. but it is

giving the

Quoted 1 line

route cache .

Don't set the RTM_F_CLONED flag in the request.

But still getting entries more than what route/netstat command is showing. Any thing else ?

route/netsta don't show the whole picture. they are just for compatibility and just show what can be expressed in the old ioctls. The in kernel routing table is more rich.

-Andi