|
From: | address@hidden |
Subject: | Re: [lwip-users] two logical ethernet interfaces on the same, physical port? |
Date: | Fri, 15 Jun 2018 19:58:51 +0200 |
User-agent: | Mozilla/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.8.0 |
On 15.06.2018 09:45, Kamil Khoury
wrote:
SOCK_RAW is the socket type here, which is a sub-type of the domain. We do support SOCK_RAW, but only at the domains AF_INET and AF_INET6. We don't support the (very linux specific) AF_PACKET domain. For an embedded system of the size lwIP targets, it would just be wrong to copy *all* packets into an AF_PACKET socket buffer just to have the application thread throw away most of it. You should implement this at a much lower level instead to prevent waisting resources.
"This library" is the Linux kernel, effectively. These things are implemented directly in the kernel with just a very small layer around it to form a system call. And no, you cannot use the Linux kernel as a library in lwIP to implement a layer 2 socket :-) Simon |
[Prev in Thread] | Current Thread | [Next in Thread] |