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>
This commit is contained in:
Jukka Rissanen 2020-05-07 18:27:51 +03:00
parent 44e2a0343d
commit ad9f32a4e9
1 changed files with 2 additions and 0 deletions

View File

@ -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);