From owner-freebsd-hackers Mon Oct 11 3:30:20 1999 Delivered-To: freebsd-hackers@freebsd.org Received: from labinfo.iet.unipi.it (labinfo.iet.unipi.it [131.114.9.5]) by hub.freebsd.org (Postfix) with SMTP id 31C1814E20 for ; Mon, 11 Oct 1999 03:30:15 -0700 (PDT) (envelope-from luigi@labinfo.iet.unipi.it) Received: from localhost (luigi@localhost) by labinfo.iet.unipi.it (8.6.5/8.6.5) id MAA25593; Mon, 11 Oct 1999 12:32:20 +0100 From: Luigi Rizzo Message-Id: <199910111132.MAA25593@labinfo.iet.unipi.it> Subject: Re: multicast set TTL regarding... To: singuru@wipinfo.soft.net (Singuru RadhaKrishna) Date: Mon, 11 Oct 1999 12:32:19 +0100 (MET) Cc: freebsd-hackers@FreeBSD.ORG In-Reply-To: from "Singuru RadhaKrishna" at Oct 11, 99 03:43:09 pm X-Mailer: ELM [version 2.4 PL23] Content-Type: text Content-Length: 418 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) check the type of "ttl". On Unix it should be char; on Windows it needs to be int. Some implementations can be more or less tolerant on size mismatch cheers luigi To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message