From 207f71773be342421c30a698db8c9bd44e6deffc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Thu, 3 Dec 2009 14:25:45 +0000 Subject: [PATCH] * The ethernet deframing used the wrong family for its reported source and destination address (AF_DLI instead of AF_LINK). git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34465 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- .../datalink_protocols/ethernet_frame/ethernet_frame.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/add-ons/kernel/network/datalink_protocols/ethernet_frame/ethernet_frame.cpp b/src/add-ons/kernel/network/datalink_protocols/ethernet_frame/ethernet_frame.cpp index c93fced0d4..cda9715dc7 100644 --- a/src/add-ons/kernel/network/datalink_protocols/ethernet_frame/ethernet_frame.cpp +++ b/src/add-ons/kernel/network/datalink_protocols/ethernet_frame/ethernet_frame.cpp @@ -49,7 +49,7 @@ ethernet_deframe(net_device *device, net_buffer *buffer) struct sockaddr_dl &destination = *(struct sockaddr_dl *)buffer->destination; source.sdl_len = sizeof(sockaddr_dl); - source.sdl_family = AF_DLI; + source.sdl_family = AF_LINK; source.sdl_index = device->index; source.sdl_type = IFT_ETHER; source.sdl_e_type = type; @@ -58,7 +58,7 @@ ethernet_deframe(net_device *device, net_buffer *buffer) memcpy(source.sdl_data, header.source, ETHER_ADDRESS_LENGTH); destination.sdl_len = sizeof(sockaddr_dl); - destination.sdl_family = AF_DLI; + destination.sdl_family = AF_LINK; destination.sdl_index = device->index; destination.sdl_type = IFT_ETHER; destination.sdl_nlen = destination.sdl_slen = 0;