Lines Matching defs:imr

1506 static struct in_device *ip_mc_find_dev(struct net *net, struct ip_mreqn *imr)
1511 if (imr->imr_ifindex) {
1512 idev = inetdev_by_index(net, imr->imr_ifindex);
1515 if (imr->imr_address.s_addr) {
1516 dev = __ip_dev_find(net, imr->imr_address.s_addr, false);
1523 imr->imr_multiaddr.s_addr,
1531 imr->imr_ifindex = dev->ifindex;
1856 int ip_mc_join_group(struct sock *sk , struct ip_mreqn *imr)
1859 __be32 addr = imr->imr_multiaddr.s_addr;
1872 in_dev = ip_mc_find_dev(net, imr);
1881 ifindex = imr->imr_ifindex;
1895 memcpy(&iml->multi, imr, sizeof(*imr));
1932 int ip_mc_leave_group(struct sock *sk, struct ip_mreqn *imr)
1939 __be32 group = imr->imr_multiaddr.s_addr;
1944 in_dev = ip_mc_find_dev(net, imr);
1949 ifindex = imr->imr_ifindex;
1958 } else if (imr->imr_address.s_addr && imr->imr_address.s_addr !=
1983 struct ip_mreqn imr;
1998 imr.imr_multiaddr.s_addr = mreqs->imr_multiaddr;
1999 imr.imr_address.s_addr = mreqs->imr_interface;
2000 imr.imr_ifindex = ifindex;
2001 in_dev = ip_mc_find_dev(net, &imr);
2011 imr.imr_multiaddr.s_addr) &&
2012 (pmc->multi.imr_ifindex == imr.imr_ifindex))
2112 return ip_mc_leave_group(sk, &imr);
2119 struct ip_mreqn imr;
2136 imr.imr_multiaddr.s_addr = msf->imsf_multiaddr;
2137 imr.imr_address.s_addr = msf->imsf_interface;
2138 imr.imr_ifindex = ifindex;
2139 in_dev = ip_mc_find_dev(net, &imr);
2154 pmc->multi.imr_ifindex == imr.imr_ifindex)
2198 err = ip_mc_leave_group(sk, &imr);
2206 struct ip_mreqn imr;
2219 imr.imr_multiaddr.s_addr = msf->imsf_multiaddr;
2220 imr.imr_address.s_addr = msf->imsf_interface;
2221 imr.imr_ifindex = 0;
2222 in_dev = ip_mc_find_dev(net, &imr);
2232 pmc->multi.imr_ifindex == imr.imr_ifindex)