summaryrefslogtreecommitdiffstats
path: root/meta/recipes-connectivity
diff options
context:
space:
mode:
authorKoen Kooi <koen@dominion.thruhere.net>2014-07-08 14:35:26 (GMT)
committerRichard Purdie <richard.purdie@linuxfoundation.org>2014-07-10 16:38:33 (GMT)
commitaa460d8cc16b7e328b0226f783c30ab7e59173df (patch)
tree73bf37e3168ff1a70cd3345995bf678b2f6e982d /meta/recipes-connectivity
parent6156379f91cfcd013bda2fc546cb8b197c608557 (diff)
downloadpoky-aa460d8cc16b7e328b0226f783c30ab7e59173df.tar.gz
libnss-mdns: support ipv6 in lookups
It nothing can resolve the hostname as ipv4 it will also try ipv6. Ideally the mdns4_minimal should get replaced as well, but there's some handwaving on the internet stating it will slow things down if your ipv6 network is misconfigured. Since I can't verify that slowdown I've opted for the safe way and only do ipv6 lookup in the fallback entry. (From OE-Core rev: fdb5aaabea9e32d687c055ca25506dcffbb37867) Signed-off-by: Koen Kooi <koen@dominion.thruhere.net> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-connectivity')
-rw-r--r--meta/recipes-connectivity/libnss-mdns/libnss-mdns_0.10.bb6
1 files changed, 3 insertions, 3 deletions
diff --git a/meta/recipes-connectivity/libnss-mdns/libnss-mdns_0.10.bb b/meta/recipes-connectivity/libnss-mdns/libnss-mdns_0.10.bb
index 5b8c700..df7d196 100644
--- a/meta/recipes-connectivity/libnss-mdns/libnss-mdns_0.10.bb
+++ b/meta/recipes-connectivity/libnss-mdns/libnss-mdns_0.10.bb
@@ -26,13 +26,13 @@ DEBIANNAME_${PN} = "libnss-mdns"
26RDEPENDS_${PN} = "avahi-daemon" 26RDEPENDS_${PN} = "avahi-daemon"
27 27
28pkg_postinst_${PN} () { 28pkg_postinst_${PN} () {
29 sed -e '/^hosts:/s/\s*\<mdns4\>//' \ 29 sed -e '/^hosts:/s/\s*\<mdns\>//' \
30 -e 's/\(^hosts:.*\)\(\<files\>\)\(.*\)\(\<dns\>\)\(.*\)/\1\2 mdns4_minimal [NOTFOUND=return]\3\4 mdns4\5/' \ 30 -e 's/\(^hosts:.*\)\(\<files\>\)\(.*\)\(\<dns\>\)\(.*\)/\1\2 mdns4_minimal [NOTFOUND=return]\3\4 mdns\5/' \
31 -i $D/etc/nsswitch.conf 31 -i $D/etc/nsswitch.conf
32} 32}
33 33
34pkg_prerm_${PN} () { 34pkg_prerm_${PN} () {
35 sed -e '/^hosts:/s/\s*\<mdns4\>//' \ 35 sed -e '/^hosts:/s/\s*\<mdns\>//' \
36 -e '/^hosts:/s/\s*mdns4_minimal\s\+\[NOTFOUND=return\]//' \ 36 -e '/^hosts:/s/\s*mdns4_minimal\s\+\[NOTFOUND=return\]//' \
37 -i $D/etc/nsswitch.conf 37 -i $D/etc/nsswitch.conf
38} 38}