From fd070b419d530a45c2bad4add458834ea2062c65 Mon Sep 17 00:00:00 2001 From: imker Date: Tue, 9 Jun 2009 18:18:54 +0000 Subject: [PATCH] Looks like ethernet_set_promiscuous() call should use ETHER_SETPROMISC ioctl instead of ETHER_GETADDR one. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30999 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/add-ons/kernel/network/devices/ethernet/ethernet.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/add-ons/kernel/network/devices/ethernet/ethernet.cpp b/src/add-ons/kernel/network/devices/ethernet/ethernet.cpp index b413a57e52..7539e2f547 100644 --- a/src/add-ons/kernel/network/devices/ethernet/ethernet.cpp +++ b/src/add-ons/kernel/network/devices/ethernet/ethernet.cpp @@ -365,7 +365,7 @@ ethernet_set_promiscuous(net_device *_device, bool promiscuous) 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;