pcapReader
Description
The pcapReader
object reads and decodes Ethernet and enhanced
common public radio interface (eCPRI) protocol packets based on specific criteria. You can
also plug in custom protocol decoders.
Creation
Description
creates a PCAP file reader object to read protocol packets from the input PCAP
file.pcap
= pcapReader(filename
)
sets OutputTimestampFormat property to pcap
= pcapReader(filename
,OutputTimestampFormat='seconds'
)seconds
.
Input Arguments
Properties
Object Functions
Examples
Algorithms
The pcapReader
object performs these operations, as illustrated in
this diagram.
Read a packet from the PCAP file.
Select a decoder from the list of link layer decoders and decode the link layer header of the packet.
Proceed to the payload, which contains the packet for the next upper-layer protocol.
Select a decoder from the list of upper layer decoders and decode the header of the packet.
Continue selecting and using decoders for subsequent layers until decoding all headers in the entire packet or finding no suitable upper layer decoder.
The pcapReader
object repeats these 5 steps for all packets in
the PCAP file.
References
[1] Group, The Tcpdump. “Tcpdump/Libpcap Public Repository.” Accessed May 20, 2020. https://www.tcpdump.org.
[2] “Development/LibpcapFileFormat - The Wireshark Wiki.” Accessed May 20, 2020. https://www.wireshark.org.
[3] “Common Public Radio Interface: eCPRI Interface Specification V1.2 ” Accessed June 22, 2021.
Version History
Introduced in R2021b