TSDuck Version 3.32-2780 (TSDuck - The MPEG Transport Stream Toolkit)
tsPcap.h File Reference

Definitions in pcap and pcapng files. More...

Namespaces

 ts
 TSDuck namespace, containing all TSDuck classes and functions.
 

Enumerations

enum  ts::PcapLinkType : uint16_t {
  ts::LINKTYPE_NULL = 0,
  ts::LINKTYPE_ETHERNET = 1,
  ts::LINKTYPE_AX25 = 3,
  ts::LINKTYPE_IEEE802_5 = 6,
  ts::LINKTYPE_ARCNET_BSD = 7,
  ts::LINKTYPE_SLIP = 8,
  ts::LINKTYPE_PPP = 9,
  ts::LINKTYPE_FDDI = 10,
  ts::LINKTYPE_PPP_HDLC = 50,
  ts::LINKTYPE_PPP_ETHER = 51,
  ts::LINKTYPE_ATM_RFC1483 = 100,
  ts::LINKTYPE_RAW = 101,
  ts::LINKTYPE_C_HDLC = 104,
  ts::LINKTYPE_IEEE802_11 = 105,
  ts::LINKTYPE_FRELAY = 107,
  ts::LINKTYPE_LOOP = 108,
  ts::LINKTYPE_LINUX_SLL = 113,
  ts::LINKTYPE_LTALK = 114,
  ts::LINKTYPE_PFLOG = 117,
  ts::LINKTYPE_IEEE802_11_PRISM = 119,
  ts::LINKTYPE_IP_OVER_FC = 122,
  ts::LINKTYPE_SUNATM = 123,
  ts::LINKTYPE_IEEE802_11_RADIOTAP = 127,
  ts::LINKTYPE_ARCNET_LINUX = 129,
  ts::LINKTYPE_APPLE_IP_OVER_IEEE1394 = 138,
  ts::LINKTYPE_MTP2_WITH_PHDR = 139,
  ts::LINKTYPE_MTP2 = 140,
  ts::LINKTYPE_MTP3 = 141,
  ts::LINKTYPE_SCCP = 142,
  ts::LINKTYPE_DOCSIS = 143,
  ts::LINKTYPE_LINUX_IRDA = 144,
  ts::LINKTYPE_USER0 = 147,
  ts::LINKTYPE_USER15 = 162,
  ts::LINKTYPE_IEEE802_11_AVS = 163,
  ts::LINKTYPE_BACNET_MS_TP = 165,
  ts::LINKTYPE_PPP_PPPD = 166,
  ts::LINKTYPE_GPRS_LLC = 169,
  ts::LINKTYPE_GPF_T = 170,
  ts::LINKTYPE_GPF_F = 171,
  ts::LINKTYPE_LINUX_LAPD = 177,
  ts::LINKTYPE_MFR = 182,
  ts::LINKTYPE_BLUETOOTH_HCI_H4 = 187,
  ts::LINKTYPE_USB_LINUX = 189,
  ts::LINKTYPE_PPI = 192,
  ts::LINKTYPE_IEEE802_15_4_WITHFCS = 195,
  ts::LINKTYPE_SITA = 196,
  ts::LINKTYPE_ERF = 197,
  ts::LINKTYPE_BLUETOOTH_HCI_H4_WITH_PHDR = 201,
  ts::LINKTYPE_AX25_KISS = 202,
  ts::LINKTYPE_LAPD = 203,
  ts::LINKTYPE_PPP_WITH_DIR = 204,
  ts::LINKTYPE_C_HDLC_WITH_DIR = 205,
  ts::LINKTYPE_FRELAY_WITH_DIR = 206,
  ts::LINKTYPE_LAPB_WITH_DIR = 207,
  ts::LINKTYPE_IPMB_LINUX = 209,
  ts::LINKTYPE_FLEXRAY = 210,
  ts::LINKTYPE_IEEE802_15_4_NONASK_PHY = 215,
  ts::LINKTYPE_USB_LINUX_MMAPPED = 220,
  ts::LINKTYPE_FC_2 = 224,
  ts::LINKTYPE_FC_2_WITH_FRAME_DELIMS = 225,
  ts::LINKTYPE_IPNET = 226,
  ts::LINKTYPE_CAN_SOCKETCAN = 227,
  ts::LINKTYPE_IPV4 = 228,
  ts::LINKTYPE_IPV6 = 229,
  ts::LINKTYPE_IEEE802_15_4_NOFCS = 230,
  ts::LINKTYPE_DBUS = 231,
  ts::LINKTYPE_DVB_CI = 235,
  ts::LINKTYPE_MUX27010 = 236,
  ts::LINKTYPE_STANAG_5066_D_PDU = 237,
  ts::LINKTYPE_NFLOG = 239,
  ts::LINKTYPE_NETANALYZER = 240,
  ts::LINKTYPE_NETANALYZER_TRANSPARENT = 241,
  ts::LINKTYPE_IPOIB = 242,
  ts::LINKTYPE_MPEG_2_TS = 243,
  ts::LINKTYPE_NG40 = 244,
  ts::LINKTYPE_NFC_LLCP = 245,
  ts::LINKTYPE_INFINIBAND = 247,
  ts::LINKTYPE_SCTP = 248,
  ts::LINKTYPE_USBPCAP = 249,
  ts::LINKTYPE_RTAC_SERIAL = 250,
  ts::LINKTYPE_BLUETOOTH_LE_LL = 251,
  ts::LINKTYPE_NETLINK = 253,
  ts::LINKTYPE_BLUETOOTH_LINUX_MONITOR = 254,
  ts::LINKTYPE_BLUETOOTH_BREDR_BB = 255,
  ts::LINKTYPE_BLUETOOTH_LE_LL_WITH_PHDR = 256,
  ts::LINKTYPE_PROFIBUS_DL = 257,
  ts::LINKTYPE_PKTAP = 258,
  ts::LINKTYPE_EPON = 259,
  ts::LINKTYPE_IPMI_HPM_2 = 260,
  ts::LINKTYPE_ZWAVE_R1_R2 = 261,
  ts::LINKTYPE_ZWAVE_R3 = 262,
  ts::LINKTYPE_WATTSTOPPER_DLM = 263,
  ts::LINKTYPE_ISO_14443 = 264,
  ts::LINKTYPE_RDS = 265,
  ts::LINKTYPE_USB_DARWIN = 266,
  ts::LINKTYPE_SDLC = 268,
  ts::LINKTYPE_LORATAP = 270,
  ts::LINKTYPE_VSOCK = 271,
  ts::LINKTYPE_NORDIC_BLE = 272,
  ts::LINKTYPE_DOCSIS31_XRA31 = 273,
  ts::LINKTYPE_ETHERNET_MPACKET = 274,
  ts::LINKTYPE_DISPLAYPORT_AUX = 275,
  ts::LINKTYPE_LINUX_SLL2 = 276,
  ts::LINKTYPE_OPENVIZSLA = 278,
  ts::LINKTYPE_EBHSCR = 279,
  ts::LINKTYPE_VPP_DISPATCH = 280,
  ts::LINKTYPE_DSA_TAG_BRCM = 281,
  ts::LINKTYPE_DSA_TAG_BRCM_PREPEND = 282,
  ts::LINKTYPE_IEEE802_15_4_TAP = 283,
  ts::LINKTYPE_DSA_TAG_DSA = 284,
  ts::LINKTYPE_DSA_TAG_EDSA = 285,
  ts::LINKTYPE_ELEE = 286,
  ts::LINKTYPE_Z_WAVE_SERIAL = 287,
  ts::LINKTYPE_USB_2_0 = 288,
  ts::LINKTYPE_ATSC_ALP = 289,
  ts::LINKTYPE_ETW = 290,
  ts::LINKTYPE_UNKNOWN = 0xFFFF
}
 List of pcap LINKTYPE values. More...
 
enum  ts::PcapNgBlockType : uint32_t {
  ts::PCAPNG_SECTION_HEADER = PCAPNG_MAGIC,
  ts::PCAPNG_INTERFACE_DESC = 0x00000001,
  ts::PCAPNG_OBSOLETE_PACKET = 0x00000002,
  ts::PCAPNG_SIMPLE_PACKET = 0x00000003,
  ts::PCAPNG_NAME_RES = 0x00000004,
  ts::PCAPNG_INTERFACE_STAT = 0x00000005,
  ts::PCAPNG_ENHANCED_PACKET = 0x00000006,
  ts::PCAPNG_SYSTEMD_JOURNAL = 0x00000009,
  ts::PCAPNG_DECRYPT_SECRETS = 0x0000000A,
  ts::PCAPNG_CUSTOM = 0x00000BAD,
  ts::PCAPNG_CUSTOM_NOCOPY = 0x40000BAD
}
 List of pcap-ng block types. More...
 
enum  ts::PcapNgOptionCode : uint32_t {
  ts::PCAPNG_OPT_ENDOFOPT = 0,
  ts::PCAPNG_OPT_COMMENT = 1,
  ts::PCAPNG_SHB_HARDWARE = 2,
  ts::PCAPNG_SHB_OS = 3,
  ts::PCAPNG_SHB_USERAPPL = 4,
  ts::PCAPNG_IF_NAME = 2,
  ts::PCAPNG_IF_DESCRIPTION = 3,
  ts::PCAPNG_IF_IPV4ADDR = 4,
  ts::PCAPNG_IF_IPV6ADDR = 5,
  ts::PCAPNG_IF_MACADDR = 6,
  ts::PCAPNG_IF_EUIADDR = 7,
  ts::PCAPNG_IF_SPEED = 8,
  ts::PCAPNG_IF_TSRESOL = 9,
  ts::PCAPNG_IF_TZONE = 10,
  ts::PCAPNG_IF_FILTER = 11,
  ts::PCAPNG_IF_OS = 12,
  ts::PCAPNG_IF_FCSLEN = 13,
  ts::PCAPNG_IF_TSOFFSET = 14,
  ts::PCAPNG_IF_HARDWARE = 15,
  ts::PCAPNG_IF_TXSPEED = 16,
  ts::PCAPNG_IF_RXSPEED = 17
}
 List of pcap-ng option codes. More...
 

Variables

constexpr uint32_t ts::PCAP_MAGIC_BE = 0xA1B2C3D4
 Magic number of pcap files, big endian.
 
constexpr uint32_t ts::PCAP_MAGIC_LE = 0xD4C3B2A1
 Magic number of pcap files, little endian.
 
constexpr uint32_t ts::PCAPNG_MAGIC = 0x0A0D0D0A
 Magic number of pcapng files, not endian dependent.
 
constexpr uint32_t ts::PCAPNG_ORDER_BE = 0x1A2B3C4D
 "Byte-order magic" in pcapng files, big endian.
 
constexpr uint32_t ts::PCAPNG_ORDER_LE = 0x4D3C2B1A
 "Byte-order magic" in pcapng files, little endian.
 
constexpr uint32_t ts::PCAPNS_MAGIC_BE = 0xA1B23C4D
 Magic number of pcap files with nanosecond timestamps, big endian.
 
constexpr uint32_t ts::PCAPNS_MAGIC_LE = 0x4D3CB2A1
 Magic number of pcap files with nanosecond timestamps, little endian.
 

Detailed Description

Definitions in pcap and pcapng files.