java.lang.Object
org.jnetpcap.SockAddr
org.jnetpcap.SockAddr.Inet6SockAddr
- Enclosing class:
SockAddr
Represents an IPv6 socket address (sockaddr_in6 structure). Provides access
to IPv6-specific address fields including flow information and scope IDs.
Native Structure
struct sockaddr_in6 {
uint8_t sin6_len; // Length of structure (BSD only)
sa_family_t sin6_family; // AF_INET6
in_port_t sin6_port; // Transport layer port
uint32_t sin6_flowinfo;// IPv6 flow information
struct in6_addr sin6_addr; // IPv6 address
uint32_t sin6_scope_id;// Set of interfaces for scope
};
-
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
Methods inherited from class org.jnetpcap.SockAddr
data, family, familyConstant, isFamily, totalLength
-
Method Details
-
address
public byte[] address()IPv6 address.- Returns:
- address field value
-
flowInfo
public int flowInfo()IPv6 flow information.- Returns:
- 32 bit field value
-
port
public int port()Transport layer port number.- Returns:
- 16 bit port field value
-
scopeId
public int scopeId()Scope ID (interface for link-local addresses).- Returns:
- 32 bit scope ID field value
-
toString
-