Class DataLinkType

    • Field Detail

      • 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
      • 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:
        Pcap4jPropertiesLoader, pcap4j.properties
      • 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
    • Constructor Detail

      • DataLinkType

        public DataLinkType​(java.lang.Integer value,
                            java.lang.String name)
        Parameters:
        value - value
        name - name
    • Method Detail

      • getInstance

        public static DataLinkType getInstance​(java.lang.Integer value)
        Parameters:
        value - value
        Returns:
        a DataLinkType object.
      • register

        public static DataLinkType register​(DataLinkType type)
        Parameters:
        type - type
        Returns:
        a DataLinkType object.
      • valueAsString

        public java.lang.String valueAsString()
        Overrides:
        valueAsString in class NamedNumber<java.lang.Integer,​DataLinkType>
        Returns:
        a string representation of this value.