Lines Matching refs:sockaddr_in
232 struct sockaddr_in *sinptr; in get_ifi_info()
340 sinptr = (struct sockaddr_in *) &ifr->ifr_addr; in get_ifi_info()
342 ifi->ifi_addr = (struct sockaddr*)calloc(1, sizeof(struct sockaddr_in)); in get_ifi_info()
346 memcpy(ifi->ifi_addr, sinptr, sizeof(struct sockaddr_in)); in get_ifi_info()
366 ifi->ifi_netmask = (struct sockaddr*)calloc(1, sizeof(struct sockaddr_in)); in get_ifi_info()
368 sinptr = (struct sockaddr_in *) &ifrcopy.ifr_addr; in get_ifi_info()
371 sinptr->sin_len = sizeof(struct sockaddr_in); in get_ifi_info()
374 memcpy(ifi->ifi_netmask, sinptr, sizeof(struct sockaddr_in)); in get_ifi_info()
382 sinptr = (struct sockaddr_in *) &ifrcopy.ifr_broadaddr; in get_ifi_info()
385 sinptr->sin_len = sizeof( struct sockaddr_in ); in get_ifi_info()
388 ifi->ifi_brdaddr = (struct sockaddr*)calloc(1, sizeof(struct sockaddr_in)); in get_ifi_info()
392 memcpy(ifi->ifi_brdaddr, sinptr, sizeof(struct sockaddr_in)); in get_ifi_info()
401 sinptr = (struct sockaddr_in *) &ifrcopy.ifr_dstaddr; in get_ifi_info()
404 sinptr->sin_len = sizeof( struct sockaddr_in ); in get_ifi_info()
407 ifi->ifi_dstaddr = (struct sockaddr*)calloc(1, sizeof(struct sockaddr_in)); in get_ifi_info()
411 memcpy(ifi->ifi_dstaddr, sinptr, sizeof(struct sockaddr_in)); in get_ifi_info()
590 struct sockaddr_in *sin = (struct sockaddr_in*)&pktp->ipi_addr; in recvfrom_flags()
604 struct sockaddr_in *sin = (struct sockaddr_in*)&pktp->ipi_addr; in recvfrom_flags()