lwip-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [lwip-users] LLDP Implementation for lwIP


From: address@hidden
Subject: Re: [lwip-users] LLDP Implementation for lwIP
Date: Wed, 3 Aug 2016 21:07:05 +0200
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.7.2

Amit Ashara wrote:
I would like to develop the Link Layer LLDP stack within lwIP framework.

Cool!

However the developer's manual link is empty.

I have absolutely *no* idea what this means.

Any suggestions where to start?

Implementing LLDP is a bit tricky if you have more than one port, as lwIP sees this as one 'netif' having a single IP address only (but the ports have a MAC address each, used for LLDP at least).

That being said, you'll have to send and receive LLDP packets on every Ethernet port. If you have only one port, send via "netif->linkoutput" and intercept before calling "ethernet_input()". If you have more than one port, it gets more tricky and doesn't really fit the lwIP netif concept:-(

Then, grab lwIP 2.0.0 (RC2 is the current one) and use the MIB-compiler from "contrib/apps/LwipMibCompiler" to implement the LLDP mib(s?) and feed the results of rx parsing into that mib.

I'd be interested in taking a look at the code once it's done!


Simon



reply via email to

[Prev in Thread] Current Thread [Next in Thread]