patch: debuginfod ipv4-ipv6 dual-stack

Frank Ch. Eigler fche@redhat.com
Mon Apr 4 17:03:24 GMT 2022


Hi -


> That IN6_IS_ADDR_V4MAPPED is funny. Is that actually used in practice?

Yeah, actually all the time.  On a dual-stack socket, an ipv4 connection
gets an ipv6 peer-address that renders like ::ffff:1.2.3.4.


> Too bad this cannot be merged with conninfo above.
> But this calculates less info.

Yeah.


> >    obatched(clog) << "started http server on "
> > -                 << (d4 != NULL ? "IPv4 " : "")
> > -                 << (d6 != NULL ? "IPv6 " : "")
> > +                 << "IPv4 "
> > +                 << "IPv6 "
> >                   << "port=" << http_port << endl;
> 
> This keeps the log output the same, but I wouldn't mind just removing
> the IPv4 and IPv6 strings.

Yeah, makes sense.  OK, will push with that change.


- FChE



More information about the Elfutils-devel mailing list