From owner-freebsd-questions@freebsd.org Wed Oct 2 08:31:28 2019 Return-Path: Delivered-To: freebsd-questions@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 4B35A126C0C for ; Wed, 2 Oct 2019 08:31:28 +0000 (UTC) (envelope-from emorrasg@yahoo.es) Received: from sonic314-21.consmr.mail.ir2.yahoo.com (sonic314-21.consmr.mail.ir2.yahoo.com [77.238.177.147]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 46jq9V5Db9z4167 for ; Wed, 2 Oct 2019 08:31:26 +0000 (UTC) (envelope-from emorrasg@yahoo.es) X-YMail-OSG: t2RwZXYVM1naRV54RRQjDpTPcYKcwo1nNxbZy9jZo1IQnI8VLSpcQCbMqX3wuqp _fcYJRU0ABj9eIEC1goTvq5Pl9Ir8IcoEN9rM6dsgEKeDsLoqN7IygqcsPjjWf2gUsqAJXnSbhwh zgt3d13.H9IEDFG6MgFST1U0EGT2uXZ5RRdrWYqMEaCvLALy9YWfaYwHBqyTUEy5VQvd8JHa5dnQ PiS_F_zke3gF_m28fnjqPYt7mmKZh79lp99UMICJ4EYiwity0dYnvRo796_p1yv_MNzylGRfJfxF X6jX8JfzhxETdpDNVNFfn5koD3gaYgi6zBd19Yc9kVcHWwTqHGiJtL08DmvYxZiUaMui5j._XY7z 1PwEOCr0pLpd9Jggi58ew_zMXKP2uA9ksj0C3KKaMvHFP0hq9s89qwKy7D1NgW2e9m643wNRON7l HlBtuknDeBWP7BvNeT4qKaPIxvaxQ54H5J07UOFcrsF3_.DZeDpz2Dgmwf5ouSdhrgJmuEb_AnG. E8XyCXnNhCLAjR9MbgxmZe3ByueSa6oBY1X02Cki7zmO.5FBEGGiTChMW5D.HOTo2ApODFQ_I4Oi wxfthwnCcBvAt_tq15kT_DGI.CKDqEJTBIQp57zNvqW7iRwEKhCzBiy9x_xdfR.Z5oehUM9303Lm X535m9geNmY1BtvTM.BPS78l.2zK1Kv_.wjNDO6fEctOty3olrpdelbDYaoZMnFYodMsU.DYE0WO t2FFa_9L.AbWFSiitO1nwsJ_FQ5Xfv6.T3CGUxscegjO4u8fcYAJVtewuuMtoQKoaSdiYFD9rPzi 8H8BgFJeCkwSLIet7qzSKYeRGsO3yCcOWVnkuEiNi4Fi7VCSSVhiMe6x8Tzfd5JU6m35vZyZawcQ 6JclMKIpULaIm7jNAZTIieC6cGqAxZVwOHn29NRPLvoLKz9oGnU50DQ0fHq8r92Q7_j6KXQ98Nwo GyUXjyPVxgGaGzxOfT0bI74vBl5DVMtbHSkjbLfWkUx5k6hRXIzZD7E.KvrT9SawYSRGuaz1x36Z x5zoBNWofrxePv_8w.XQZG1GDN.R32pb0qBvaXt12f6k9EteI7vjL1sUiO2v5q2V5VV2NHw6x3vS zMo47FvI.HAMUj6K5zfqaxxVQncR_9plaJvHLMhCuRnTXMew5HowpqTU46SfGlElTbJHirv3Ol_S 4ZFJcoGFwj.1xHOvs.y55Sn_ulVDmG8UHSDeXg4sjIBhjALDq7PEUM.LJqD_SkAiYKoR8DzDrhPw Y Received: from sonic.gate.mail.ne1.yahoo.com by sonic314.consmr.mail.ir2.yahoo.com with HTTP; Wed, 2 Oct 2019 08:31:25 +0000 Received: by smtp429.mail.ir2.yahoo.com (Oath Hermes SMTP Server) with ESMTPA ID 76478a1c327ec4089168c6e7c4e03c81; Wed, 02 Oct 2019 08:31:23 +0000 (UTC) Date: Wed, 2 Oct 2019 10:42:18 +0200 From: Eduardo Morras To: freebsd-questions@freebsd.org Subject: Re: Sctp and getaddrinfo Message-Id: <20191002104218.b5371941ed32b5ce87817a2f@yahoo.es> In-Reply-To: References: X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.32; amd64-portbld-freebsd11.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 46jq9V5Db9z4167 X-Spamd-Bar: - X-Spamd-Result: default: False [-1.82 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-0.42)[-0.418,0]; R_DKIM_ALLOW(-0.20)[yahoo.es:s=s2048]; FROM_HAS_DN(0.00)[]; R_SPF_ALLOW(-0.20)[+ptr:yahoo.com]; FREEMAIL_FROM(0.00)[yahoo.es]; MIME_GOOD(-0.10)[text/plain]; TO_DN_NONE(0.00)[]; NEURAL_HAM_LONG(-0.90)[-0.901,0]; IP_SCORE_FREEMAIL(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; RCVD_TLS_LAST(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; DKIM_TRACE(0.00)[yahoo.es:+]; DMARC_POLICY_ALLOW(-0.50)[yahoo.es,reject]; RCVD_IN_DNSWL_NONE(0.00)[147.177.238.77.list.dnswl.org : 127.0.5.0]; MV_CASE(0.50)[]; IP_SCORE(0.00)[ip: (2.55), ipnet: 77.238.176.0/22(2.17), asn: 34010(1.71), country: GB(-0.08)]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; FREEMAIL_ENVFROM(0.00)[yahoo.es]; ASN(0.00)[asn:34010, ipnet:77.238.176.0/22, country:GB]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_COUNT_TWO(0.00)[2] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 02 Oct 2019 08:31:28 -0000 On Tue, 1 Oct 2019 21:12:47 -0500 Brian Wood wrote: > Hi. I've been trying to use sctp and gettaddrinfo (SOCK_STREAM > and IPPROTO_SCTP) but have had some problems. My server > starts with those, but the client gets a "non-recoverable failure > in name resolution," when connecting. > > I notice this example isn't using getaddrinfo: > https://www.ibm.com/developerworks/library/l-sctp/index.html > > Do you ever use sctp and getaddrinfo? I'm using Trident/ > FreeBSD 12.0 on amd64. Thanks in advance. Yes, I use it. Some questions: a) Can you post your getaddreinfo call? b) Do you use hint? Set it to null. c) Are you using more than one network interface? getaddrinfo (afaik) don't support it. After using getaddrinfo you can add more interfaces to the association d) Does your dns work? Are client and server in the same machine? > Brian > Ebenezer Enterprises - Enjoying programming again. > https://github.com/Ebenezer-group/onwards > _______________________________________________ > freebsd-questions@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to > "freebsd-questions-unsubscribe@freebsd.org" --- --- Eduardo Morras