Dear all,
I'm currently trying to write a small program which sends igmp query out on
my LAN. It is currently working fine under different version of FreeBSD.
Packets are sent out on the Network and I can see them arriving on my
different routers.
I compiled this program on Solaris 8 (using gcc 2.95.2). So far so good but
when I execute it there are no packets sent out on my networks !!!!
The call I do to send the packets is easy:
nbs = sendto(s,&pkt,sizeof(struct igmp),0,(struct sockaddr *)sa,salen);
if ( nbs < 0 ) {
perror("Sending query");
return FALSE;
}
and creation of the socket is done like this:
s = socket(AF_INET,SOCK_RAW,IPPROTO_IGMP);
if ( lsq < 0 ) {
perror("Creation of listening socket");
return NULL;
}
Has any body any idea what the problem could be ? Should I configure smth
special on the socket in order to make it run under Solaris ?
Thank you in advance for any help
--
Laurent Bourqui
BNC AG
Grubenstrasse 7
CH-3322 Sch?nbhl
Switzerland
+41 (0)31 858 58 58
www.bnc.ch