Lines Matching defs:sock
67 ipv4_multicast_join (int sock,
74 ret = setsockopt_multicast_ipv4 (sock,
90 ipv4_multicast_leave (int sock,
97 ret = setsockopt_multicast_ipv4 (sock,
141 rip_interface_multicast_set (int sock, struct interface *ifp)
161 if (setsockopt_multicast_ipv4 (sock, IP_MULTICAST_IF,
165 zlog_warn ("Can't setsockopt IP_MULTICAST_IF to fd %d", sock);
187 ret = bind (sock, (struct sockaddr *) & from,
329 rip_multicast_join (struct interface *ifp, int sock)
352 if (ipv4_multicast_join (sock, group, p->prefix, ifp->ifindex) < 0)
363 rip_multicast_leave (struct interface *ifp, int sock)
386 if (ipv4_multicast_leave (sock, group, p->prefix, ifp->ifindex) == 0)
755 rip_multicast_leave (ifp, rip->sock);
982 if (rip_multicast_join (ifp, rip->sock) < 0)