I'm using tcpreplay to generate traffic from the .pcap file for my experiments. More specifically I'm using files from the ISCX-VPN-NONVPN-2016 public dataset.
However, I'm having problems retransmitting encrypted traffic, as they present the L2 Raw packet data fields as shown in the image.
The following error is displayed when I try to relay traffic:
~ # tcpreplay -i enp0s25 input.pcap
tcpreplay: flows.c:204: flow_decode: Assertion `l2len > 0' failed.
Aborted (core image recorded)
Is there any way to add ethernet headers in this case to avoid this error?

I solve the problem using the Tcpreplay 4.4.2-beta. This version has only bug fixes. One of them is
heap-buffer-overflow in get_l2len_protocol().Now it works perfectly.