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:17:31AM +0300, Elad Efrat wrote:
> On Thu, Apr 30, 2009 at 12:06 AM, Manuel Bouyer 
> <bouyer%antioche.eu.org@localhost> wrote:
> 
> > looks good now. Can look at removing the similar __UNCONST in the
> > netinet source ?
> 
> Oh, there I have a local variable ("struct sockaddr_in lsin") that I
> use to copy dom_sa_any into, and then use its address when setting
> sin:
> 
>     struct sockaddr_in lsin; /* entire function scope */
>     [...]
>     } else {
>         /* no nam */
>         lsin = *((const struct sockaddr_in *)
>             inp->inp_socket->so_proto->pr_domain->dom_sa_any);
>         sin = &lsin;
>     }
> 
> Thanks,

that's better. thanks !

-- 
Manuel Bouyer, LIP6, Universite Paris VI.           
Manuel.Bouyer%lip6.fr@localhost
     NetBSD: 26 ans d'experience feront toujours la difference
--


Home | Main Index | Thread Index | Old Index