From owner-freebsd-current@freebsd.org Sun May 29 10:01:01 2016 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 5C8EEB4F2E1 for ; Sun, 29 May 2016 10:01:01 +0000 (UTC) (envelope-from yaneurabeya@gmail.com) Received: from mail-pf0-x22d.google.com (mail-pf0-x22d.google.com [IPv6:2607:f8b0:400e:c00::22d]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 26A831CC0 for ; Sun, 29 May 2016 10:01:01 +0000 (UTC) (envelope-from yaneurabeya@gmail.com) Received: by mail-pf0-x22d.google.com with SMTP id g64so55560438pfb.2 for ; Sun, 29 May 2016 03:01:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=subject:mime-version:from:in-reply-to:date:cc:message-id:references :to; bh=54awucDWcqrf287YUVhL6ASUS2Wu+SnQXV/+1/BnBOQ=; b=jRyMt4HHH1DQTMrgu+vsD1J85RQijKj9k5f00Ud/OrzaCzxP/s8KMrkBNO2rQwSbPg ckPQRu6EsIp9Ulcx9IdggQcFcmpLf9xO0mUGHq5hgYyQFNSHQc/+ZJvJuR6HVj5f7k/p xUI9swZE6qxAIZBrk4rWi7/kVYoW2cyMAm33ljv0FRS7iTc8bBF8mBZpQKEJZEEiB21G RVsdJsdODtypizeORa/fMUI1mAw+KXYoGxlxkjjylm5AfPtyI4Tyu1/jBQ9hOB69j1Nb +ba9VEX39Fj5woNhk1fW5mfbBqjhNTPee6FUKyC1FPeirZBSyPxO96/5iA9Al1BwtMGl j1FQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:subject:mime-version:from:in-reply-to:date:cc :message-id:references:to; bh=54awucDWcqrf287YUVhL6ASUS2Wu+SnQXV/+1/BnBOQ=; b=VtkXY18NceJBYWKEejDnLN6g3nJIiqb5BOfrZPOl+mc5uj8ph6sN+A4kzRwHreSWXW 43WrtlvE1bXdjOReUo9/lpOepmrF5iPPBDabtSrDveQpd/hu+YnRBMTZMtxJUdzlMXrY VI+CNnfTdKBFT/zdsB2PfyP8pPXYl3GzsUJ/N0kCbiC0w+ZMqYgYDpww4mkovWwn4riu 4sa6/9C60PixFowyMdXxZqXJhZt5qPM2NuYfe5P3JcXuVAEKRM2B6EkQ4asFWVpUBTmy KoxzlVJtwt4DP4eZKF73NC/lTrwsMVg0Ym4qDSdJVOU8MB/Wu0Tb+npfGVqduZd2c5Fv cvTQ== X-Gm-Message-State: ALyK8tL9IAWJ2eZpe0ON0w5anNXsxxMyVC65V6YNKb58pmZGxKNor/IFXLwMmgKfWRih/A== X-Received: by 10.98.93.145 with SMTP id n17mr16404583pfj.66.1464516060704; Sun, 29 May 2016 03:01:00 -0700 (PDT) Received: from pinklady.local (c-73-97-222-46.hsd1.wa.comcast.net. [73.97.222.46]) by smtp.gmail.com with ESMTPSA id a17sm25220179pfa.70.2016.05.29.03.00.59 (version=TLSv1/SSLv3 cipher=OTHER); Sun, 29 May 2016 03:01:00 -0700 (PDT) Subject: Re: r 300949: rpcbind rejects to start: couldn't create ip6 socket Mime-Version: 1.0 (Mac OS X Mail 9.3 \(3124\)) Content-Type: multipart/signed; boundary="Apple-Mail=_74C1E9E1-7F25-416B-85F7-D12EFADF154D"; protocol="application/pgp-signature"; micalg=pgp-sha512 X-Pgp-Agent: GPGMail 2.6b2 From: "Ngie Cooper (yaneurabeya)" In-Reply-To: <20160529093230.68a5da55.ohartman@zedat.fu-berlin.de> Date: Sun, 29 May 2016 03:00:56 -0700 Cc: FreeBSD CURRENT Message-Id: References: <20160529093230.68a5da55.ohartman@zedat.fu-berlin.de> To: "O. Hartmann" X-Mailer: Apple Mail (2.3124) X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 29 May 2016 10:01:01 -0000 --Apple-Mail=_74C1E9E1-7F25-416B-85F7-D12EFADF154D Content-Type: multipart/mixed; boundary="Apple-Mail=_29103CB4-30A9-41FC-89FB-6A205489E534" --Apple-Mail=_29103CB4-30A9-41FC-89FB-6A205489E534 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 > On May 29, 2016, at 00:32, O. Hartmann = wrote: >=20 > After updating sources and build- and installworld, I realize that all = rpcbind related > services, so far NFS, are not working. On a client I check the start = of rpcbind by > setting option -d and receive the output shown below. >=20 > Well, prior to r300949 rpcbind started without complains - as it did = with r300901. >=20 > [...] > rpcbind not running? > Starting rpcbind. > rpcbind debugging enabled. > can't get local ip6 address: hostname nor servname provided, or not = known > couldn't create ip6 socket/etc/rc.d/rpcbind: WARNING: failed to start = rpcbind Hi, Could you please try this patch with -d (it=E2=80=99ll continue = on instead of exiting=E2=80=A6 I=E2=80=99m curious as to why it was = failing before). Does IPv6 work in your environment? Thanks! -Ngie --Apple-Mail=_29103CB4-30A9-41FC-89FB-6A205489E534 Content-Disposition: attachment; filename=ohartmann-rpcbind-util-break.patch Content-Type: application/octet-stream; name="ohartmann-rpcbind-util-break.patch" Content-Transfer-Encoding: 7bit Index: usr.sbin/rpcbind/util.c =================================================================== --- usr.sbin/rpcbind/util.c (revision 300945) +++ usr.sbin/rpcbind/util.c (working copy) @@ -40,6 +40,7 @@ #include #include #include +#include #include #include #include @@ -363,13 +364,20 @@ return; mreq6.ipv6mr_interface = 0; - inet_pton(AF_INET6, RPCB_MULTICAST_ADDR, &mreq6.ipv6mr_multiaddr); + ecode = inet_pton(AF_INET6, RPCB_MULTICAST_ADDR, + &mreq6.ipv6mr_multiaddr); + if (ecode != 1) { + if (debugging) + fprintf(stderr, "inet_pton failed with rc=%d: %s", + ecode, strerror(errno)); + goto done_inet6; + } s = socket(AF_INET6, SOCK_DGRAM, IPPROTO_UDP); if (s == -1) { if (debugging) fprintf(stderr, "couldn't create ip6 socket"); - exit(1); + goto done_inet6; } /* @@ -392,6 +400,7 @@ if (debugging) perror("setsockopt v6 multicast"); } +done_inet6: freeifaddrs(ifp); #endif --Apple-Mail=_29103CB4-30A9-41FC-89FB-6A205489E534-- --Apple-Mail=_74C1E9E1-7F25-416B-85F7-D12EFADF154D Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP using GPGMail -----BEGIN PGP SIGNATURE----- Comment: GPGTools - https://gpgtools.org iQIcBAEBCgAGBQJXSr3ZAAoJEPWDqSZpMIYVeeEQAJzS3KZKImcBWy2dZNcAJZ+F qt00H+abBeJm+ixOHPQbUoD85X3Ls8Ay5XKzicNrcy7IJuIj/Qe8B3OTjYNEMVFu 1MmXHkflpidmcKJ9J99pPaxCLuxTNjwzipv0liFjPgtBVSe6S5CLtKZYbEBYmLtb 4hLaZnm+j6KrHA7KgIrnM5zZpxFliVFT6CTt1RKTJ8oJ/Z0+kY0ycXG757OgM7ik 7xiUZdt6mXLp7/iskeh7BMxCrp5M/hFc6lRdnV9ByHqvyrU1sWf8ZRVmA8OyphRG b3t46Qhwy+4p3sUmGkA686jrKfLLamEBzfNtukFVKPam4BoY3dTy0wsdSVkUHYp6 fXxexCWzMh9i85PB3aLDqxuljl4JQTe58pdwAtRVSsRdplLdilWSMNnU52Cfi617 RKQJvdDiPm5FkwihSefllhHjPaCi8k7AjvmcreyRu0iaBCD4DgxkKxaoKB9OgYzG MjT9mWncmMqc94lGGz7GJHTcOmZYapgWrT9WkpAEqv8zpHmfTciKAf7C33wixsM9 wBRsRxEGjakfsRXf6z3i8SGp4wmAIgtUg9TJC/Hv62+zXLzQRM3BPVxj+rmN1zot zWHLb8pztIEEtaN8ZqxtU86xC7AEkKsNhzOWoce4IRmB3H+ynXD2+H2lZwrqJGgf K7fB3d3sd7msqxm+pQZm =v9BH -----END PGP SIGNATURE----- --Apple-Mail=_74C1E9E1-7F25-416B-85F7-D12EFADF154D--