Hi, Am Samstag, den 27.04.2013, 09:39 +0200 schrieb Petter Reinholdtsen: > [Joachim Breitner] > > it was reported that libnss-myhostname may report an IPv6 address > > for the local hostname that is not pingable, as it is a link scoped > > address, and it was suggested that it not do that. Do you agree and > > can you fix it? > > Here is a simple patch to make sure link local addresses are no longer > returned by libnss-myhostname. > > The alternative would be to return addresses with %interface appended, > but I did not investigate how to do that. > > The attached and tested patch solve my problem, making the command > 'ping6 $(hostname)' work again. I choose to work on the string > representation of the address, to avoid having to add endian specific > code to look in the "raw" address. Perhaps there is a better and > still portable way to do this?
thanks for the patch. However, I’m reluctant to apply it without upstream’s opinion and blessing. Lennart, can you comment on the problem and solution? Thanks, Joachim -- Joachim "nomeata" Breitner Debian Developer nome...@debian.org | ICQ# 74513189 | GPG-Keyid: 4743206C JID: nome...@joachim-breitner.de | http://people.debian.org/~nomeata
signature.asc
Description: This is a digitally signed message part