[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
(usagi-users 00507) Re: Another problem with the hop limit
In article <31f862ddf8.2ddf831f86@xxxxxxxxxxx> (at Thu, 10 May 2001 11:15:56 +0200), SUPERJFG <SUPERJFG@xxxxxxxx> says:
> setsockopt. With the getsockopt, I still get the 'Invalid argument'
> error message. The code is:
>
> ret = getsockopt (sock, IPPROTO_IPV6, IPV6_UNICAST_HOPS,
> (void *) &ttl, sizeof (int));
int ttl;
socklen_t ttllen;
ttllen = sizeof(ttl);
ret = getsockopt (sock, IPPROTO_IPV6, IPV6_UNICAST_HOPS,
(void *) &ttl, &ttllen);
--
yoshfuji