Lines Matching refs:ai
89 struct addrinfo *ai, *ai2; in ping_main() local
124 for (ai = ai2; ai; ai = ai->ai_next) { in ping_main()
127 if (family && family!=ai->ai_family) continue; in ping_main()
128 if (ai->ai_family!=AF_INET && ai->ai_family!=AF_INET6) continue; in ping_main()
133 if (!ifa->ifa_addr || ifa->ifa_addr->sa_family!=ai->ai_family in ping_main()
142 if (!ai) in ping_main()
144 TT.sa = ai->ai_addr; in ping_main()
147 sa->sa_family = ai->ai_family; in ping_main()
148 TT.sock = socket(ai->ai_family, SOCK_DGRAM, in ping_main()
149 len = (ai->ai_family == AF_INET) ? IPPROTO_ICMP : IPPROTO_ICMPV6); in ping_main()
169 if (ai->ai_family == AF_INET) in ping_main()
212 ih->type = (ai->ai_family == AF_INET) ? 8 : 128; in ping_main()