Lines Matching refs:lifr
1939 struct lifreq lifr;
1960 bzero(&lifr, sizeof (lifr));
1961 (void) strncpy(lifr.lifr_name, netdev_name, sizeof (lifr.lifr_name));
1962 sin = ALIGNED_CAST(struct sockaddr_in *, &lifr.lifr_addr);
1963 if (ioctl(sock4, SIOCGLIFADDR, &lifr) < 0) {
1969 if (ioctl(sock4, SIOCGLIFNETMASK, (caddr_t)&lifr) < 0) {
1994 struct lifreq lifr;
2010 bzero(&lifr, sizeof (lifr));
2011 (void) strncpy(lifr.lifr_name, netdev_name, sizeof (lifr.lifr_name));
2012 sin = ALIGNED_CAST(struct sockaddr_in *, &lifr.lifr_addr);
2015 if (ioctl(sock4, SIOCSLIFADDR, &lifr) < 0) {
2023 if (ioctl(sock4, SIOCSLIFNETMASK, (caddr_t)&lifr) < 0) {
2047 struct lifreq lifr;
2070 bzero(&lifr, sizeof (lifr));
2071 (void) strncpy(lifr.lifr_name, netdev_name, sizeof (lifr.lifr_name));
2072 if (ioctl(sock6, SIOCGLIFADDR, &lifr) < 0) {
2076 sin6 = ALIGNED_CAST(struct sockaddr_in6 *, &lifr.lifr_addr);
2397 struct lifreq lifr;
2404 bzero(&lifr, sizeof (lifr));
2405 (void) strncpy(lifr.lifr_name, netdev_name, sizeof (lifr.lifr_name));
2406 if (ioctl(sock4, SIOCGLIFFLAGS, (caddr_t)&lifr) < 0) {
2410 old_lifr_flags = lifr.lifr_flags;
2418 lifr.lifr_flags = new_lifr_flags;
2419 if (ioctl(sock4, SIOCSLIFFLAGS, (caddr_t)&lifr) < 0) {