tech-net archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: in_pcbsetport(), in6_pcbsetport()
On Wed, Apr 29, 2009 at 11:55 PM, Manuel Bouyer
<bouyer%antioche.eu.org@localhost> wrote:
>> Would something like the following be okay?
>>
>> struct sockaddr_in6 lsin6 =
>> *((struct sockaddr_in6
>> *)__UNCONST(in6p->in6p_socket->so_proto->pr_domain->dom_sa_any));
>> lsin6.sin6_addr = *laddr;
>
> Why do you still need the __UNCONST here ?
Oh yeah. Removed, I now use just
struct sockaddr_in6 lsin6 =
*((const struct sockaddr_in6
*)in6p->in6p_socket->so_proto->pr_domain->dom_sa_any);
Anything else?
Thanks,
-e.
Home |
Main Index |
Thread Index |
Old Index