Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 11 Oct 1999 15:43:28 +0530 (IST)
From:      Singuru RadhaKrishna <singuru@wipinfo.soft.net>
To:        freebsd-hackers@FreeBSD.ORG
Subject:   multicast set TTL regarding...
Message-ID:  <Pine.SV4.3.93.991011153841.3264A-100000@tagore>

next in thread | raw e-mail | index | archive | help
 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
"singuru@wipinfo.soft.net"



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.SV4.3.93.991011153841.3264A-100000>