Class DataLinkType

All Implemented Interfaces:
Serializable, Comparable<DataLinkType>

public final class DataLinkType extends NamedNumber<Integer, DataLinkType>
Pcap Data Link Type
Since:
pcap4j 0.9.1
See Also:
  • Field Details

    • serialVersionUID

      private static final long serialVersionUID
      See Also:
    • NULL

      public static final DataLinkType NULL
      Null (BSD loopback encapsulation): 0
    • EN10MB

      public static final DataLinkType EN10MB
      Ethernet (10Mb, 100Mb, 1000Mb, and up): 1
    • IEEE802

      public static final DataLinkType IEEE802
      802.5 Token Ring: 6
    • PPP

      public static final DataLinkType PPP
      Point-to-point Protocol: 9
    • FDDI

      public static final DataLinkType FDDI
      FDDI: 10
    • RAW

      public static final DataLinkType RAW
      RAW IP packet: 14 on OpenBSD, or 12 on the others. If you want to change this value, set the property org.pcap4j.dlt.raw (system property or pcap4j.properties) to an integer before using this class.
      See Also:
    • PPP_SERIAL

      public static final DataLinkType PPP_SERIAL
      PPP over serial with HDLC encapsulation: 50
    • IEEE802_11

      public static final DataLinkType IEEE802_11
      IEEE 802.11 wireless: 105
    • LINUX_SLL

      public static final DataLinkType LINUX_SLL
      Linux cooked-mode capture (SLL): 113
    • IEEE802_11_RADIO

      public static final DataLinkType IEEE802_11_RADIO
      Radiotap: 127 - Header for 802.11 plus a number of bits of link-layer information including radio information, used by some recent BSD drivers as well as the madwifi Atheros driver for Linux.
    • DOCSIS

      public static final DataLinkType DOCSIS
      DOCSIS MAC frames: 143
    • registry

      private static final Map<Integer, DataLinkType> registry
  • Constructor Details

    • DataLinkType

      public DataLinkType(Integer value, String name)
      Parameters:
      value - value
      name - name
  • Method Details