Class LinuxSllPacketType
java.lang.Object
org.pcap4j.packet.namednumber.NamedNumber<Short, LinuxSllPacketType>
org.pcap4j.packet.namednumber.LinuxSllPacketType
- All Implemented Interfaces:
Serializable, Comparable<LinuxSllPacketType>
Linux SLL Packet Type
- Since:
- pcap4j 1.4.0
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final LinuxSllPacketTypeA physical layer broadcast packet: 1static final LinuxSllPacketTypeA packet addressed to the local host: 0static final LinuxSllPacketTypeA packet sent to a physical layer multicast address: 2static final LinuxSllPacketTypeA packet to some other host that has been caught by a device driver in promiscuous mode: 3static final LinuxSllPacketTypeA packet originated from the local host that is looped back to a packet socket: 4private static final Map<Short, LinuxSllPacketType> private static final long -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintstatic LinuxSllPacketTypegetInstance(Short value) static LinuxSllPacketTyperegister(LinuxSllPacketType type) Methods inherited from class NamedNumber
equals, hashCode, name, toString, value, valueAsString
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
LINUX_SLL_HOST
A packet addressed to the local host: 0 -
LINUX_SLL_BROADCAST
A physical layer broadcast packet: 1 -
LINUX_SLL_MULTICAST
A packet sent to a physical layer multicast address: 2 -
LINUX_SLL_OTHERHOST
A packet to some other host that has been caught by a device driver in promiscuous mode: 3 -
LINUX_SLL_OUTGOING
A packet originated from the local host that is looped back to a packet socket: 4 -
registry
-
-
Constructor Details
-
LinuxSllPacketType
-
-
Method Details
-
getInstance
- Parameters:
value- value- Returns:
- a EtherType object.
-
register
- Parameters:
type- type- Returns:
- a EtherType object.
-
compareTo
- Specified by:
compareToin interfaceComparable<LinuxSllPacketType>- Specified by:
compareToin classNamedNumber<Short, LinuxSllPacketType>
-