Home
last modified time | relevance | path

Searched refs:mreq (Results 1 – 6 of 6) sorted by relevance

/linux-2.6.39/arch/um/drivers/
Dmcast_user.c61 struct ip_mreq mreq; in mcast_open() local
110 mreq.imr_multiaddr.s_addr = sin->sin_addr.s_addr; in mcast_open()
111 mreq.imr_interface.s_addr = 0; in mcast_open()
113 &mreq, sizeof(mreq)) < 0) { in mcast_open()
134 struct ip_mreq mreq; in mcast_close() local
138 mreq.imr_multiaddr.s_addr = sin->sin_addr.s_addr; in mcast_close()
139 mreq.imr_interface.s_addr = 0; in mcast_close()
141 &mreq, sizeof(mreq)) < 0) { in mcast_close()
/linux-2.6.39/net/ipv4/
Dip_sockglue.c630 struct ip_mreqn mreq; in do_ip_setsockopt() local
644 if (copy_from_user(&mreq, optval, sizeof(mreq))) in do_ip_setsockopt()
647 memset(&mreq, 0, sizeof(mreq)); in do_ip_setsockopt()
649 copy_from_user(&mreq.imr_address, optval, in do_ip_setsockopt()
654 if (!mreq.imr_ifindex) { in do_ip_setsockopt()
655 if (mreq.imr_address.s_addr == htonl(INADDR_ANY)) { in do_ip_setsockopt()
661 dev = ip_dev_find(sock_net(sk), mreq.imr_address.s_addr); in do_ip_setsockopt()
663 mreq.imr_ifindex = dev->ifindex; in do_ip_setsockopt()
665 dev = dev_get_by_index(sock_net(sk), mreq.imr_ifindex); in do_ip_setsockopt()
675 mreq.imr_ifindex != sk->sk_bound_dev_if) in do_ip_setsockopt()
[all …]
/linux-2.6.39/net/ipv6/
Dipv6_sockglue.c544 struct ipv6_mreq mreq; in do_ipv6_setsockopt() local
554 if (copy_from_user(&mreq, optval, sizeof(struct ipv6_mreq))) in do_ipv6_setsockopt()
558 retv = ipv6_sock_mc_join(sk, mreq.ipv6mr_ifindex, &mreq.ipv6mr_multiaddr); in do_ipv6_setsockopt()
560 retv = ipv6_sock_mc_drop(sk, mreq.ipv6mr_ifindex, &mreq.ipv6mr_multiaddr); in do_ipv6_setsockopt()
566 struct ipv6_mreq mreq; in do_ipv6_setsockopt() local
572 if (copy_from_user(&mreq, optval, sizeof(struct ipv6_mreq))) in do_ipv6_setsockopt()
576 retv = ipv6_sock_ac_join(sk, mreq.ipv6mr_ifindex, &mreq.ipv6mr_acaddr); in do_ipv6_setsockopt()
578 retv = ipv6_sock_ac_drop(sk, mreq.ipv6mr_ifindex, &mreq.ipv6mr_acaddr); in do_ipv6_setsockopt()
/linux-2.6.39/net/packet/
Daf_packet.c1838 static int packet_mc_add(struct sock *sk, struct packet_mreq_max *mreq) in packet_mc_add() argument
1848 dev = __dev_get_by_index(sock_net(sk), mreq->mr_ifindex); in packet_mc_add()
1853 if (mreq->mr_alen > dev->addr_len) in packet_mc_add()
1863 if (ml->ifindex == mreq->mr_ifindex && in packet_mc_add()
1864 ml->type == mreq->mr_type && in packet_mc_add()
1865 ml->alen == mreq->mr_alen && in packet_mc_add()
1866 memcmp(ml->addr, mreq->mr_address, ml->alen) == 0) { in packet_mc_add()
1874 i->type = mreq->mr_type; in packet_mc_add()
1875 i->ifindex = mreq->mr_ifindex; in packet_mc_add()
1876 i->alen = mreq->mr_alen; in packet_mc_add()
[all …]
/linux-2.6.39/drivers/scsi/qla2xxx/
Dqla_mbx.c3768 qla2x00_loopback_test(scsi_qla_host_t *vha, struct msg_echo_lb *mreq, in qla2x00_loopback_test() argument
3780 mcp->mb[1] = mreq->options | BIT_6; // BIT_6 specifies 64 bit addressing in qla2x00_loopback_test()
3783 mcp->mb[10] = LSW(mreq->transfer_size); in qla2x00_loopback_test()
3784 mcp->mb[11] = MSW(mreq->transfer_size); in qla2x00_loopback_test()
3787 mcp->mb[14] = LSW(mreq->send_dma); in qla2x00_loopback_test()
3788 mcp->mb[15] = MSW(mreq->send_dma); in qla2x00_loopback_test()
3789 mcp->mb[20] = LSW(MSD(mreq->send_dma)); in qla2x00_loopback_test()
3790 mcp->mb[21] = MSW(MSD(mreq->send_dma)); in qla2x00_loopback_test()
3793 mcp->mb[16] = LSW(mreq->rcv_dma); in qla2x00_loopback_test()
3794 mcp->mb[17] = MSW(mreq->rcv_dma); in qla2x00_loopback_test()
[all …]
/linux-2.6.39/net/netfilter/ipvs/
Dip_vs_sync.c1247 struct ip_mreqn mreq; in join_mcast_group() local
1251 memset(&mreq, 0, sizeof(mreq)); in join_mcast_group()
1252 memcpy(&mreq.imr_multiaddr, addr, sizeof(struct in_addr)); in join_mcast_group()
1260 mreq.imr_ifindex = dev->ifindex; in join_mcast_group()
1263 ret = ip_mc_join_group(sk, &mreq); in join_mcast_group()