addLinkTypeDecoder
Syntax
Description
You can use the addLinkTypeDecoder
object function to plug in
a custom link layer protocol decoder to the pcapReader
object based
on the link type of the packet capture (PCAP) global header. For example, to add a Bluetooth
low energy (LE) link layer decoder for decoding Bluetooth LE link layer packets, specify the
link type as 251. For information on link layer header types and the corresponding link type
values, see Tcpdump/Libpcap Public Repository [1].
addLinkTypeDecoder(
adds a custom link layer protocol decoder function handle,
pcap
,linkType
,linkName
,protocolDecoder
)protocolDecoder
, to the PCAP file reader, pcap
,
based on the link type of the PCAP global header, linkType
. The
linkName
input specifies a name for the link type.
addLinkTypeDecoder(
additionally specifies protocol fields to filter packets based on the specified fields of
the protocol decoder output.pcap
,linkType
,linkName
,protocolDecoder
,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