Results 1 to 3 of 3
Can one detect when the address of a network interface has changed programmatically?
Can one detect when the network interface went down?
Furthermore how can I get statistical information ex ...
- 05-14-2008 #1Just Joined!
- Join Date
- May 2008
- Posts
- 1
Detect Network Change
Can one detect when the address of a network interface has changed programmatically?
Can one detect when the network interface went down?
Furthermore how can I get statistical information ex the received and send packets from the interface.
Many Thanks,
Albert
- 05-17-2008 #2
Yes. And this thread ought to be moved to "Linux Programming & Scripting."
Otherwise, a good understanding of creating Linux daemons and shell scripting is helpful.
- 05-17-2008 #3Linux Guru
- Join Date
- Nov 2004
- Posts
- 6,110
If you can use DBUS and are using Network Manager you can query NM directly.
http://people.redhat.com/dcbw/Networ...DBUS%20API.txt
Also, moving to Programming/Scripting


Reply With Quote