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: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,

-e.


Home | Main Index | Thread Index | Old Index