[LARTC] Accessing TC objects via netlink interface

Patrick McHardy kaber@trash.net
Thu, 11 Dec 2003 15:39:22 +0100


rajkumars@asianetindia.com wrote:
> Hi,
> 
> While going through the README of Michal's SNMP extension, he collects stats using netlink interface. Is their any howto or other docs to learn how it works? 
> 
> raj
> 
> _______________________________________________
> LARTC mailing list / LARTC@mailman.ds9a.nl
> http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/


The most useful places I can think of are:

- kernel: include/linux/rtnetlink.h, include/linux/pkt_sched.h
- kernel: net/core/sched_api.c, net/core/rtnetlink.c
- iproute2 source, look especially at rtnl_wilddump_request,
   rtnl_dump_filter and rtnl_talk
- netlink man pages
- Jamal Hadi's netlink over IP RFC draft

Best regards,
Patrick