Searched refs:iptun_addr (Results 1 – 1 of 1) sorted by relevance
612 iptun_getaddr(iptun_addr_t *iptun_addr, struct sockaddr_storage *ss) in iptun_getaddr() argument618 switch (iptun_addr->ia_family) { in iptun_getaddr()621 sin->sin_addr.s_addr = iptun_addr->ia_addr.iau_addr4; in iptun_getaddr()625 sin6->sin6_addr = iptun_addr->ia_addr.iau_addr6; in iptun_getaddr()630 ss->ss_family = iptun_addr->ia_family; in iptun_getaddr()637 iptun_setaddr(iptun_type_t iptun_type, iptun_addr_t *iptun_addr, in iptun_setaddr() argument652 iptun_addr->ia_addr.iau_addr4 = sin->sin_addr.s_addr; in iptun_setaddr()663 iptun_addr->ia_addr.iau_addr6 = sin6->sin6_addr; in iptun_setaddr()669 iptun_addr->ia_family = ss->ss_family; in iptun_setaddr()