Detect changes in network settings

Kernel development, writing drivers, coding, and questions regarding FreeBSD internals.

Detect changes in network settings

Postby perleo » 27 Oct 2011, 15:50

Can anyone guide me into a way of detecting changes in network settings (IP address, default gateway, connected wireless network) in the kernel space?

Doing some playing with the kernel so I'd like to be able to detect these changes as they happen and perform a few tasks when they happen.

Thanks
perleo
Junior Member
 
Posts: 14
Joined: 26 Jan 2011, 12:38

Postby DutchDaemon » 27 Oct 2011, 16:08

Maybe something to be achieved with [man=2]kqueue[/man] ([man=2]kevent[/man])? See e.g. http://eradman.com/posts/kqueue-tcp.html.
User avatar
DutchDaemon
Old Fart
 
Posts: 10463
Joined: 16 Nov 2008, 20:17
Location: The Netherlands


Return to FreeBSD Development

Who is online

Users browsing this forum: No registered users and 1 guest