[Haiku-commits] r30999 - haiku/trunk/src/add-ons/kernel/network/devices/ethernet

imker at BerliOS imker at mail.berlios.de
Tue Jun 9 20:18:55 CEST 2009


Author: imker
Date: 2009-06-09 20:18:54 +0200 (Tue, 09 Jun 2009)
New Revision: 30999
ViewCVS: http://svn.berlios.de/viewcvs/haiku?rev=30999&view=rev

Modified:
   haiku/trunk/src/add-ons/kernel/network/devices/ethernet/ethernet.cpp
Log:
Looks like ethernet_set_promiscuous() call should use ETHER_SETPROMISC ioctl instead of ETHER_GETADDR one.

Modified: haiku/trunk/src/add-ons/kernel/network/devices/ethernet/ethernet.cpp
===================================================================
--- haiku/trunk/src/add-ons/kernel/network/devices/ethernet/ethernet.cpp	2009-06-08 13:06:37 UTC (rev 30998)
+++ haiku/trunk/src/add-ons/kernel/network/devices/ethernet/ethernet.cpp	2009-06-09 18:18:54 UTC (rev 30999)
@@ -365,7 +365,7 @@
 	ethernet_device *device = (ethernet_device *)_device;
 
 	int32 value = (int32)promiscuous;
-	if (ioctl(device->fd, ETHER_GETADDR, &value, sizeof(value)) < 0)
+	if (ioctl(device->fd, ETHER_SETPROMISC, &value, sizeof(value)) < 0)
 		return EOPNOTSUPP;
 
 	return B_OK;




More information about the Haiku-commits mailing list