Lines Matching refs:firsthop
702 struct sockaddr_in6 firsthop;
731 memset(&firsthop, 0, sizeof(firsthop));
732 firsthop.sin6_family = AF_INET6;
877 if (IN6_IS_ADDR_UNSPECIFIED(&firsthop.sin6_addr)) {
878 memcpy(&firsthop.sin6_addr, addr, 16);
880 firsthop.sin6_scope_id = ((struct sockaddr_in6 *)(ai->ai_addr))->sin6_scope_id;
882 if (firsthop.sin6_scope_id && scope_id && firsthop.sin6_scope_id != scope_id) {
886 scope_id = firsthop.sin6_scope_id;
939 if (IN6_IS_ADDR_UNSPECIFIED(&firsthop.sin6_addr)) {
940 memcpy(&firsthop.sin6_addr, &whereto.sin6_addr, 16);
942 firsthop.sin6_scope_id = whereto.sin6_scope_id;
944 if (firsthop.sin6_scope_id && scope_id && firsthop.sin6_scope_id != scope_id) {
948 scope_id = firsthop.sin6_scope_id;
975 if (IN6_IS_ADDR_LINKLOCAL(&firsthop.sin6_addr) ||
976 IN6_IS_ADDR_MC_LINKLOCAL(&firsthop.sin6_addr))
977 firsthop.sin6_scope_id = iface;
990 firsthop.sin6_port = htons(1025);
991 if (connect(probe_fd, (struct sockaddr*)&firsthop, sizeof(firsthop)) == -1) {