Lines Matching refs:sockaddr_in

310                struct sockaddr_in *sinptr;  in select_src_ifi_info_solaris()
312 sinptr = (struct sockaddr_in *) &lifr->lifr_addr; in select_src_ifi_info_solaris()
380 struct sockaddr_in *sinptr; in get_ifi_info_solaris()
491 sinptr = (struct sockaddr_in *) &best_lifr->lifr_addr; in get_ifi_info_solaris()
492 ifi->ifi_addr = malloc(sizeof(struct sockaddr_in)); in get_ifi_info_solaris()
496 memcpy(ifi->ifi_addr, sinptr, sizeof(struct sockaddr_in)); in get_ifi_info_solaris()
509 ifi->ifi_netmask = malloc(sizeof(struct sockaddr_in)); in get_ifi_info_solaris()
512 sinptr = (struct sockaddr_in *) &lifrcopy.lifr_addr; in get_ifi_info_solaris()
514 memcpy(ifi->ifi_netmask, sinptr, sizeof(struct sockaddr_in)); in get_ifi_info_solaris()
550 struct sockaddr_in *sinptr; in get_ifi_info()
660 sinptr = (struct sockaddr_in *) &ifr->ifr_addr; in get_ifi_info()
662 ifi->ifi_addr = (struct sockaddr*)calloc(1, sizeof(struct sockaddr_in)); in get_ifi_info()
666 memcpy(ifi->ifi_addr, sinptr, sizeof(struct sockaddr_in)); in get_ifi_info()
686 ifi->ifi_netmask = (struct sockaddr*)calloc(1, sizeof(struct sockaddr_in)); in get_ifi_info()
688 sinptr = (struct sockaddr_in *) &ifrcopy.ifr_addr; in get_ifi_info()
691 sinptr->sin_len = sizeof(struct sockaddr_in); in get_ifi_info()
694 memcpy(ifi->ifi_netmask, sinptr, sizeof(struct sockaddr_in)); in get_ifi_info()
702 sinptr = (struct sockaddr_in *) &ifrcopy.ifr_broadaddr; in get_ifi_info()
705 sinptr->sin_len = sizeof( struct sockaddr_in ); in get_ifi_info()
708 ifi->ifi_brdaddr = (struct sockaddr*)calloc(1, sizeof(struct sockaddr_in)); in get_ifi_info()
712 memcpy(ifi->ifi_brdaddr, sinptr, sizeof(struct sockaddr_in)); in get_ifi_info()
721 sinptr = (struct sockaddr_in *) &ifrcopy.ifr_dstaddr; in get_ifi_info()
724 sinptr->sin_len = sizeof( struct sockaddr_in ); in get_ifi_info()
727 ifi->ifi_dstaddr = (struct sockaddr*)calloc(1, sizeof(struct sockaddr_in)); in get_ifi_info()
731 memcpy(ifi->ifi_dstaddr, sinptr, sizeof(struct sockaddr_in)); in get_ifi_info()
911 struct sockaddr_in *sin = (struct sockaddr_in*)&pktp->ipi_addr; in recvfrom_flags()
925 struct sockaddr_in *sin = (struct sockaddr_in*)&pktp->ipi_addr; in recvfrom_flags()