Lines Matching refs:mreq
115 leave_group(int sock, struct ip_mreq mreq, char *name);
132 struct ip_mreq mreq; in main() local
284 mreq.imr_multiaddr.s_addr = rcvr_addr.s_addr; in main()
285 mreq.imr_interface.s_addr = htonl(INADDR_ANY); in main()
286 ret = setsockopt(sock, IPPROTO_IP, IP_ADD_MEMBERSHIP, (void*)&mreq, in main()
287 sizeof(mreq)); in main()
427 leave_group(sock, mreq, argv[0]); in main()
453 leave_group(sock, mreq, argv[0]); in main()
482 leave_group(sock, mreq, argv[0]); in main()
513 leave_group(int sock, struct ip_mreq mreq, char *name) { in leave_group() argument
516 ret = setsockopt(sock, IPPROTO_IP, IP_DROP_MEMBERSHIP, (void*)&mreq, in leave_group()
517 sizeof(mreq)); in leave_group()