Commit ad9f32a4 authored by Jukka Rissanen's avatar Jukka Rissanen
Browse files

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: default avatarJukka Rissanen <jukka.rissanen@linux.intel.com>
parent 44e2a034
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -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);