Lines Matching refs:termid
538 adt_get_termid(const adt_session_data_t *session_data, au_tid_addr_t *termid) in adt_get_termid() argument
542 (void) memset(termid, 0, sizeof (au_tid_addr_t)); in adt_get_termid()
543 termid->at_type = AU_IPv4; in adt_get_termid()
548 *termid = in adt_get_termid()
555 const au_tid_addr_t *termid) in adt_set_termid() argument
563 *termid; in adt_set_termid()
647 au_tid_addr_t *termid) in adt_do_ipv6_address() argument
649 termid->at_port = in adt_do_ipv6_address()
651 termid->at_type = AU_IPv6; in adt_do_ipv6_address()
652 (void) memcpy(termid->at_addr, &peer->sin6_addr, 4 * sizeof (uint_t)); in adt_do_ipv6_address()
657 au_tid_addr_t *termid) in adt_do_ipv4_address() argument
659 termid->at_port = adt_ports_to_at_port(peer->sin_port, sock->sin_port); in adt_do_ipv4_address()
660 termid->at_type = AU_IPv4; in adt_do_ipv4_address()
661 termid->at_addr[0] = (uint32_t)peer->sin_addr.s_addr; in adt_do_ipv4_address()
662 (void) memset(&(termid->at_addr[1]), 0, 3 * sizeof (uint_t)); in adt_do_ipv4_address()
674 adt_load_termid(int fd, adt_termid_t **termid) in adt_load_termid() argument
687 return (adt_load_hostname(NULL, termid)); in adt_load_termid()
708 *termid = (adt_termid_t *)p_term; in adt_load_termid()
715 *termid = NULL; in adt_load_termid()
864 adt_load_hostname(const char *hostname, adt_termid_t **termid) in adt_load_hostname() argument
871 *termid = NULL; in adt_load_hostname()
880 *termid = (adt_termid_t *)p_term; in adt_load_hostname()
890 *termid = (adt_termid_t *)p_term; in adt_load_hostname()
893 *termid = (adt_termid_t *)p_term; in adt_load_hostname()
898 *termid = NULL; in adt_load_hostname()
925 adt_load_ttyname(const char *ttyname, adt_termid_t **termid) in adt_load_ttyname() argument
933 *termid = NULL; in adt_load_ttyname()
942 *termid = (adt_termid_t *)p_term; in adt_load_ttyname()
961 *termid = (adt_termid_t *)p_term; in adt_load_ttyname()
964 *termid = (adt_termid_t *)p_term; in adt_load_ttyname()
972 *termid = NULL; in adt_load_ttyname()
1567 adt_newuser(adt_internal_state_t *state, uid_t ruid, au_tid_addr_t *termid) in adt_newuser() argument
1581 if (termid != NULL) in adt_newuser()
1582 state->as_info.ai_termid = *termid; in adt_newuser()
1650 uid_t ruid, gid_t rgid, const adt_termid_t *termid, in adt_set_user() argument
1670 (au_tid_addr_t *)termid)) != 0) in adt_set_user()
1692 assert(termid != NULL); in adt_set_user()
1693 state->as_info.ai_termid = *((au_tid_addr_t *)termid); in adt_set_user()
1754 au_tid_addr_t termid, *tid; in adt_set_from_ucred() local
1776 adt_cpy_tid(&termid, tid64); in adt_set_from_ucred()
1777 tid = &termid; in adt_set_from_ucred()