From owner-freebsd-hackers Mon Oct 11 3: 6:44 1999 Delivered-To: freebsd-hackers@freebsd.org Received: from agni.wipinfo.soft.net (agni.wipinfo.soft.net [164.164.6.20]) by hub.freebsd.org (Postfix) with ESMTP id 2FB7B14D76 for ; Mon, 11 Oct 1999 03:06:27 -0700 (PDT) (envelope-from singuru@wipinfo.soft.net) Received: from vayu.wipinfo.soft.net (vayu [192.168.200.170]) by agni.wipinfo.soft.net (8.9.3/8.9.3) with ESMTP id PAA05847 for ; Mon, 11 Oct 1999 15:36:45 +0500 (GMT) Received: from canine.wipinfo.soft.net (root@canine.wipinfo.soft.net [192.168.205.6]) by vayu.wipinfo.soft.net (8.9.3/8.9.3) with ESMTP id PAA09122 for ; Mon, 11 Oct 1999 15:37:25 +0500 (GMT) Received: from tagore (ncrtagore.wipinfo.soft.net [192.168.205.3]) by canine.wipinfo.soft.net (8.9.3/8.9.3) with SMTP id PAA03540 for ; Mon, 11 Oct 1999 15:37:12 +0530 Date: Mon, 11 Oct 1999 15:43:28 +0530 (IST) From: Singuru RadhaKrishna X-Sender: singuru@tagore To: freebsd-hackers@FreeBSD.ORG Subject: multicast set TTL regarding... Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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