public final class ProtocolFamily extends NamedNumber<Integer,ProtocolFamily>
Modifier and Type | Field and Description |
---|---|
static ProtocolFamily |
PF_INET
PF_INET (IPv4).
|
static ProtocolFamily |
PF_INET6
PF_INET6 (IPv6).
|
static ProtocolFamily |
PF_LINK
PF_LINK (Link layer interface).
|
static ProtocolFamily |
PF_UNSPEC
PF_UNSPEC (unspecified): 0
|
Constructor and Description |
---|
ProtocolFamily(Integer value,
String name) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(ProtocolFamily o) |
static ProtocolFamily |
getInstance(Integer value) |
static ProtocolFamily |
register(ProtocolFamily type) |
String |
valueAsString() |
public static final ProtocolFamily PF_UNSPEC
public static final ProtocolFamily PF_INET
Inets.AF_INET
.public static final ProtocolFamily PF_LINK
Inets.AF_LINK
.public static final ProtocolFamily PF_INET6
Inets.AF_INET6
.public static ProtocolFamily getInstance(Integer value)
value
- valuepublic static ProtocolFamily register(ProtocolFamily type)
type
- typepublic String valueAsString()
valueAsString
in class NamedNumber<Integer,ProtocolFamily>
public int compareTo(ProtocolFamily o)
compareTo
in interface Comparable<ProtocolFamily>
compareTo
in class NamedNumber<Integer,ProtocolFamily>
Copyright © 2011–2016 Pcap4J.org. All rights reserved.