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
This commit is contained in:
imker 2009-06-09 18:18:54 +00:00
parent 2f3d29cec7
commit fd070b419d

View File

@ -365,7 +365,7 @@ ethernet_set_promiscuous(net_device *_device, bool promiscuous)
ethernet_device *device = (ethernet_device *)_device; ethernet_device *device = (ethernet_device *)_device;
int32 value = (int32)promiscuous; 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 EOPNOTSUPP;
return B_OK; return B_OK;