Erste Seite Zurück Weiter Letzte Seite Übersicht Grafik
Receiving a netlink message
Fill a buffer using recvmsg() from a netlink socket.
First nlmsghdr is beginning of buffer.
Check if it is not truncated using NLMSG_OK
Check the type and it you're interested in it get the payload using NLMSG_DATA. For rtnetlink don't forget the rta attributes.
Get next message using NLMSG_NEXT