Oh..sorry !!
To be more specific, what i need is to have a module(language is c) which triggers an event whenever routing table gets updated. Also, my module should get the updated routing table entry. I know something like this can be done using netlink sockets, but not sure how to do !!
The first step of this module is to copy entire routing table to user space and thereafter get the updates.
hope this clarifies...