From owner-freebsd-hackers Thu Oct 14 7:18:44 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 1EA2414C32 for ; Thu, 14 Oct 1999 07:18:03 -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 QAA04948; Thu, 14 Oct 1999 16:18:07 +0100 From: Luigi Rizzo Message-Id: <199910141518.QAA04948@labinfo.iet.unipi.it> Subject: Re: multicast set ttl value... (fwd) To: singuru@wipinfo.soft.net Date: Thu, 14 Oct 1999 16:18:07 +0100 (MET) Cc: freebsd-hackers@FreeBSD.ORG In-Reply-To: <9910141559.AA23897@tagore.wipinfo.soft.net> from "S.RadhaKrishna" at Oct 14, 99 03:57:23 pm X-Mailer: ELM [version 2.4 PL23] Content-Type: text Content-Length: 1423 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. been there, done that, on windows apart from the different type (i think it needs to be int) you can only set the ttl after you have bound the socket to a multicast address. not totally nonsense, but definitely "different" from unix cheers luigi > -----------------------------------+------------------------------------- Luigi RIZZO, luigi@iet.unipi.it . Dip. di Ing. dell'Informazione http://www.iet.unipi.it/~luigi/ . Universita` di Pisa TEL/FAX: +39-050-568.533/522 . via Diotisalvi 2, 56126 PISA (Italy) http://www.iet.unipi.it/~luigi/ngc99/ ==== First International Workshop on Networked Group Communication ==== -----------------------------------+------------------------------------- > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-hackers" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message