TCP/IP Programming Manual
struct sockaddr_in6 {
 u_short sin6_family; /* AF_INET6 */
 u_short sin6_port; /* Transport layer port # */
 u_long sin6_flowinfo; / *IPv6 flow info */
 struct in6_addr sin6_addr; /* IPv6 address */
 u_long sin6_scope_id; / *set of interfaces for scope */
};
TAL Declaration
?NOLIST, SOURCE SOCKDEFT
STRUCT sockaddr_in6 (*);
 BEGIN
 INT sin6_family;
 INT sin6_port;
 INT(32) sin6_flowinfo;
 STRUCT sin6_addr(in6_addr);
 INT(32) sin6_scope_id;
 END;
sin6_family
is the type of address. Its value is always AF_INET6.
sin6_port
is the port number associated with the socket.
sin6_flowinfo
is the flow label value.
sin6_addr
is the Internet address (based on the in6_addr structure) associated with the socket.
sin6_scope_id
is the set of interfaces that are associated with the scope.
sockaddr_storage
This structure defines an IPv6 address-port number combination that is used by many of the socket
routines. This structure is defined in the socket.h header file. This structure applies to NonStop
TCP/IP only.
C Declaration
#include <socket.h>
struct sockaddr_storage {
 sa_family_t __ss_family;
 char __ss_pad1[_SS_PAD1SIZE]; 
 int64_t __ss_align; 
 char __ss_pad2[_SS_PAD2SIZE]; };
TAL Declaration
?NOLIST, SOURCE SOCKDEFT
STRUCT sockaddr_storage (*);
 BEGIN
 INT  _ss_family; 
 STRING _ss_pad1[0:5]; 
 FIXED _ss_align;
 STRING _ss_pad2[0:111];
 END;
__ss_family
is the address family.
Data Structures 79










