From owner-freebsd-questions@freebsd.org Sun Oct 13 10:40:45 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 2C98BF4B0F for ; Sun, 13 Oct 2019 10:40:45 +0000 (UTC) (envelope-from emorrasg@yahoo.es) Received: from sonic314-19.consmr.mail.ir2.yahoo.com (sonic314-19.consmr.mail.ir2.yahoo.com [77.238.177.145]) (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 46rdWZ60f8z3J2X for ; Sun, 13 Oct 2019 10:40:42 +0000 (UTC) (envelope-from emorrasg@yahoo.es) X-YMail-OSG: kGYbSFcVM1naK2tmsP1g.NogDjDStKNfzhIbWiq7ani9VQw.ZFZdSFlQlptS5Cd xL7IlAuLyymiipRgSxdG.Sf9bs9yEzxRDlj5e2VEJ.Poz_i8aU45.sVM9tNT9atRQYbfIwOgQtTV K4fdz9fr_U9Eg5O3COkIofbTRZXVa7ONR60Qh7fsI_2dC49iR_JPusx1C_aNjaJ47KQQ5WZQCptW 4qV42N_X6qxaonCQHFW4O52AMuYTS9LApV_guSbrVR9cUAfg1X8IvG6kSjNaVvyVltOOgic07BUl uWtx2l.nB.copdUYlU25R6d40CLuWKzr2T0mIXLCrYoRZawQ7xC4VLQjAjxFXSrUbDZ97LfeaENM F4Qhpvbp1jGyz6pqj0XJvRe.Cqh4OJLiBg10d3Q4d1TJP5axcthb_ryZ0y3HWVO3BM5pRIP6w3JL 1ULNYEsVktkhnUy_NKsoj_LWfbP0tLn4Tuu3pWOPXkpEd.0bYUCcDvbdUd8jmnOY6mmG0TdI8nZN VsG0mLIO0MitLosxjsN49jLfxLk2gYscnZehelTpSY27GDePQpPbyxF4nOmW2blL2LOjzeFv67vX 10peTgljB1PnIls52ljXbE2Wk4xFacbA0Y5ITO9lQSb5NtKhWVEGiS1C5QU3QvpFaSyRu0U3of0a JEkYF3p.LF.Je4kZdcqKv6VuDDWwRfo2g8k_Ey6ztYfXu1a4mXbVsl_7Z_puCyZOSvCdqHjGxTYd hypfqjs73q4fyjngIeK7AKyf3WHUR9vW9vfjoXRTxM65NdkWHn_s26fakrDG3dRA7s__apMaSLGS e3PnsjbnMWQn4rYKEWx.NboK7uygDrnsOlGpA8s7ksgxCRpxe0b3S1FlKYryjd8f2dgiR_ANC4Qw QAzuR0VywCdc96I5D9HonxQduoiX9JeJuzJA3OpET8CyFfmX2XojJelJnI.DDnplorMg4IeEbsBf cwK3pz446BD4TYvcQlILMtX6_7avjrSLEDWJTOkrkrIQGMlB9lpwf0.ov02bTubeLMnwniQRUoNv TfSm7ooYRlTf16MsgalvxovtMvkJZlafOQFSUAK_EUUnzVOjlzeGP6ClFf4d49dLjPsrL9zS7e1F X__ALWWZAZs0jKB4rCxiL.WG..3Vv40P9YNXz6hnwm31sZ7QLn8mdFTihayONOqtvIVDu4aDJdft KsGvgCJEo_KKzbndaCfbqHmtkGxKASf2F2_9GwBXpCUgaQ7qQOfojN5dLRsKeo5wOQBQ38HfCY1y eMSthg01.IfQ_OXKAZRlBXhxwBBaj9Hm9Obna9UoSiA-- Received: from sonic.gate.mail.ne1.yahoo.com by sonic314.consmr.mail.ir2.yahoo.com with HTTP; Sun, 13 Oct 2019 10:40:39 +0000 Received: by smtp401.mail.ir2.yahoo.com (Oath Hermes SMTP Server) with ESMTPA ID 993af288f1a8d5430657e5a03efc7252; Sun, 13 Oct 2019 10:40:34 +0000 (UTC) Date: Sun, 13 Oct 2019 12:51:44 +0200 From: Eduardo Morras To: freebsd-questions@freebsd.org Subject: Re: Sctp and getaddrinfo Message-Id: <20191013125144.d005f969d2a3e75fad5f81dc@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: 46rdWZ60f8z3J2X X-Spamd-Bar: / X-Spamd-Result: default: False [0.94 / 15.00]; ARC_NA(0.00)[]; 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]; MIME_TRACE(0.00)[0:+]; TO_DN_NONE(0.00)[]; NEURAL_SPAM_MEDIUM(0.63)[0.628,0]; RCPT_COUNT_ONE(0.00)[1]; IP_SCORE_FREEMAIL(0.00)[]; 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)[145.177.238.77.list.dnswl.org : 127.0.5.0]; MV_CASE(0.50)[]; IP_SCORE(0.00)[ip: (5.67), ipnet: 77.238.176.0/22(2.18), asn: 34010(1.72), country: GB(-0.08)]; NEURAL_SPAM_LONG(0.81)[0.808,0]; RWL_MAILSPIKE_POSSIBLE(0.00)[145.177.238.77.rep.mailspike.net : 127.0.0.17]; FROM_EQ_ENVFROM(0.00)[]; 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: Sun, 13 Oct 2019 10:40:45 -0000 On Thu, 3 Oct 2019 00:01:30 -0500 Brian Wood wrote: > Eduardo Morras writes: > > > Yes, I use it. Some questions: > > > > a) Can you post your getaddreinfo call? > > > > b) Do you use hint? Set it to null. > > > I have this: > > ::addrinfo hints{0, AF_UNSPEC, SOCK_STREAM > , IPPROTO_SCTP,0,0,0,0}; > > > 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? > > They are on the same network. Don't know why is it failing to you. For my sctp code I used code from sctp-tools git project https://github.com/jtt/sctp-tools and sctplabs github repo (check https://github.com/sctplab/sctp_proxy project) In freebsd-net are sctp gurus, you could ask there too. > > Brian --- --- Eduardo Morras