Lines Matching defs:rip_sock
87 int rip_sock = -1; /* RIP socket */
92 * The interface to which rip_sock is currently pointing for
399 rip_sock = open_rip_sock();
407 * ifscan() will attempt to use the rip_sock in order to join
409 * the rip_sock.
607 if (rip_sock >= 0 && FD_ISSET(rip_sock, &ibits)) {
611 (void) close(rip_sock);
612 rip_sock = -1;
659 if (rip_sock >= 0) {
660 FD_SET(rip_sock, &fdbits);
661 if (sock_max <= rip_sock)
662 sock_max = rip_sock+1;
727 BADERR(_B_TRUE, "rip_sock = socket()");
734 BADERR(_B_FALSE, "bind(rip_sock)");
736 fix_sock(s, "rip_sock");
741 DBGERR(_B_TRUE, "rip_sock setsockopt(IP_MULTICAST_TTL)");
782 if (setsockopt(rip_sock, IPPROTO_IP,
813 if ((setsockopt(rip_sock, IPPROTO_IP, IP_ADD_MEMBERSHIP,
832 if ((setsockopt(rip_sock, IPPROTO_IP, IP_DROP_MEMBERSHIP,