From owner-freebsd-hackers Thu Oct 14 5:32:19 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 66C3914E11 for ; Thu, 14 Oct 1999 05:32:11 -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 SAA07218 for ; Thu, 14 Oct 1999 18:02:33 +0500 (GMT) Received: from tagore.wipinfo.soft.net (ncrtagore.wipinfo.soft.net [192.168.205.3]) by vayu.wipinfo.soft.net (8.9.3/8.9.3) with SMTP id PAA07397 for <@vayu:freebsd-hackers@FreeBSD.ORG>; Thu, 14 Oct 1999 15:50:54 +0500 (GMT) Message-ID: <9910141559.AA23897@tagore.wipinfo.soft.net> Subject: multicast set ttl value... (fwd) To: freebsd-hackers@FreeBSD.ORG Date: Thu, 14 Oct 1999 15:57:42 +0530 (IST) From: "S.RadhaKrishna" Reply-To: singuru@wipinfo.soft.net Return-Reply-To: singuru@wipinfo.soft.net Location: Wipro Infotech, Mission Rd., Bangalore India X-Mailer: ELM [version 2.4 PL23] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hi 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 works on unix but not on NT/98. I tried declaring "ttl" as char/int/short. But it didn't help. I would be thankful if any one can provide me some help on this. PS: I'm sorry if I've posted the question in the wrong group. Would be happy if any one can direct me to the proper group. regards radha To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message