Lines Matching refs:sin
464 struct sockaddr_in *sin = (struct sockaddr_in *)&ifr.ifr_addr; in devinet_ioctl() local
482 memcpy(&sin_orig, sin, sizeof(*sin)); in devinet_ioctl()
502 memset(sin, 0, sizeof(*sin)); in devinet_ioctl()
503 sin->sin_family = AF_INET; in devinet_ioctl()
516 if (sin->sin_family != AF_INET) in devinet_ioctl()
565 sin->sin_addr.s_addr = ifa->ifa_local; in devinet_ioctl()
569 sin->sin_addr.s_addr = ifa->ifa_broadcast; in devinet_ioctl()
573 sin->sin_addr.s_addr = ifa->ifa_address; in devinet_ioctl()
577 sin->sin_addr.s_addr = ifa->ifa_mask; in devinet_ioctl()
594 if (inet_abc_len(sin->sin_addr.s_addr) < 0) { in devinet_ioctl()
610 if (ifa->ifa_local == sin->sin_addr.s_addr) in devinet_ioctl()
618 ifa->ifa_local = sin->sin_addr.s_addr; in devinet_ioctl()
633 if (ifa->ifa_broadcast != sin->sin_addr.s_addr) { in devinet_ioctl()
635 ifa->ifa_broadcast = sin->sin_addr.s_addr; in devinet_ioctl()
641 if (ifa->ifa_address != sin->sin_addr.s_addr) { in devinet_ioctl()
642 if (inet_abc_len(sin->sin_addr.s_addr) < 0) { in devinet_ioctl()
647 ifa->ifa_address = sin->sin_addr.s_addr; in devinet_ioctl()
657 if (bad_mask(sin->sin_addr.s_addr, 0)) { in devinet_ioctl()
662 if (ifa->ifa_mask != sin->sin_addr.s_addr) { in devinet_ioctl()
664 ifa->ifa_mask = sin->sin_addr.s_addr; in devinet_ioctl()
680 ~sin->sin_addr.s_addr); in devinet_ioctl()