Re: netlink

From: jimmy (jimmy@m-net.arbornet.org)
Date: Thu Jun 01 2000 - 12:08:51 EST


Nelson wrote:
>
> hi,
>
> just to make sure,
>
> what i actually need is the link state change detection.
> When the link is up or when the link goes down, would it be detected and
> triggered an interrupt?

Can you not use something similar to iproute2? It uses the netlink socket
to detect changes in routing table/link state change etc.
I think you do a recvmsg on the netlink socket and see if it is
a link state change. You can get more info on iproute2 at
snafu.freedom.org

-
To unsubscribe from this list: send the line "unsubscribe linux-net" in
the body of a message to majordomo@vger.rutgers.edu



This archive was generated by hypermail 2b29 : Wed Jun 07 2000 - 21:00:32 EST