LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 12-04-2008, 06:22 AM   #1
quotenschwarze
LQ Newbie
 
Registered: Dec 2008
Posts: 1

Rep: Reputation: 0
Listener for Network Connection


Hi there.

Is there any possibility to trigger an event when a network interface goes down or up either by removing the network cable or entering the command "ifconfig ethX down"?

I am looking for a solution where I can register a C function somewhere which is invoked when that event occurs.

Currently I am solving the problem by polling which is too inefficient. Using Arch Linux 2.6.25

Any suggestions?

thanks
 
Old 12-07-2008, 06:40 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 27,112
Blog Entries: 54

Rep: Reputation: 2784Reputation: 2784Reputation: 2784Reputation: 2784Reputation: 2784Reputation: 2784Reputation: 2784Reputation: 2784Reputation: 2784Reputation: 2784Reputation: 2784
Something like (or build something based on) http://freshmeat.net/projects/ifplugd/?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
A way to test for a fifo listener? lumix Linux - Newbie 1 05-17-2008 05:23 PM
usb to serial listener? tnrooster Linux - Software 1 05-01-2007 11:04 AM
smtp listener (sendmail) nabil_boussetta Linux - Networking 4 03-13-2004 10:45 PM
Detecting connection break on serial port listener on linux neelc20 Programming 6 12-04-2003 01:08 AM
Detecting connection break on serial port listener on linux neelc20 Linux - Newbie 3 11-29-2003 03:29 PM


All times are GMT -5. The time now is 06:23 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration