• Home
  • Raw
  • Download

Lines Matching refs:mreq

687 		struct ip_mreqn mreq;  in do_ip_setsockopt()  local
701 if (copy_from_user(&mreq, optval, sizeof(mreq))) in do_ip_setsockopt()
704 memset(&mreq, 0, sizeof(mreq)); in do_ip_setsockopt()
706 if (copy_from_user(&mreq, optval, in do_ip_setsockopt()
710 if (copy_from_user(&mreq.imr_address, optval, in do_ip_setsockopt()
716 if (!mreq.imr_ifindex) { in do_ip_setsockopt()
717 if (mreq.imr_address.s_addr == htonl(INADDR_ANY)) { in do_ip_setsockopt()
723 dev = ip_dev_find(sock_net(sk), mreq.imr_address.s_addr); in do_ip_setsockopt()
725 mreq.imr_ifindex = dev->ifindex; in do_ip_setsockopt()
727 dev = dev_get_by_index(sock_net(sk), mreq.imr_ifindex); in do_ip_setsockopt()
737 mreq.imr_ifindex != sk->sk_bound_dev_if) in do_ip_setsockopt()
740 inet->mc_index = mreq.imr_ifindex; in do_ip_setsockopt()
741 inet->mc_addr = mreq.imr_address.s_addr; in do_ip_setsockopt()
749 struct ip_mreqn mreq; in do_ip_setsockopt() local
759 if (copy_from_user(&mreq, optval, sizeof(mreq))) in do_ip_setsockopt()
762 memset(&mreq, 0, sizeof(mreq)); in do_ip_setsockopt()
763 if (copy_from_user(&mreq, optval, sizeof(struct ip_mreq))) in do_ip_setsockopt()
768 err = ip_mc_join_group(sk, &mreq); in do_ip_setsockopt()
770 err = ip_mc_leave_group(sk, &mreq); in do_ip_setsockopt()
830 struct ip_mreqn mreq; in do_ip_setsockopt() local
832 mreq.imr_multiaddr.s_addr = mreqs.imr_multiaddr; in do_ip_setsockopt()
833 mreq.imr_address.s_addr = mreqs.imr_interface; in do_ip_setsockopt()
834 mreq.imr_ifindex = 0; in do_ip_setsockopt()
835 err = ip_mc_join_group(sk, &mreq); in do_ip_setsockopt()
852 struct ip_mreqn mreq; in do_ip_setsockopt() local
862 memset(&mreq, 0, sizeof(mreq)); in do_ip_setsockopt()
863 mreq.imr_multiaddr = psin->sin_addr; in do_ip_setsockopt()
864 mreq.imr_ifindex = greq.gr_interface; in do_ip_setsockopt()
867 err = ip_mc_join_group(sk, &mreq); in do_ip_setsockopt()
869 err = ip_mc_leave_group(sk, &mreq); in do_ip_setsockopt()
906 struct ip_mreqn mreq; in do_ip_setsockopt() local
909 mreq.imr_multiaddr = psin->sin_addr; in do_ip_setsockopt()
910 mreq.imr_address.s_addr = 0; in do_ip_setsockopt()
911 mreq.imr_ifindex = greqs.gsr_interface; in do_ip_setsockopt()
912 err = ip_mc_join_group(sk, &mreq); in do_ip_setsockopt()
915 greqs.gsr_interface = mreq.imr_ifindex; in do_ip_setsockopt()