addUpperLayerDecoder
Syntax
Description
You can use the addUpperLayerDecoder object function to plug
in a custom upper-layer protocol decoder to the pcapReader object for
decoding the payload of an existing protocol decoder. For example, you can add an upper-layer
protocol decoder, such as internet protocol (IP), to decode the payload in the output of an
existing protocol decoder, Ethernet.
addUpperLayerDecoder(
adds a custom upper-layer protocol decoder function handle,
pcap,protocolName,fieldName,fieldValue,upperLayerProtocolName,upperLayerDecoder)upperLayerDecoder, to the packet capture (PCAP) file reader,
pcap, for decoding the payload in the output of an existing protocol
decoder, protocolName. The fieldName input
specifies the field in the output structure of the existing protocol decoder, and the
fieldValue input specifies the value of this field name. The
upperLayerProtocolName input specifies a name for the upper-layer
protocol decoder.
addUpperLayerDecoder(
additionally specifies protocol fields to filter packets based on the specified fields of
the protocol decoder output.pcap,protocolName,fieldName,fieldValue,upperLayerProtocolName,upperLayerDecoder,protocolFields)
Examples
Input Arguments
References
[1] Group, The Tcpdump. “Tcpdump/Libpcap Public Repository.” Accessed May 20, 2020. https://www.tcpdump.org.
Version History
Introduced in R2021b