pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: NVMM not working anymore in qemu since 6.1.0 upgrade



On Sat, Sep 18, 2021 at 04:43:59PM +0200, Yorick Hardy wrote:
> -    ret = getnameinfo((const struct sockaddr *) &inso->lhost.ss, sizeof(inso->lhost.ss), addrstr, sizeof(addrstr), portstr, sizeof(portstr), NI_NUMERICHOST|NI_NUMERICSERV);
> +    if (inso->lhost.ss.ss_family == AF_INET)
> +        addrlen = sizeof(struct sockaddr_in);

Shouldn't that be addrlen = ((const struct sockaddr *)&inso->lhost.ss)->sa_len
instead?

Martin


Home | Main Index | Thread Index | Old Index