Subject: Re: multicast support
To: HARAWAT.IN.ORACLE.COM <HARAWAT.IN.oracle.com.ofcmail@in.oracle.com>
From: Assar Westerlund <assar@sics.se>
List: tech-net
Date: 09/29/1997 07:58:42
"HARAWAT.IN.ORACLE.COM" <HARAWAT.IN.oracle.com.ofcmail@in.oracle.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).
/assar