Skip to content

Commit

Permalink
net: lldp: Sent LLDP packet was missing proper net_pkt type
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
jukkar committed May 8, 2020
1 parent 44e2a03 commit ad9f32a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions subsys/net/l2/ethernet/lldp/lldp.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit ad9f32a

Please sign in to comment.