|
From: | Amit Ashara |
Subject: | Re: [lwip-users] LLDP Implementation for lwIP |
Date: | Wed, 3 Aug 2016 15:29:48 -0500 |
Amit Ashara wrote:
http://lwip.wikia.com/wiki/LwIP_Developers_Manual
Oh, right. You see, I don't really follow the wiki... Wikia has way too much advertising.
This implementation is only for a single port device [..]
So it is not clear where do I insert the LLDP frame?
That's what I said. A device having one netif (i.e. the device's MAC address having one IP address) that connects to a network via multiple ports (which, in the LLDP case, each must have their own port MAC address), doesn't fit the lwIP netif model.
You need to insert the LLDP TX frames to your driver independent of lwIP (although it could be done by adding some kind of destination port to a pbuf or something like that). And you'll have to extract the source port from incoming pbufs, which is also not covered by lwIP.
I'm open for suggestions on integrating multi-port support to lwIP as long as it doesn't have negative side-effects on the standard single-port case.
Simon
_______________________________________________
lwip-users mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/lwip-users
[Prev in Thread] | Current Thread | [Next in Thread] |