Lines Matching refs:lsa
461 len_and_sockaddr *lsa; in xzalloc_lsa() local
471 lsa = xzalloc(LSA_LEN_SIZE + sz); in xzalloc_lsa()
472 lsa->len = sz; in xzalloc_lsa()
473 lsa->u.sa.sa_family = family; in xzalloc_lsa()
474 return lsa; in xzalloc_lsa()
970 len_and_sockaddr *lsa; in reread_config_file() local
1036 lsa = xzalloc_lsa(AF_UNIX); in reread_config_file()
1037 sun = (struct sockaddr_un*)&lsa->u.sa; in reread_config_file()
1077 lsa = xzalloc_lsa(sep->se_family); in reread_config_file()
1078 set_nport(&lsa->u.sa, port); in reread_config_file()
1080 lsa = host_and_af2sockaddr(sep->se_local_hostname, in reread_config_file()
1082 if (!lsa) { in reread_config_file()
1094 || lsa->len != sep->se_lsa->len in reread_config_file()
1095 || memcmp(&lsa->u.sa, &sep->se_lsa->u.sa, lsa->len) != 0 in reread_config_file()
1100 sep->se_lsa = lsa; in reread_config_file()
1103 free(lsa); in reread_config_file()
1461 len_and_sockaddr *lsa; in inetd_main() local
1466 lsa = xzalloc_lsa(sep->se_family); in inetd_main()
1469 &lsa->u.sa, &lsa->len); in inetd_main()
1475 connect(ctrl, &lsa->u.sa, lsa->len); in inetd_main()
1477 free(lsa); in inetd_main()
1577 len_and_sockaddr *lsa = alloca(LSA_LEN_SIZE + sep->se_lsa->len); in echo_dg() local
1579 lsa->len = sep->se_lsa->len; in echo_dg()
1581 sz = recvfrom(s, buf, BUFSIZE, MSG_DONTWAIT, &lsa->u.sa, &lsa->len); in echo_dg()
1583 sendto(s, buf, sz, 0, &lsa->u.sa, lsa->len); in echo_dg()
1663 len_and_sockaddr *lsa = alloca(LSA_LEN_SIZE + sep->se_lsa->len); in chargen_dg() local
1667 lsa->len = sep->se_lsa->len; in chargen_dg()
1668 if (recvfrom(s, text, sizeof(text), MSG_DONTWAIT, &lsa->u.sa, &lsa->len) < 0) in chargen_dg()
1687 sendto(s, text, sizeof(text), 0, &lsa->u.sa, lsa->len); in chargen_dg()
1718 len_and_sockaddr *lsa = alloca(LSA_LEN_SIZE + sep->se_lsa->len); in machtime_dg() local
1720 lsa->len = sep->se_lsa->len; in machtime_dg()
1721 if (recvfrom(s, line, LINE_SIZE, MSG_DONTWAIT, &lsa->u.sa, &lsa->len) < 0) in machtime_dg()
1725 sendto(s, &result, sizeof(result), 0, &lsa->u.sa, lsa->len); in machtime_dg()
1743 len_and_sockaddr *lsa = alloca(LSA_LEN_SIZE + sep->se_lsa->len); in daytime_dg() local
1745 lsa->len = sep->se_lsa->len; in daytime_dg()
1746 if (recvfrom(s, line, LINE_SIZE, MSG_DONTWAIT, &lsa->u.sa, &lsa->len) < 0) in daytime_dg()
1751 sendto(s, line, strlen(line), 0, &lsa->u.sa, lsa->len); in daytime_dg()