Re: Netlink usage

David S. Miller (davem@redhat.com)
Fri, 3 Sep 1999 13:48:40 -0700


Date: Fri, 3 Sep 1999 13:33:45 -0700 (PDT)
From: Elizabeth Royer <Elizabeth.Royer@eng.sun.com>

Does anyone know how to use netlink sockets to communicate between
the kernel and a user daemon? I am writing a routing daemon and I
need to use netlink to update (ADD, DELETE, and GETROUTE) the
kernel routing tables. Does anyone know how to do this, or can you
point me in the direction of documentation about netlink?

The best (and only) documentation are code bases which make use of
netlink. Two decent examples I can think of are:

1) http://www.zebra.org, the GNU Zebra routing daemon which uses
netlink for it's Linux support.

2) The iproute utility suite from Alexey Kuznetsov (creator of netlink
in fact) available from:
ftp://ftp.inr.ac.ru/ip-routing/iproute2-current.tar.gz

Later,
David S. Miller
davem@redhat.com
-
To unsubscribe from this list: send the line "unsubscribe linux-net" in
the body of a message to majordomo@vger.rutgers.edu