Lines Matching refs:sa6
278 struct sockaddr_in6 sa6; in mDNSPlatformInit() local
375 sa6.sin6_family = AF_INET6; in mDNSPlatformInit()
376 sa6.sin6_addr = in6addr_any; in mDNSPlatformInit()
377 sa6.sin6_scope_id = 0; in mDNSPlatformInit()
382 …err = SetupSocket( inMDNS, (const struct sockaddr*) &sa6, zeroIPPort, &inMDNS->p->unicastSock6.fd … in mDNSPlatformInit()
390 sa6len = sizeof( sa6 ); in mDNSPlatformInit()
391 err = getsockname( inMDNS->p->unicastSock6.fd, (struct sockaddr*) &sa6, &sa6len ); in mDNSPlatformInit()
393 inMDNS->p->unicastSock6.port.NotAnInteger = sa6.sin6_port; in mDNSPlatformInit()
1563 struct sockaddr_in6 * sa6; in mDNSPlatformSendUDP() local
1565 sa6 = (struct sockaddr_in6 *) &addr; in mDNSPlatformSendUDP()
1566 sa6->sin6_family = AF_INET6; in mDNSPlatformSendUDP()
1567 sa6->sin6_port = inDstPort.NotAnInteger; in mDNSPlatformSendUDP()
1568 sa6->sin6_flowinfo = 0; in mDNSPlatformSendUDP()
1569 sa6->sin6_addr = *( (struct in6_addr *) &inDstIP->ip.v6 ); in mDNSPlatformSendUDP()
1570 …sa6->sin6_scope_id = 0; // Windows requires the scope ID to be zero. IPV6_MULTICAST_IF specifies i… in mDNSPlatformSendUDP()
3024 struct sockaddr_in6 sa6; in SetupSocket() local
3031 mDNSPlatformMemZero( &sa6, sizeof( sa6 ) ); in SetupSocket()
3032 sa6.sin6_family = AF_INET6; in SetupSocket()
3033 sa6.sin6_port = port.NotAnInteger; in SetupSocket()
3034 sa6.sin6_flowinfo = 0; in SetupSocket()
3035 sa6.sin6_addr = sa6p->sin6_addr; in SetupSocket()
3036 sa6.sin6_scope_id = sa6p->sin6_scope_id; in SetupSocket()
3038 err = bind( sock, (struct sockaddr *) &sa6, sizeof( sa6 ) ); in SetupSocket()
3138 struct sockaddr_in6 * sa6; in SockAddrToMDNSAddr() local
3140 sa6 = (struct sockaddr_in6 *) inSA; in SockAddrToMDNSAddr()
3142 outIP->ip.v6 = *( (mDNSv6Addr *) &sa6->sin6_addr ); in SockAddrToMDNSAddr()
3143 if( IN6_IS_ADDR_LINKLOCAL( &sa6->sin6_addr ) ) in SockAddrToMDNSAddr()
3149 outPort->NotAnInteger = sa6->sin6_port; in SockAddrToMDNSAddr()
3776 struct sockaddr_in6 * sa6; in getifaddrs_ipv6() local
3783 sa6 = (struct sockaddr_in6 *) calloc( 1, sizeof( *sa6 ) ); in getifaddrs_ipv6()
3784 require_action( sa6, exit, err = WSAENOBUFS ); in getifaddrs_ipv6()
3785 sa6->sin6_family = AF_INET6; in getifaddrs_ipv6()
3797 sa6->sin6_addr.s6_addr[ maskIndex++ ] = maskByte; in getifaddrs_ipv6()
3799 ifa->ifa_netmask = (struct sockaddr *) sa6; in getifaddrs_ipv6()
4383 struct sockaddr_in6 sa6; in StringToAddress() local
4388 sa6.sin6_family = AF_INET6; in StringToAddress()
4389 dwSize = sizeof( sa6 ); in StringToAddress()
4391 err = WSAStringToAddressA( string, AF_INET6, NULL, (struct sockaddr*) &sa6, &dwSize ); in StringToAddress()
4395 err = SetupAddr( ip, (struct sockaddr*) &sa6 ); in StringToAddress()