[TriLUG] netlink sockets

Michael Alan Dorman mdorman at debian.org
Wed May 8 09:27:10 EDT 2002


"John F Davis" <johndavi at us.ibm.com> writes:
> Does anybody know anything about netlink sockets?  I'm a little confused.
> I understand netlink sockets can be used to update the routing table and to
> get routing table updates,
> but can netlink sockets be used to get interface link messages?  How about
> network interface ifconfig up and down notifications?  Also, I want to get
> these notifications in user space.
> Any idea?

Nothing direct, but the laptop-net package in Debian has a daemon
called ifd that watches a port and initiates various actions when it
connects or disconnects.  You could probably crib some of what you're
looking for from that:

http://http.us.debian.org/debian/pool/main/l/laptop-net/laptop-net_2.7.orig.tar.gz

Mike.



More information about the TriLUG mailing list