[Guessnet-devel] [svn] r179 - in trunk: . debian src

Enrico Zini enrico at costa.debian.org
Sat Sep 23 23:45:35 UTC 2006


Author: enrico
Date: Sat Sep 23 23:45:33 2006
New Revision: 179

Modified:
   trunk/   (props changed)
   trunk/debian/changelog
   trunk/src/IFace.cc
   trunk/src/guessnet.cc
Log:
 r458 at viaza:  enrico | 2006-09-23 17:17:05 +0100
 Really handle error cases


Modified: trunk/debian/changelog
==============================================================================
--- trunk/debian/changelog	(original)
+++ trunk/debian/changelog	Sat Sep 23 23:45:33 2006
@@ -1,4 +1,4 @@
-guessnet (0.40-1) unstable; urgency=low
+guessnet (0.40-1~unreleased1) unstable; urgency=low
 
   [ Joachim Breitner ]
   * test-wireless makes wireless interface lose association (Closes:

Modified: trunk/src/IFace.cc
==============================================================================
--- trunk/src/IFace.cc	(original)
+++ trunk/src/IFace.cc	Sat Sep 23 23:45:33 2006
@@ -428,6 +428,8 @@
 			if (status == IFSTATUS_ERR)
 			{
 				_has_mii = false;
+				// If we have no link beat, consider as we're always connected
+				_conn = true;
 			} else {
 				_conn = (status == IFSTATUS_UP);
 			}

Modified: trunk/src/guessnet.cc
==============================================================================
--- trunk/src/guessnet.cc	(original)
+++ trunk/src/guessnet.cc	Sat Sep 23 23:45:33 2006
@@ -321,8 +321,8 @@
 
 				iface.update();
 				if (!iface.has_mii())
-					warning("Link beat test requested on an interface without link beat detection support\n");
-				if (!iface.connected())
+					warning("Link beat test requested on an interface without link beat detection support: assuming we are always connected\n");
+				else if (!iface.connected())
 				{
 					verbose("Link beat not detected\n");
 					notifyScan(s);



More information about the Guessnet-devel mailing list