Lines Matching defs:sock
448 int sock;
465 sock = (af == AF_INET ? iph->iph_sock : iph->iph_sock6);
474 if (ioctl(sock, SIOCSLIFGROUPNAME, &lifr) == -1) {
685 int sock;
716 sock = iph->iph_sock;
718 sock = iph->iph_sock6;
719 if (islo && ioctl(sock, SIOCGLIFADDR, (caddr_t)&lifr) >= 0)
721 if (ioctl(sock, SIOCLIFADDIF, (caddr_t)&lifr) < 0)
732 if (ioctl(sock, SIOCSLIFADDR, (caddr_t)&lifr) < 0)
943 int sock;
966 sock = iph->iph_sock6;
969 sock = iph->iph_sock;
998 if (ioctl(sock, SIOCGLIFGROUPNAME, &lifr) == -1) {
1004 if (ioctl(sock, SIOCGLIFGROUPINFO, &lifgr) == -1) {
1024 int sock = (ifaddrp->ia_flags & IFF_IPV4) ?
1035 if (ioctl(sock, SIOCGLIFFLAGS, &lifrl) < 0) {
1049 if (ioctl(sock, SIOCGLIFADDR, &lifrl) < 0 ||
1050 ioctl(sock, SIOCSLIFADDR, &lifrl) < 0) {