java.lang.Object
org.jnetpcap.SockAddr
org.jnetpcap.SockAddr.LinkSockAddr
-
Nested Class Summary
Nested classes/interfaces inherited from class org.jnetpcap.SockAddr
SockAddr.Inet6SockAddr, SockAddr.InetSockAddr, SockAddr.IpxSockAddr, SockAddr.IrdaSockAddr, SockAddr.LinkSockAddr, SockAddr.PacketSockAddr
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionOptional
<byte[]> address()
Length of the link-layer selector (usually 0).int
Length of the link-layer address in bytes.int
Link-layer address type (e.g., IFT_ETHER for Ethernet).byte[]
data()
Variable-length data containing, interface name (null-terminated), Link-layer address Link-layer and selector (if any).int
index()
Interface index of the network device.name()
interface name.int
Length of the interface name string.selector()
Link-layer selector.int
Selector length.toString()
String representation of the structure field values.Methods inherited from class org.jnetpcap.SockAddr
family, familyConstant, isFamily, totalLength
-
Method Details
-
address
Length of the link-layer selector (usually 0).- Returns:
- address field value
-
addressLength
public int addressLength()Length of the link-layer address in bytes.- Returns:
- alen field value
-
addressType
public int addressType()Link-layer address type (e.g., IFT_ETHER for Ethernet).- Returns:
- type field value
-
data
-
index
public int index()Interface index of the network device.- Returns:
- index field value
-
name
-
nameLength
public int nameLength()Length of the interface name string.- Returns:
- nlen field value
-
selector
-
selectorLength
public int selectorLength()Selector length.- Returns:
- type field value
-
toString
-