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:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user