- All Implemented Interfaces:
Serializable
,Comparable<SockAddrFamily>
,Constable
,IntSupplier
The socket address protocol family constants. Each protocol family has a
different layout for physical addresses in SockAddr structure and is
essential to decoding those addresses correctly.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionThe alg.The appletalk.The ash.The atmpvc.The atmsvc.The ax25.The bluetooth.The bridge.The caif.The can.CCITT protocols, X.25 etc.MIT CHAOS protocols.Computer Network Technology.connection-oriented IP, aka ST II.Datakit protocols.DECnet.The decnet.DEC Direct data link interface.Integrated Services Digital Network.European computer manufacturers.NSC Hyperchannel.The ieee802154.Arpanet imp addresses.The inet.The inet6.The ipx.The irda.The isdn.ISO protocols.The kcm.The key.LAT.Link layer interface.The llc.The local.The mpls.Native ATM access.Network Driver 'raw' access.The netbeui.The netlink.The netrom.The nfc.XEROX NS protocols.ISO protocols.The packet.The phonet.The pppox.Identify packets for Blue Box.Internal key-management function.Help Identify PIP packets.Help Identify RTIP packets.eXpress Transfer Protocol (no AF).PUP protocols: e.g.The qipcrtr.The rds.The rose.Internal Routing Protocol.The rxrpc.The security.Simple Internet Protocol.The smc.The sna.Kernel event messages.The tipc.The unspec.The vsock.The wanpipe.The x25. -
Method Summary
Modifier and TypeMethodDescriptionboolean
checkIfContains
(PcapIf dev) Check if a PcapIf (pcap device) contains this specific socket AF type.int
getAsInt()
Gets the as int.boolean
isMatch
(int family) Checks if is match.static Optional
<SockAddrFamily> lookup
(int family) Lookup a constant AF using numerical, platform dependent value.The total length of the socket address structure in bytes.static SockAddrFamily
Returns the enum constant of this class with the specified name.static SockAddrFamily[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Enum Constant Details
-
UNSPEC
The unspec. -
LOCAL
The local. -
INET
The inet. -
AX25
The ax25. -
IPX
The ipx. -
APPLETALK
The appletalk. -
NETROM
The netrom. -
BRIDGE
The bridge. -
ATMPVC
The atmpvc. -
X25
The x25. -
INET6
The inet6. -
ROSE
The rose. -
DECNET
The decnet. -
NETBEUI
The netbeui. -
SECURITY
The security. -
KEY
The key. -
NETLINK
The netlink. -
PACKET
The packet. -
ASH
The ash. -
ATMSVC
The atmsvc. -
RDS
The rds. -
SNA
The sna. -
IRDA
The irda. -
PPPOX
The pppox. -
WANPIPE
The wanpipe. -
LLC
The llc. -
MPLS
The mpls. -
CAN
The can. -
TIPC
The tipc. -
BLUETOOTH
The bluetooth. -
RXRPC
The rxrpc. -
ISDN
The isdn. -
PHONET
The phonet. -
IEEE802154
The ieee802154. -
CAIF
The caif. -
ALG
The alg. -
NFC
The nfc. -
VSOCK
The vsock. -
KCM
The kcm. -
QIPCRTR
The qipcrtr. -
SMC
The smc. -
IMPLINK
Arpanet imp addresses. -
PUP
PUP protocols: e.g. BSP. -
CHAOS
MIT CHAOS protocols. -
NS
XEROX NS protocols. -
ISO
ISO protocols. -
OSI
ISO protocols. -
ECMA
European computer manufacturers. -
DATAKIT
Datakit protocols. -
CCITT
CCITT protocols, X.25 etc. -
DECnet
DECnet. -
DLI
DEC Direct data link interface. -
LAT
LAT. -
HYLINK
NSC Hyperchannel. -
ROUTE
Internal Routing Protocol. -
LINK
Link layer interface. -
PSEUDO_XTP
eXpress Transfer Protocol (no AF). -
COIP
connection-oriented IP, aka ST II. -
CNT
Computer Network Technology. -
PSEUDO_RTIP
Help Identify RTIP packets. -
SIP
Simple Internet Protocol. -
PSEUDO_PIP
Help Identify PIP packets. -
PSEUDO_BLUE
Identify packets for Blue Box. -
NDRV
Network Driver 'raw' access. -
E164
Integrated Services Digital Network. -
PSEUDO_KEY
Internal key-management function. -
NATM
Native ATM access. -
SYSTEM
Kernel event messages.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
lookup
Lookup a constant AF using numerical, platform dependent value.- Parameters:
family
- the AF value- Returns:
- optional constant
-
checkIfContains
Check if a PcapIf (pcap device) contains this specific socket AF type.- Parameters:
dev
- the pcap dev- Returns:
- true, if successful
-
getAsInt
public int getAsInt()Gets the as int.- Specified by:
getAsInt
in interfaceIntSupplier
- Returns:
- the as int
- See Also:
-
isMatch
public boolean isMatch(int family) Checks if is match.- Parameters:
family
- the family- Returns:
- true, if is match
-
totalLength
The total length of the socket address structure in bytes. The value is only returned on certain platforms (BSD style sockets)..- Returns:
- the length of the address structure if available on this particular platform
-