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:
parent
44e2a0343d
commit
ad9f32a4e9
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue