We also need to put the outgoing packets into the device monitor.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19554 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -482,6 +482,17 @@ interface_protocol_send_data(net_datalink_protocol *_protocol,
|
||||
net_buffer *buffer)
|
||||
{
|
||||
interface_protocol *protocol = (interface_protocol *)_protocol;
|
||||
net_interface_private *interface = (net_interface_private *)protocol->interface;
|
||||
|
||||
// feed device monitors
|
||||
// TODO: locking!
|
||||
DeviceMonitorList::Iterator iterator =
|
||||
interface->device_interface->monitor_funcs.GetIterator();
|
||||
while (iterator.HasNext()) {
|
||||
net_device_monitor *monitor = iterator.Next();
|
||||
monitor->func(monitor->cookie, buffer);
|
||||
}
|
||||
|
||||
return protocol->device_module->send_data(protocol->device, buffer);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user