Class DataLinkType
java.lang.Object
org.pcap4j.packet.namednumber.NamedNumber<Integer, DataLinkType>
org.pcap4j.packet.namednumber.DataLinkType
- All Implemented Interfaces:
Serializable, Comparable<DataLinkType>
Pcap Data Link Type
- Since:
- pcap4j 0.9.1
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final DataLinkTypeDOCSIS MAC frames: 143static final DataLinkTypeEthernet (10Mb, 100Mb, 1000Mb, and up): 1static final DataLinkTypeFDDI: 10static final DataLinkType802.5 Token Ring: 6static final DataLinkTypeIEEE 802.11 wireless: 105static final DataLinkTypeRadiotap: 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.static final DataLinkTypeLinux cooked-mode capture (SLL): 113static final DataLinkTypeNull (BSD loopback encapsulation): 0static final DataLinkTypePoint-to-point Protocol: 9static final DataLinkTypePPP over serial with HDLC encapsulation: 50static final DataLinkTypeRAW IP packet: 14 on OpenBSD, or 12 on the others.private static final Map<Integer, DataLinkType> private static final long -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintstatic DataLinkTypegetInstance(Integer value) static DataLinkTyperegister(DataLinkType type)
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
NULL
Null (BSD loopback encapsulation): 0 -
EN10MB
Ethernet (10Mb, 100Mb, 1000Mb, and up): 1 -
IEEE802
802.5 Token Ring: 6 -
PPP
Point-to-point Protocol: 9 -
FDDI
FDDI: 10 -
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
PPP over serial with HDLC encapsulation: 50 -
IEEE802_11
IEEE 802.11 wireless: 105 -
LINUX_SLL
Linux cooked-mode capture (SLL): 113 -
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
DOCSIS MAC frames: 143 -
registry
-
-
Constructor Details
-
DataLinkType
-
-
Method Details
-
getInstance
- Parameters:
value- value- Returns:
- a DataLinkType object.
-
register
- Parameters:
type- type- Returns:
- a DataLinkType object.
-
valueAsString
- Overrides:
valueAsStringin classNamedNumber<Integer, DataLinkType>- Returns:
- a string representation of this value.
-
compareTo
- Specified by:
compareToin interfaceComparable<DataLinkType>- Specified by:
compareToin classNamedNumber<Integer, DataLinkType>
-