Write custom block to PCAPNG file
Create a default PCAPNG file writer object.
pcapngObj = pcapngWriter('FileName','writeWLANcustom');
Write the interface block for WLAN.
interfaceName = 'WLAN'; wlanLinkType = 105; interfaceId = writeInterfaceDescriptionBlock(pcapngObj,wlanLinkType, ... interfaceName);
Write the custom block to specify user-defined data.
writeCustomBlock(pcapngObj,"This block writes user-defined data");
pcapngWriter object does not overwrite the existing PCAPNG file.
During each call of this object, specify a unique PCAPNG file name.
pcapngObj— PCAPNG file writer object
PCAPNG file writer object, specified as a
customData— User-defined data
User-defined data, specified as a character vector or a string scalar.
 Tuexen, M. “PCAP Next Generation (Pcapng) Capture File Format.” 2020. https://www.ietf.org/.
 “Radiotap - Introduction.” Accessed May 20, 2020. https://www.radiotap.org/.
 Group, The Tcpdump. “Tcpdump/Libpcap Public Repository.” Accessed May 20, 2020. https://www.tcpdump.org.
 “Development/LibpcapFileFormat - The Wireshark Wiki.” Accessed May 20, 2020. https://www.wireshark.org.