-
Notifications
You must be signed in to change notification settings - Fork 6.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
LLDP: missing net_pkt_set_lldp in lldp_send #25084
Comments
Yep, your analysis is correct. The fix is easy, I will send a fix shortly. |
The LLDP packet was created but its type was not set to LLDP and was sent as ARP message. Fixes zephyrproject-rtos#25084 Signed-off-by: Jukka Rissanen <jukka.rissanen@linux.intel.com>
After the fix, the Ethernet type is correct. Unfortunately wireshark shows now that the packet is malformed when testing this with Edit: at least in native_posix where I tested this, the sent Ethernet frame is too short so wireshark complains about this but the actual LLDP frame seems to be ok. |
@jukkar thank you, I don't see any problem after the fix in my wireshark |
The LLDP packet was created but its type was not set to LLDP and was sent as ARP message. Fixes #25084 Signed-off-by: Jukka Rissanen <jukka.rissanen@linux.intel.com>
The LLDP packet was created but its type was not set to LLDP and was sent as ARP message. Fixes zephyrproject-rtos#25084 Signed-off-by: Jukka Rissanen <jukka.rissanen@linux.intel.com>
Sending lldp packet includes ARP field in its eth->type instead LLDP type. ( wireshark is attached)
lldp.zip
Steps to reproduce the behavior:
compile with CONFIG_NET_LLDP=y
add to ethernet driver :
I would expect that the driver will send lldp packet instead I see that the packet which should be lldp
packet includes in its ethernet header ptype=ARP(the rest of the packet seem fine).
I think it because net_pkt_set_lldp(pkt, true); is missing from lldp_send function.
As result ethernet_send not inserted to
and it inserted to instead
Environment (please complete the following information):
What do you think?
Thanks,
Ehud
The text was updated successfully, but these errors were encountered: