Module org.jnetpcap

Enum Class PcapDlt

java.lang.Object
java.lang.Enum<PcapDlt>
org.jnetpcap.constant.PcapDlt
All Implemented Interfaces:
Serializable, Comparable<PcapDlt>, Constable, IntSupplier

public enum PcapDlt extends Enum<PcapDlt> implements IntSupplier

Constants that represent the Pcap's Payload Link Type assignments. The most popular constant is the EN10MB (alternatively DLT_EN10MB) which represents Ethernet2 based physical medium. This includes 10, 100, and 1000 mega-bit ethernets.

There are 2 tables within PcapDLT enum structure. First is the full table of enum constants, and then there is a duplicate table containing public final static int of contants, prefixed with DLT_. Also the enum constant's field value is public which means that integer DLT constant can also be access using the field directly.

Here are 4 basic of how you can use DLT constants in various ways.

Accessing the int DLT value using an enum constant

 int dlt = pcap.datalink(); // Get DLT value from open Pcap capture
 if (dlt == PcapDLT.EN10MB.value) {
        // Do something
 }
 
 // Also can use this more formal approach
 
 if (PcapDLT.EN10MB.equals(dlt)) {
        // Do something
 }
 

Accessing the int DLT value from integer constants table

 int dlt = pcap.datalink(); // Get DLT value from open Pcap capture
 if (dlt == PcapDLT.DLT_EN10MB) {
        // Do something
 }
 

Converting integer DLT value into a constant

 int dlt = pcap.datalink(); // Get DLT value from open Pcap capture
 PcapDLT enumConst = PcapDLT.valueOf(dlt);
 System.out.println("The Payload Link Type is " + enumConst + " described as " +
                enumConst.description);
 

Converting string DLT name into a constant

 PcapDLT enumConst = PcapDLT.valueOf("EN10MB");
 System.out.println("The Payload Link Type value is " + enumConst.value);
 
Author:
Mark Bednarczyk, Sly Technologies, Inc.
  • Enum Constant Details

    • NULL

      public static final PcapDlt NULL
      The NULL.
    • EN10MB

      public static final PcapDlt EN10MB
      Ethernet link-type.
    • EN3MB

      public static final PcapDlt EN3MB
      Lagacy 3MB ethernet link-type.
    • AX25

      public static final PcapDlt AX25
      The A x25.
    • PRONET

      public static final PcapDlt PRONET
      The PRONET.
    • CHAOS

      public static final PcapDlt CHAOS
      The CHAOS.
    • IEEE802

      public static final PcapDlt IEEE802
      The IEE e802.
    • ARCNET

      public static final PcapDlt ARCNET
      The ARCNET.
    • SLIP

      public static final PcapDlt SLIP
      The SLIP.
    • PPP

      public static final PcapDlt PPP
      The PPP.
    • FDDI

      public static final PcapDlt FDDI
      The FDDI.
    • ATM_RFC1483

      public static final PcapDlt ATM_RFC1483
      The AT m_ rf c1483.
    • RAW

      public static final PcapDlt RAW
      The RAW.
    • SLIP_BSDOS

      public static final PcapDlt SLIP_BSDOS
      The SLI p_ bsdos.
    • PPP_BSDOS

      public static final PcapDlt PPP_BSDOS
      The PP p_ bsdos.
    • ATM_CLIP

      public static final PcapDlt ATM_CLIP
      The AT m_ clip.
    • PPP_SERIAL

      public static final PcapDlt PPP_SERIAL
      The PP p_ serial.
    • PPP_ETHER

      public static final PcapDlt PPP_ETHER
      The PP p_ ether.
    • SYMANTEC_FIREWALL

      public static final PcapDlt SYMANTEC_FIREWALL
      The SYMANTE c_ firewall.
    • C_HDLC

      public static final PcapDlt C_HDLC
      The C_ hdlc.
    • IEEE802_11

      public static final PcapDlt IEEE802_11
      The IEE e802_11.
    • FRELAY

      public static final PcapDlt FRELAY
      The FRELAY.
    • LOOP

      public static final PcapDlt LOOP
      The LOOP.
    • ENC

      public static final PcapDlt ENC
      The ENC.
    • LINUX_SLL

      public static final PcapDlt LINUX_SLL
      The LINU x_ sll.
    • LTALK

      public static final PcapDlt LTALK
      The LTALK.
    • ECONET

      public static final PcapDlt ECONET
      The ECONET.
    • IPFILTER

      public static final PcapDlt IPFILTER
      The IPFILTER.
    • PFLOG

      public static final PcapDlt PFLOG
      The PFLOG.
    • CISCO_IOS

      public static final PcapDlt CISCO_IOS
      The CISC o_ ios.
    • PRISM_HEADER

      public static final PcapDlt PRISM_HEADER
      The PRIS m_ header.
    • AIRONET_HEADER

      public static final PcapDlt AIRONET_HEADER
      The AIRONE t_ header.
    • PFSYNC

      public static final PcapDlt PFSYNC
      The PFSYNC.
    • IP_OVER_FC

      public static final PcapDlt IP_OVER_FC
      The I p_ ove r_ fc.
    • SUNATM

      public static final PcapDlt SUNATM
      The SUNATM.
    • RIO

      public static final PcapDlt RIO
      The RIO.
    • PCI_EXP

      public static final PcapDlt PCI_EXP
      The PC i_ exp.
    • AURORA

      public static final PcapDlt AURORA
      The AURORA.
    • IEEE802_11_RADIO

      public static final PcapDlt IEEE802_11_RADIO
      The IEE e802_11_ radio.
    • TZSP

      public static final PcapDlt TZSP
      The TZSP.
    • ARCNET_LINUX

      public static final PcapDlt ARCNET_LINUX
      The ARCNE t_ linux.
    • JUNIPER_MLPPP

      public static final PcapDlt JUNIPER_MLPPP
      The JUNIPE r_ mlppp.
    • JUNIPER_MLFR

      public static final PcapDlt JUNIPER_MLFR
      The JUNIPE r_ mlfr.
    • JUNIPER_ES

      public static final PcapDlt JUNIPER_ES
      The JUNIPE r_ es.
    • JUNIPER_GGSN

      public static final PcapDlt JUNIPER_GGSN
      The JUNIPE r_ ggsn.
    • JUNIPER_MFR

      public static final PcapDlt JUNIPER_MFR
      The JUNIPE r_ mfr.
    • JUNIPER_ATM2

      public static final PcapDlt JUNIPER_ATM2
      The JUNIPE r_ at m2.
    • JUNIPER_SERVICES

      public static final PcapDlt JUNIPER_SERVICES
      The JUNIPE r_ services.
    • JUNIPER_ATM1

      public static final PcapDlt JUNIPER_ATM1
      The JUNIPE r_ at m1.
    • APPLE_IP_OVER_IEEE1394

      public static final PcapDlt APPLE_IP_OVER_IEEE1394
      The APPL e_ i p_ ove r_ iee e1394.
    • MTP2_WITH_PHDR

      public static final PcapDlt MTP2_WITH_PHDR
      The MT p2_ wit h_ phdr.
    • MTP2

      public static final PcapDlt MTP2
      The MT p2.
    • MTP3

      public static final PcapDlt MTP3
      The MT p3.
    • SCCP

      public static final PcapDlt SCCP
      The SCCP.
    • DOCSIS

      public static final PcapDlt DOCSIS
      The DOCSIS.
    • LINUX_IRDA

      public static final PcapDlt LINUX_IRDA
      The LINU x_ irda.
    • IBM_SP

      public static final PcapDlt IBM_SP
      The IB m_ sp.
    • IBM_SN

      public static final PcapDlt IBM_SN
      The IB m_ sn.
    • USER0

      public static final PcapDlt USER0
      The USE r0.
    • USER1

      public static final PcapDlt USER1
      The USE r1.
    • USER2

      public static final PcapDlt USER2
      The USE r2.
    • USER3

      public static final PcapDlt USER3
      The USE r3.
    • USER4

      public static final PcapDlt USER4
      The USE r4.
    • USER5

      public static final PcapDlt USER5
      The USE r5.
    • USER6

      public static final PcapDlt USER6
      The USE r6.
    • USER7

      public static final PcapDlt USER7
      The USE r7.
    • USER8

      public static final PcapDlt USER8
      The USE r8.
    • USER9

      public static final PcapDlt USER9
      The USE r9.
    • USER10

      public static final PcapDlt USER10
      The USE r10.
    • USER11

      public static final PcapDlt USER11
      The USE r11.
    • USER12

      public static final PcapDlt USER12
      The USE r12.
    • USER13

      public static final PcapDlt USER13
      The USE r13.
    • USER14

      public static final PcapDlt USER14
      The USE r14.
    • USER15

      public static final PcapDlt USER15
      The USE r15.
    • IEEE802_11_RADIO_AVS

      public static final PcapDlt IEEE802_11_RADIO_AVS
      The IEE e802_11_ radi o_ avs.
    • JUNIPER_MONITOR

      public static final PcapDlt JUNIPER_MONITOR
      The JUNIPE r_ monitor.
    • BACNET_MS_TP

      public static final PcapDlt BACNET_MS_TP
      The BACNE t_ m s_ tp.
    • PPP_PPPD

      public static final PcapDlt PPP_PPPD
      The PP p_ pppd.
    • JUNIPER_PPPOE

      public static final PcapDlt JUNIPER_PPPOE
      The JUNIPE r_ pppoe.
    • JUNIPER_PPPOE_ATM

      public static final PcapDlt JUNIPER_PPPOE_ATM
      The JUNIPE r_ pppo e_ atm.
    • GPRS_LLC

      public static final PcapDlt GPRS_LLC
      The GPR s_ llc.
    • GPF_T

      public static final PcapDlt GPF_T
      The GP f_ t.
    • GPF_F

      public static final PcapDlt GPF_F
      The GP f_ f.
    • GCOM_T1E1

      public static final PcapDlt GCOM_T1E1
      The GCO m_ t1 e1.
    • GCOM_SERIAL

      public static final PcapDlt GCOM_SERIAL
      The GCO m_ serial.
    • JUNIPER_PIC_PEER

      public static final PcapDlt JUNIPER_PIC_PEER
      The JUNIPE r_ pi c_ peer.
    • ERF_ETH

      public static final PcapDlt ERF_ETH
      The ER f_ eth.
    • ERF_POS

      public static final PcapDlt ERF_POS
      The ER f_ pos.
    • LINUX_LAPD

      public static final PcapDlt LINUX_LAPD
      The LINU x_ lapd.
    • ETW

      public static final PcapDlt ETW
      Event Tracing for Windows messages.
    • NETANALYZER_NG

      public static final PcapDlt NETANALYZER_NG
      Hilscher Gesellschaft fuer Systemautomation mbH netANALYZER NG hardware and software. The specification for this footer can be found at: https://kb.hilscher.com/x/brDJBw Requested by Jan Adam jadam@hilscher.com
    • ZBOSS_NCP

      public static final PcapDlt ZBOSS_NCP
      Serial NCP (Network Co-Processor) protocol for Zigbee stack ZBOSS by DSR. ZBOSS NCP protocol description: https://cloud.dsr-corporation.com/index.php/s/3isHzaNTTgtJebn Header in pcap file: https://cloud.dsr-corporation.com/index.php/s/fiqSDorAAAZrsYB Requested by Eugene Exarevsky eugene.exarevsky@dsr-corporation.com
    • USB_2_0_LOW_SPEED

      public static final PcapDlt USB_2_0_LOW_SPEED
      USB 1.0 packets as transmitted over the cable
    • USB_2_0_FULL_SPEED

      public static final PcapDlt USB_2_0_FULL_SPEED
      USB 1.1 packets as transmitted over the cable
    • USB_2_0_HIGH_SPEED

      public static final PcapDlt USB_2_0_HIGH_SPEED
      USB 2.0 packets as transmitted over the cable
    • AUERSWALD_LOG

      public static final PcapDlt AUERSWALD_LOG
      Auerswald Logger Protocol description is provided on https://github.com/Auerswald-GmbH/auerlog/blob/master/auerlog.txt
    • ZWAVE_TAP

      public static final PcapDlt ZWAVE_TAP
      Z-Wave packets with a TAP meta-data header https://gitlab.com/exegin/zwave-g9959-tap requested on tcpdump-workers@
    • SILABS_DEBUG_CHANNEL

      public static final PcapDlt SILABS_DEBUG_CHANNEL
      Silicon Labs debug channel protocol.
    • FIRA_UCI

      public static final PcapDlt FIRA_UCI
      Ultra-wideband (UWB) controller interface protocol (UCI). requested by Henri Chataing henrichataing@google.com
    • MDB

      public static final PcapDlt MDB
      MDB (Multi-Drop Bus) protocol between a vending machine controller and peripherals inside the vending machine. See https://www.kaiser.cx/pcap-mdb.html for the specification. Requested by Martin Kaiser martin@kaiser.cx
  • Field Details

    • DLT_NULL

      public static final int DLT_NULL
      The Constant DLT_NULL.
      See Also:
    • DLT_EN10MB

      public static final int DLT_EN10MB
      The Constant DLT_EN10MB.
      See Also:
    • DLT_EN3MB

      public static final int DLT_EN3MB
      The Constant DLT_EN3MB.
      See Also:
    • DLT_AX25

      public static final int DLT_AX25
      The Constant DLT_AX25.
      See Also:
    • DLT_PRONET

      public static final int DLT_PRONET
      The Constant DLT_PRONET.
      See Also:
    • DLT_CHAOS

      public static final int DLT_CHAOS
      The Constant DLT_CHAOS.
      See Also:
    • DLT_IEEE802

      public static final int DLT_IEEE802
      The Constant DLT_IEEE802.
      See Also:
    • DLT_ARCNET

      public static final int DLT_ARCNET
      The Constant DLT_ARCNET.
      See Also:
    • DLT_SLIP

      public static final int DLT_SLIP
      The Constant DLT_SLIP.
      See Also:
    • DLT_PPP

      public static final int DLT_PPP
      The Constant DLT_PPP.
      See Also:
    • DLT_FDDI

      public static final int DLT_FDDI
      The Constant DLT_FDDI.
      See Also:
    • DLT_ATM_RFC1483

      public static final int DLT_ATM_RFC1483
      The Constant DLT_ATM_RFC1483.
      See Also:
    • DLT_RAW

      public static final int DLT_RAW
      The Constant DLT_RAW.
      See Also:
    • DLT_SLIP_BSDOS

      public static final int DLT_SLIP_BSDOS
      The Constant DLT_SLIP_BSDOS.
      See Also:
    • DLT_PPP_BSDOS

      public static final int DLT_PPP_BSDOS
      The Constant DLT_PPP_BSDOS.
      See Also:
    • DLT_ATM_CLIP

      public static final int DLT_ATM_CLIP
      The Constant DLT_ATM_CLIP.
      See Also:
    • DLT_PPP_SERIAL

      public static final int DLT_PPP_SERIAL
      The Constant DLT_PPP_SERIAL.
      See Also:
    • DLT_PPP_ETHER

      public static final int DLT_PPP_ETHER
      The Constant DLT_PPP_ETHER.
      See Also:
    • DLT_SYMANTEC_FIREWALL

      public static final int DLT_SYMANTEC_FIREWALL
      The Constant DLT_SYMANTEC_FIREWALL.
      See Also:
    • DLT_C_HDLC

      public static final int DLT_C_HDLC
      The Constant DLT_C_HDLC.
      See Also:
    • DLT_IEEE802_11

      public static final int DLT_IEEE802_11
      The Constant DLT_IEEE802_11.
      See Also:
    • DLT_FRELAY

      public static final int DLT_FRELAY
      The Constant DLT_FRELAY.
      See Also:
    • DLT_LOOP

      public static final int DLT_LOOP
      The Constant DLT_LOOP.
      See Also:
    • DLT_ENC

      public static final int DLT_ENC
      The Constant DLT_ENC.
      See Also:
    • DLT_LINUX_SLL

      public static final int DLT_LINUX_SLL
      The Constant DLT_LINUX_SLL.
      See Also:
    • DLT_LTALK

      public static final int DLT_LTALK
      The Constant DLT_LTALK.
      See Also:
    • DLT_ECONET

      public static final int DLT_ECONET
      The Constant DLT_ECONET.
      See Also:
    • DLT_IPFILTER

      public static final int DLT_IPFILTER
      The Constant DLT_IPFILTER.
      See Also:
    • DLT_PFLOG

      public static final int DLT_PFLOG
      The Constant DLT_PFLOG.
      See Also:
    • DLT_CISCO_IOS

      public static final int DLT_CISCO_IOS
      The Constant DLT_CISCO_IOS.
      See Also:
    • DLT_PRISM_HEADER

      public static final int DLT_PRISM_HEADER
      The Constant DLT_PRISM_HEADER.
      See Also:
    • DLT_AIRONET_HEADER

      public static final int DLT_AIRONET_HEADER
      The Constant DLT_AIRONET_HEADER.
      See Also:
    • DLT_PFSYNC

      public static final int DLT_PFSYNC
      The Constant DLT_PFSYNC.
      See Also:
    • DLT_IP_OVER_FC

      public static final int DLT_IP_OVER_FC
      The Constant DLT_IP_OVER_FC.
      See Also:
    • DLT_SUNATM

      public static final int DLT_SUNATM
      The Constant DLT_SUNATM.
      See Also:
    • DLT_RIO

      public static final int DLT_RIO
      The Constant DLT_RIO.
      See Also:
    • DLT_PCI_EXP

      public static final int DLT_PCI_EXP
      The Constant DLT_PCI_EXP.
      See Also:
    • DLT_AURORA

      public static final int DLT_AURORA
      The Constant DLT_AURORA.
      See Also:
    • DLT_IEEE802_11_RADIO

      public static final int DLT_IEEE802_11_RADIO
      The Constant DLT_IEEE802_11_RADIO.
      See Also:
    • DLT_TZSP

      public static final int DLT_TZSP
      The Constant DLT_TZSP.
      See Also:
    • DLT_ARCNET_LINUX

      public static final int DLT_ARCNET_LINUX
      The Constant DLT_ARCNET_LINUX.
      See Also:
    • DLT_JUNIPER_MLPPP

      public static final int DLT_JUNIPER_MLPPP
      The Constant DLT_JUNIPER_MLPPP.
      See Also:
    • DLT_APPLE_IP_OVER_IEEE1394

      public static final int DLT_APPLE_IP_OVER_IEEE1394
      The Constant DLT_APPLE_IP_OVER_IEEE1394.
      See Also:
    • DLT_JUNIPER_MLFR

      public static final int DLT_JUNIPER_MLFR
      The Constant DLT_JUNIPER_MLFR.
      See Also:
    • DLT_JUNIPER_ES

      public static final int DLT_JUNIPER_ES
      The Constant DLT_JUNIPER_ES.
      See Also:
    • DLT_JUNIPER_GGSN

      public static final int DLT_JUNIPER_GGSN
      The Constant DLT_JUNIPER_GGSN.
      See Also:
    • DLT_JUNIPER_MFR

      public static final int DLT_JUNIPER_MFR
      The Constant DLT_JUNIPER_MFR.
      See Also:
    • DLT_JUNIPER_ATM2

      public static final int DLT_JUNIPER_ATM2
      The Constant DLT_JUNIPER_ATM2.
      See Also:
    • DLT_JUNIPER_SERVICES

      public static final int DLT_JUNIPER_SERVICES
      The Constant DLT_JUNIPER_SERVICES.
      See Also:
    • DLT_JUNIPER_ATM1

      public static final int DLT_JUNIPER_ATM1
      The Constant DLT_JUNIPER_ATM1.
      See Also:
    • DLT_MTP2_WITH_PHDR

      public static final int DLT_MTP2_WITH_PHDR
      The Constant DLT_MTP2_WITH_PHDR.
      See Also:
    • DLT_MTP2

      public static final int DLT_MTP2
      The Constant DLT_MTP2.
      See Also:
    • DLT_MTP3

      public static final int DLT_MTP3
      The Constant DLT_MTP3.
      See Also:
    • DLT_SCCP

      public static final int DLT_SCCP
      The Constant DLT_SCCP.
      See Also:
    • DLT_DOCSIS

      public static final int DLT_DOCSIS
      The Constant DLT_DOCSIS.
      See Also:
    • DLT_LINUX_IRDA

      public static final int DLT_LINUX_IRDA
      The Constant DLT_LINUX_IRDA.
      See Also:
    • DLT_IBM_SP

      public static final int DLT_IBM_SP
      The Constant DLT_IBM_SP.
      See Also:
    • DLT_IBM_SN

      public static final int DLT_IBM_SN
      The Constant DLT_IBM_SN.
      See Also:
    • DLT_USER0

      public static final int DLT_USER0
      The Constant DLT_USER0.
      See Also:
    • DLT_USER1

      public static final int DLT_USER1
      The Constant DLT_USER1.
      See Also:
    • DLT_USER2

      public static final int DLT_USER2
      The Constant DLT_USER2.
      See Also:
    • DLT_USER3

      public static final int DLT_USER3
      The Constant DLT_USER3.
      See Also:
    • DLT_USER4

      public static final int DLT_USER4
      The Constant DLT_USER4.
      See Also:
    • DLT_USER5

      public static final int DLT_USER5
      The Constant DLT_USER5.
      See Also:
    • DLT_USER6

      public static final int DLT_USER6
      The Constant DLT_USER6.
      See Also:
    • DLT_USER7

      public static final int DLT_USER7
      The Constant DLT_USER7.
      See Also:
    • DLT_USER8

      public static final int DLT_USER8
      The Constant DLT_USER8.
      See Also:
    • DLT_USER9

      public static final int DLT_USER9
      The Constant DLT_USER9.
      See Also:
    • DLT_USER10

      public static final int DLT_USER10
      The Constant DLT_USER10.
      See Also:
    • DLT_USER11

      public static final int DLT_USER11
      The Constant DLT_USER11.
      See Also:
    • DLT_USER12

      public static final int DLT_USER12
      The Constant DLT_USER12.
      See Also:
    • DLT_USER13

      public static final int DLT_USER13
      The Constant DLT_USER13.
      See Also:
    • DLT_USER14

      public static final int DLT_USER14
      The Constant DLT_USER14.
      See Also:
    • DLT_USER15

      public static final int DLT_USER15
      The Constant DLT_USER15.
      See Also:
    • DLT_IEEE802_11_RADIO_AVS

      public static final int DLT_IEEE802_11_RADIO_AVS
      The Constant DLT_IEEE802_11_RADIO_AVS.
      See Also:
    • DLT_JUNIPER_MONITOR

      public static final int DLT_JUNIPER_MONITOR
      The Constant DLT_JUNIPER_MONITOR.
      See Also:
    • DLT_BACNET_MS_TP

      public static final int DLT_BACNET_MS_TP
      The Constant DLT_BACNET_MS_TP.
      See Also:
    • DLT_PPP_PPPD

      public static final int DLT_PPP_PPPD
      The Constant DLT_PPP_PPPD.
      See Also:
    • DLT_JUNIPER_PPPOE

      public static final int DLT_JUNIPER_PPPOE
      The Constant DLT_JUNIPER_PPPOE.
      See Also:
    • DLT_JUNIPER_PPPOE_ATM

      public static final int DLT_JUNIPER_PPPOE_ATM
      The Constant DLT_JUNIPER_PPPOE_ATM.
      See Also:
    • DLT_GPRS_LLC

      public static final int DLT_GPRS_LLC
      The Constant DLT_GPRS_LLC.
      See Also:
    • DLT_GPF_T

      public static final int DLT_GPF_T
      The Constant DLT_GPF_T.
      See Also:
    • DLT_GPF_F

      public static final int DLT_GPF_F
      The Constant DLT_GPF_F.
      See Also:
    • DLT_GCOM_T1E1

      public static final int DLT_GCOM_T1E1
      The Constant DLT_GCOM_T1E1.
      See Also:
    • DLT_GCOM_SERIAL

      public static final int DLT_GCOM_SERIAL
      The Constant DLT_GCOM_SERIAL.
      See Also:
    • DLT_JUNIPER_PIC_PEER

      public static final int DLT_JUNIPER_PIC_PEER
      The Constant DLT_JUNIPER_PIC_PEER.
      See Also:
    • DLT_ERF_ETH

      public static final int DLT_ERF_ETH
      The Constant DLT_ERF_ETH.
      See Also:
    • DLT_ERF_POS

      public static final int DLT_ERF_POS
      The Constant DLT_ERF_POS.
      See Also:
    • DLT_LINUX_LAPD

      public static final int DLT_LINUX_LAPD
      The Constant DLT_LINUX_LAPD.
      See Also:
    • DLT_ETW

      public static final int DLT_ETW
      Event Tracing for Windows messages.
      See Also:
    • DLT_NETANALYZER_NG

      public static final int DLT_NETANALYZER_NG
      Hilscher Gesellschaft fuer Systemautomation mbH netANALYZER NG hardware and software. The specification for this footer can be found at: https://kb.hilscher.com/x/brDJBw Requested by Jan Adam jadam@hilscher.com
      See Also:
    • DLT_ZBOSS_NCP

      public static final int DLT_ZBOSS_NCP
      Serial NCP (Network Co-Processor) protocol for Zigbee stack ZBOSS by DSR. ZBOSS NCP protocol description: https://cloud.dsr-corporation.com/index.php/s/3isHzaNTTgtJebn Header in pcap file: https://cloud.dsr-corporation.com/index.php/s/fiqSDorAAAZrsYB Requested by Eugene Exarevsky eugene.exarevsky@dsr-corporation.com
      See Also:
    • DLT_USB_2_0_LOW_SPEED

      public static final int DLT_USB_2_0_LOW_SPEED
      USB 1.0 packets as transmitted over the cable
      See Also:
    • DLT_USB_2_0_FULL_SPEED

      public static final int DLT_USB_2_0_FULL_SPEED
      USB 1.1 packets as transmitted over the cable
      See Also:
    • DLT_USB_2_0_HIGH_SPEED

      public static final int DLT_USB_2_0_HIGH_SPEED
      USB 2.0 packets as transmitted over the cable
      See Also:
    • DLT_AUERSWALD_LOG

      public static final int DLT_AUERSWALD_LOG
      Auerswald Logger Protocol description is provided on https://github.com/Auerswald-GmbH/auerlog/blob/master/auerlog.txt
      See Also:
    • DLT_ZWAVE_TAP

      public static final int DLT_ZWAVE_TAP
      Z-Wave packets with a TAP meta-data header https://gitlab.com/exegin/zwave-g9959-tap requested on tcpdump-workers@
      See Also:
    • DLT_SILABS_DEBUG_CHANNEL

      public static final int DLT_SILABS_DEBUG_CHANNEL
      Silicon Labs debug channel protocol.
      See Also:
    • DLT_FIRA_UCI

      public static final int DLT_FIRA_UCI
      Ultra-wideband (UWB) controller interface protocol (UCI). requested by Henri Chataing henrichataing@google.com
      See Also:
    • DLT_MDB

      public static final int DLT_MDB
      MDB (Multi-Drop Bus) protocol between a vending machine controller and peripherals inside the vending machine. See https://www.kaiser.cx/pcap-mdb.html for the specification. Requested by Martin Kaiser martin@kaiser.cx.
      See Also:
    • intDlt

      public final int intDlt
      Integer dlt value assigned by libpcap to this constant.
    • description

      public String description
      Description of the dlt retrieved by quering the native pcap library. The description is not a static constant part of the API and may change from native libpcap implementation to implementation.
  • Method Details

    • values

      public static PcapDlt[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static PcapDlt valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • valueOf

      public static PcapDlt valueOf(int dlt) throws IllegalArgumentException
      Converts an integer value into a PcapDLT constant.
      Parameters:
      dlt - Pcap DLT integer value to convert
      Returns:
      constant assigned to the DLT integer, or null if not found
      Throws:
      IllegalArgumentException - thrown if not found
    • toEnum

      public static Optional<PcapDlt> toEnum(int dlt)
      Converts the supplied id to an ArpHdr enum constant.
      Parameters:
      dlt - the pcap DLT integer constant
      Returns:
      the corresponding enum if found
    • equals

      public boolean equals(int value)
      Compares the supplied value with the constant's assigned DLT value.
      Parameters:
      value - the value
      Returns:
      true if the supplied value matches the value of the constant, otherwise false value value to check against this constant
    • getAsInt

      public int getAsInt()
      Gets the integer dlt value assigned by libpcap to this constant.
      Specified by:
      getAsInt in interface IntSupplier
      Returns:
      the integer dlt value assigned by libpcap to this constant
      See Also:
    • getDescription

      public String getDescription()
      Gets the description of the dlt retrieved by quering the native pcap library.
      Returns:
      the description of the dlt retrieved by quering the native pcap library
      See Also: