hi,
I'm using getsockopt to get IP_MULTICAST_TTL. But it always returns ttl
as 0. It doesn't fail either.
Here is the call I'm using :
-----------
int get_ttl=0;
u_char ttlSize=0;
if (getsockopt(sockfd, IPPROTO_IP, IP_MULTICAST_TTL,
(void*)&get_ttl,(int *)&ttlSize) < 0)
{
printf("ttl.c:get ttl failed\n");
perror("getsockopt");
exit(1);
}
----------
I used setsockopt to set ttl value. It works fine (I saw the packets on the
network using a sniffer). But getsockopt returns always 0.
Any help on this would be appreciated.
regards
radha
To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message