[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

(usagi-users 00505) Re: Hop limit



Hi, 

Maybe try to remove the cast (char *).
The expected type is void *. And, cast it to (void *) as shown below.

  ret = setsockopt (sock, IPPROTO_IPV6, IPV6_UNICAST_HOPS, 
		(void *) &ttl, sizeof (int));

This piece of code works on zebra.
So, if this code doesn't work, maybe your configuration is wrong
elsewhere!

Regards, 
Gilles

-- 
 Gilles Diribarne
 Alcatel Research & Innovation
 Gilles.Diribarne@xxxxxxxxxx
 Tel: +33 (0)1 69 63 46 45	Fax: +33 (0)1 69 63 11 69