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: Amit Ashara
Subject: Re: [lwip-users] LLDP Implementation for lwIP
Date: Wed, 17 Aug 2016 09:15:01 -0500

Hello Simon

I can make the change for lldp_raw to be netif compliant and using internal functions in the lldp.c to construct the packet.

Will it be OK in that case (along with the single port requirement)

Regards
Amit

On Wed, Aug 17, 2016 at 9:12 AM, Simon Goldschmidt <address@hidden> wrote:
Amit Ashara wrote:
> I call the LLDP transmit function lldp_raw(struct netif *netif, const struct eth_addr *ethsrc_addr)
> with the MAC address of the port. So if there are multiple ports each with its MAC address, then
> that can be resolved by the 2nd argument of the function.

That's not netif-portable. A netif driver has to implement netif_linkoutput_fn(struct netif *netif, struct pbuf *p)
and there's no source MAC address passed. You can check the pbuf of course, but that's not acceptable
for all TX packets.

> Also if we put the use restriction of a single port, wouldn't that work also?

You can do that but you would limit the use of such a protocol implementation.

Simon

_______________________________________________
lwip-users mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/lwip-users


reply via email to

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