8e6e Detect changes in network settings - The FreeBSD Forums
The FreeBSD Forums  

Go Back   The FreeBSD Forums > Development > FreeBSD Development

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

Reply
 
Thread Tools Display Modes
  #1  
Old October 27th, 2011, 16:50
perleo perleo is offline
Junior Member
 
Join Date: Jan 2011
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
Default Detect changes in network settings

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
Reply With Quote
  #2  
Old October 27th, 2011, 17:08
DutchDaemon's Avatar
DutchDaemon DutchDaemon is offline
Administrator
 
Join Date: Nov 2008
Location: Rotterdam, the Netherlands
Posts: 9,838
Thanks: 30
Thanked 1,888 Times in 1,333 Posts
Default

Maybe something to be achieved with kqueue(2) (kevent(2))? See e.g. http://eradman.com/posts/kqueue-tcp.html.
__________________
FreeBSD Forums: Information for New Members | FreeBSD Forums Rules
FreeBSD Resources: The FreeBSD Handbook | Manuals | FAQ | Wiki
Before you post: How to ask questions the smart way
If you must know .. So, what does an Administrator/Moderator do?
---> Do not PM me with FreeBSD questions. I do not work here. <---
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Forgetting network settings on shutdown paulehoffman Networking 10 August 24th, 2011 17:50
Nvidia-settings HDMI LCD detect mibeas Peripheral Hardware 0 November 21st, 2010 23:32
[Solved] Network Settings - "Platform is Not Supported" WideEyedFox Mobile Computing 8 April 30th, 2010 18:10
settings for second network card to router? miscar Networking 14 January 14th, 2009 02:44
cant save settings settings alex9025 General 4 December 1st, 2008 07:21


All times are GMT +1. The time now is 10:16.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.
The mark FreeBSD is a registered trademark of The FreeBSD Foundation and is used by The FreeBSD Project with the permission of The FreeBSD Foundation.
Web protection and acceleration provided by CloudFlare
0