Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 11 Oct 1999 12:32:19 +0100 (MET)
From:      Luigi Rizzo <luigi@labinfo.iet.unipi.it>
To:        singuru@wipinfo.soft.net (Singuru RadhaKrishna)
Cc:        freebsd-hackers@FreeBSD.ORG
Subject:   Re: multicast set TTL regarding...
Message-ID:  <199910111132.MAA25593@labinfo.iet.unipi.it>
In-Reply-To: <Pine.SV4.3.93.991011153841.3264A-100000@tagore> from "Singuru RadhaKrishna" at Oct 11, 99 03:43:09 pm

next in thread | previous 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)

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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199910111132.MAA25593>