From owner-freebsd-net Fri Apr 27 12:31:34 2001 Delivered-To: freebsd-net@freebsd.org Received: from farley.org (farley.org [216.140.158.72]) by hub.freebsd.org (Postfix) with ESMTP id 1B3F837B422 for ; Fri, 27 Apr 2001 12:31:32 -0700 (PDT) (envelope-from sean-freebsd@farley.org) Received: from thor.farley.org ([192.168.1.5]) by farley.org with esmtp (Exim 3.03 #1) id 14tDxa-0000Ee-00; Fri, 27 Apr 2001 14:31:22 -0500 Date: Fri, 27 Apr 2001 14:31:21 -0500 (CDT) From: Sean Farley X-X-Sender: To: , Subject: Solution: Sendmail outgoing bind() fails only PPP Message-ID: <20010427142517.K747-200000@thor.farley.org> MIME-Version: 1.0 Content-Type: MULTIPART/MIXED; BOUNDARY="0-960944695-988399842=:819" Content-ID: <20010427143057.X819@thor.farley.org> Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. Send mail to mime@docserver.cac.washington.edu for more info. --0-960944695-988399842=:819 Content-Type: TEXT/PLAIN; CHARSET=US-ASCII Content-ID: <20010427143057.S819@thor.farley.org> I found the bug. The socket was IPv6, but the bind used an IPv4 sockaddr struct. Patch attached. Sean ----------------------- sean-freebsd@farley.org PGP key: http://www.farley.org/~sean/pgp.key --0-960944695-988399842=:819 Content-Type: TEXT/PLAIN; CHARSET=US-ASCII; NAME=patch Content-Transfer-Encoding: BASE64 Content-ID: <20010427143042.K819@thor.farley.org> Content-Description: Patch Content-Disposition: ATTACHMENT; FILENAME=patch LS0tIGRhZW1vbi5jLm9yaWcJRnJpIEFwciAyNyAxNDoyNzo1MSAyMDAxDQor KysgZGFlbW9uLmMJRnJpIEFwciAyNyAxNDoyODoxNCAyMDAxDQpAQCAtMjAx Miw3ICsyMDEyLDcgQEANCiAJCX0NCiAJCWVsc2UNCiAJCXsNCi0JCQlzID0g c29ja2V0KGFkZHIuc2Euc2FfZmFtaWx5LCBTT0NLX1NUUkVBTSwgMCk7DQor CQkJcyA9IHNvY2tldChjbHRfYWRkci5zYS5zYV9mYW1pbHksIFNPQ0tfU1RS RUFNLCAwKTsNCiAJCX0NCiAJCWlmIChzIDwgMCkNCiAJCXsNCg== --0-960944695-988399842=:819-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message