diff --git a/subsys/net/l2/ethernet/ethernet.c b/subsys/net/l2/ethernet/ethernet.c index f660aaecbce..2b0d8c5e056 100644 --- a/subsys/net/l2/ethernet/ethernet.c +++ b/subsys/net/l2/ethernet/ethernet.c @@ -451,6 +451,7 @@ static struct net_buf *ethernet_fill_header(struct ethernet_context *ctx, hdr_vlan->type = ptype; hdr_vlan->vlan.tpid = htons(NET_ETH_PTYPE_VLAN); hdr_vlan->vlan.tci = htons(net_pkt_vlan_tci(pkt)); + net_buf_add(hdr_frag, sizeof(struct net_eth_vlan_hdr)); print_vlan_ll_addrs(pkt, ntohs(hdr_vlan->type), net_pkt_vlan_tci(pkt),