Module org.jnetpcap
Package org.jnetpcap

Class SockAddr.Inet6SockAddr

java.lang.Object
org.jnetpcap.SockAddr
org.jnetpcap.SockAddr.Inet6SockAddr
Enclosing class:
SockAddr

public static final class SockAddr.Inet6SockAddr extends 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
 };