From ad9f32a4e96699b0710815f6336865ee061c729e Mon Sep 17 00:00:00 2001 From: Jukka Rissanen Date: Thu, 7 May 2020 18:27:51 +0300 Subject: [PATCH] net: lldp: Sent LLDP packet was missing proper net_pkt type 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 --- subsys/net/l2/ethernet/lldp/lldp.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/subsys/net/l2/ethernet/lldp/lldp.c b/subsys/net/l2/ethernet/lldp/lldp.c index cf32783fe00..0aeb05f99f5 100644 --- a/subsys/net/l2/ethernet/lldp/lldp.c +++ b/subsys/net/l2/ethernet/lldp/lldp.c @@ -111,6 +111,8 @@ static int lldp_send(struct ethernet_lldp *lldp) goto out; } + net_pkt_set_lldp(pkt, true); + if (net_pkt_write(pkt, (u8_t *)lldp->lldpdu, sizeof(struct net_lldpdu))) { net_pkt_unref(pkt);