Subject: Re: multicast support
To: HARAWAT.IN.ORACLE.COM <HARAWAT.IN.email@example.com>
From: Assar Westerlund <firstname.lastname@example.org>
Date: 09/29/1997 07:58:42
"HARAWAT.IN.ORACLE.COM" <HARAWAT.IN.email@example.com> writes:
> 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).