Subject: Re: multicast support
From: Assar Westerlund <>
List: tech-net
Date: 09/29/1997 07:58:42
> 	Is there an existing interface in NetBSD thru which a program  can add 
> the m/c's ipaddress   to a muticast address, so that it receives all the 
> packet ( in the internet) which are sent to this multicast address. 

struct ip_mreq mreq;


setsockopt(fd, IPPROTO_IP, IP_ADD_MEMBERSHIP, &mreq, sizeof(mreq));

You might want to have a look at ip(4).