From ad9f32a4e96699b0710815f6336865ee061c729e Mon Sep 17 00:00:00 2001
From: Jukka Rissanen <jukka.rissanen@linux.intel.com>
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 <jukka.rissanen@linux.intel.com>
---
 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 cf32783fe009..0aeb05f99f56 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);