all,
   I'm using the following call to set the ttl value (after doing a
successful
socket call)
------
     ttl=5;
     if (setsockopt(sockfd, IPPROTO_IP, IP_MULTICAST_TTL,
                            (char *)&ttl, sizeof(ttl)) < 0)
     {
          printf("\nserv.c: setting of TTL value failed \n");
          perror("setsockopt");
          exit(1);
     }
---------

It gives the following message :
------
serv.c: setting of TTL value failed
setsockopt: Invalid argument
--------

I tried with "root" perms also. But it didn't help. I would be
thankful if any one can provide me some help on this.

PS: I'm not in this mailing list. Please mark a copy to
"[EMAIL PROTECTED]"



To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message

Reply via email to