tech-net archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: in_pcbsetport(), in6_pcbsetport()
On Thu, Apr 30, 2009 at 12:02:27AM +0300, Elad Efrat wrote:
> 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?
looks good now. Can look at removing the similar __UNCONST in the
netinet source ?
--
Manuel Bouyer <bouyer%antioche.eu.org@localhost>
NetBSD: 26 ans d'experience feront toujours la difference
--
Home |
Main Index |
Thread Index |
Old Index