diff options
author | Koen Kooi <koen@dominion.thruhere.net> | 2014-07-08 16:35:26 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-07-10 17:38:33 +0100 |
commit | aa460d8cc16b7e328b0226f783c30ab7e59173df (patch) | |
tree | 73bf37e3168ff1a70cd3345995bf678b2f6e982d /meta/recipes-connectivity/libnss-mdns | |
parent | 6156379f91cfcd013bda2fc546cb8b197c608557 (diff) | |
download | poky-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/libnss-mdns')
-rw-r--r-- | meta/recipes-connectivity/libnss-mdns/libnss-mdns_0.10.bb | 6 |
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 5b8c700411..df7d196e31 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" | |||
26 | RDEPENDS_${PN} = "avahi-daemon" | 26 | RDEPENDS_${PN} = "avahi-daemon" |
27 | 27 | ||
28 | pkg_postinst_${PN} () { | 28 | pkg_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 | ||
34 | pkg_prerm_${PN} () { | 34 | pkg_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 | } |