Lines Matching refs:lsa
213 create_icmp_socket(len_and_sockaddr *lsa) in create_icmp_socket() argument
216 #define create_icmp_socket(lsa) create_icmp_socket() in create_icmp_socket()
221 if (lsa->u.sa.sa_family == AF_INET6) in create_icmp_socket()
253 static void ping4(len_and_sockaddr *lsa) in ping4() argument
264 xsendto(pingsock, G.packet, DEFDATALEN + ICMP_MINLEN, &lsa->u.sa, lsa->len); in ping4()
295 static void ping6(len_and_sockaddr *lsa) in ping6() argument
309 xsendto(pingsock, G.packet, DEFDATALEN + sizeof(struct icmp6_hdr), &lsa->u.sa, lsa->len); in ping6()
342 len_and_sockaddr *lsa; in common_ping_main() local
367 lsa = xhost_and_af2sockaddr(G.hostname, 0, af); in common_ping_main()
369 lsa = xhost_and_af2sockaddr(G.hostname, 0, AF_INET); in common_ping_main()
375 create_icmp_socket(lsa); in common_ping_main()
383 if (lsa->u.sa.sa_family == AF_INET6) in common_ping_main()
384 ping6(lsa); in common_ping_main()
387 ping4(lsa); in common_ping_main()
763 static void ping4(len_and_sockaddr *lsa) in ping4() argument
767 pingaddr.sin = lsa->u.sin; in ping4()
817 static void ping6(len_and_sockaddr *lsa) in ping6() argument
825 pingaddr.sin6 = lsa->u.sin6; in ping6()
909 static void ping(len_and_sockaddr *lsa) in ping() argument
918 create_icmp_socket(lsa); in ping()
926 if (lsa->u.sa.sa_family == AF_INET6) { in ping()
930 ping6(lsa); in ping()
935 ping4(lsa); in ping()
941 len_and_sockaddr *lsa; in common_ping_main() local
989 lsa = xhost_and_af2sockaddr(hostname, 0, af); in common_ping_main()
992 lsa = xhost_and_af2sockaddr(hostname, 0, AF_INET); in common_ping_main()
995 if (source_lsa && source_lsa->u.sa.sa_family != lsa->u.sa.sa_family) in common_ping_main()
999 dotted = xmalloc_sockaddr2dotted_noport(&lsa->u.sa); in common_ping_main()
1000 ping(lsa); in common_ping_main()