retrieve the incoming interface on the domain_receive_adapter(). This should fix potential issues with packets addressed to the IP broadcast address, such as in with some DHCP implementations.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@20767 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Hugo Santos
2007-04-20 04:40:53 +00:00
parent 40844fe526
commit 8a819b17e4
5 changed files with 7 additions and 8 deletions
@@ -56,9 +56,11 @@ find_device_interface(const char *name)
static status_t
domain_receive_adapter(void *cookie, net_buffer *buffer)
domain_receive_adapter(void *cookie, net_device *device, net_buffer *buffer)
{
net_domain_private *domain = (net_domain_private *)cookie;
buffer->interface = find_interface(domain, device->index);
return domain->module->receive_data(buffer);
}