Lines Matching refs:sock4
137 static int sock4;
485 sock = sock4;
522 sock = sock4;
682 sock4 = socket(AF_INET, SOCK_DGRAM, 0);
683 if (sock4 < 0) {
930 sock = sock4;
1963 if (ioctl(sock4, SIOCGLIFADDR, &lifr) < 0) {
1969 if (ioctl(sock4, SIOCGLIFNETMASK, (caddr_t)&lifr) < 0) {
2015 if (ioctl(sock4, SIOCSLIFADDR, &lifr) < 0) {
2023 if (ioctl(sock4, SIOCSLIFNETMASK, (caddr_t)&lifr) < 0) {
2339 if (ioctl(sock4, SIOCGXARP, &ar) < 0) {
2406 if (ioctl(sock4, SIOCGLIFFLAGS, (caddr_t)&lifr) < 0) {
2419 if (ioctl(sock4, SIOCSLIFFLAGS, (caddr_t)&lifr) < 0) {