All of lore.kernel.org
 help / color / mirror / Atom feed
* [LARTC] Accessing TC objects via netlink interface
@ 2003-12-11 12:23 rajkumars
  2003-12-11 13:48 ` Lawrence MacIntyre
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: rajkumars @ 2003-12-11 12:23 UTC (permalink / raw)
  To: lartc

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/

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [LARTC] Accessing TC objects via netlink interface
  2003-12-11 12:23 [LARTC] Accessing TC objects via netlink interface rajkumars
@ 2003-12-11 13:48 ` Lawrence MacIntyre
  2003-12-11 14:39 ` Patrick McHardy
  2003-12-11 15:14 ` Michal Charvat
  2 siblings, 0 replies; 4+ messages in thread
From: Lawrence MacIntyre @ 2003-12-11 13:48 UTC (permalink / raw)
  To: lartc

[-- Attachment #1: Type: text/plain, Size: 1180 bytes --]

raj:

This is one of the most sparsely documented parts of linux.  The only
places I know of are:

man 3 netlink
man 7 netlink
man 3 rtnetlink
man 7 rtnetlink
the kernel source
in man netlink, you find a reference to
ftp://ftp.inr.ac.ru/ip‐routing/iproute2* for libnetlink

The code is clearly designed to be as efficient as possible, and much of
the protocol involves context, which makes it quite difficult to figure
out.  OTOH, you can do things with linux/netlink which would require
kernel mods with any other operating system, so I'm just glad it's
there.

On Thu, 2003-12-11 at 07:23, 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/
-- 
    Lawrence MacIntyre     865.574.8696     lpz@ornl.gov
               Oak Ridge National Laboratory
High Performance Information Infrastructure Technology Group


[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [LARTC] Accessing TC objects via netlink interface
  2003-12-11 12:23 [LARTC] Accessing TC objects via netlink interface rajkumars
  2003-12-11 13:48 ` Lawrence MacIntyre
@ 2003-12-11 14:39 ` Patrick McHardy
  2003-12-11 15:14 ` Michal Charvat
  2 siblings, 0 replies; 4+ messages in thread
From: Patrick McHardy @ 2003-12-11 14:39 UTC (permalink / raw)
  To: lartc

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

_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [LARTC] Accessing TC objects via netlink interface
  2003-12-11 12:23 [LARTC] Accessing TC objects via netlink interface rajkumars
  2003-12-11 13:48 ` Lawrence MacIntyre
  2003-12-11 14:39 ` Patrick McHardy
@ 2003-12-11 15:14 ` Michal Charvat
  2 siblings, 0 replies; 4+ messages in thread
From: Michal Charvat @ 2003-12-11 15:14 UTC (permalink / raw)
  To: lartc

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset="windows-1252", Size: 1862 bytes --]

When I started programming, I had same question. Where is the
documentation...

man pages are poor - incomplete

try:

http://qos.ittc.ku.edu/netlink/html/

That paper talks about rtnetlink messages in order to modify routing
table, but creating of qdiscs, filters and classes is similar. Ale my
knowledge is from reading tc utility source :-(

Michal Charvat
Prokon R.B.S. Louny v.o.s.


On Thu, 11 Dec 2003, Lawrence MacIntyre wrote:

> raj:
>
> This is one of the most sparsely documented parts of linux.  The only
> places I know of are:
>
> man 3 netlink
> man 7 netlink
> man 3 rtnetlink
> man 7 rtnetlink
> the kernel source
> in man netlink, you find a reference to
> ftp://ftp.inr.ac.ru/ip‐routing/iproute2* for libnetlink
>
> The code is clearly designed to be as efficient as possible, and much of
> the protocol involves context, which makes it quite difficult to figure
> out.  OTOH, you can do things with linux/netlink which would require
> kernel mods with any other operating system, so I'm just glad it's
> there.
>
> On Thu, 2003-12-11 at 07:23, 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/
> --
>     Lawrence MacIntyre     865.574.8696     lpz@ornl.gov
>                Oak Ridge National Laboratory
> High Performance Information Infrastructure Technology Group
>
>
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2003-12-11 15:14 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-12-11 12:23 [LARTC] Accessing TC objects via netlink interface rajkumars
2003-12-11 13:48 ` Lawrence MacIntyre
2003-12-11 14:39 ` Patrick McHardy
2003-12-11 15:14 ` Michal Charvat

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.