From owner-freebsd-net Fri Sep 14 17:25:28 2001 Delivered-To: freebsd-net@freebsd.org Received: from w250.z064001178.sjc-ca.dsl.cnc.net (w250.z064001178.sjc-ca.dsl.cnc.net [64.1.178.250]) by hub.freebsd.org (Postfix) with SMTP id 4037E37B407 for ; Fri, 14 Sep 2001 17:25:26 -0700 (PDT) Received: (qmail 51938 invoked by uid 1000); 15 Sep 2001 00:25:47 -0000 Date: Fri, 14 Sep 2001 17:25:25 -0700 From: Jos Backus To: freebsd-net@FreeBSD.ORG Subject: Re: How does getsockname() work? Message-ID: <20010914172525.C49323@lizzy.bugworks.com> Reply-To: Jos Backus Mail-Followup-To: freebsd-net@FreeBSD.ORG References: <20010914122357.A49323@lizzy.bugworks.com> <20010914165555.A150@tp.databus.com> <20010914200750.A1784@tp.databus.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20010914200750.A1784@tp.databus.com> User-Agent: Mutt/1.3.22.1i Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On Fri, Sep 14, 2001 at 08:07:28PM -0400, Barney Wolff wrote: > Oh yeah - you have to initialize local_len to the max length you > can accept. Whatever you took this code from either doesn't > work reliably or you copied it wrong. > Barney I indeed forgot to initialize local_len. It works fine now. Thanks! The bug in samplicator is still there in 1.3.1; I'll send a note to the author(s). -- Jos Backus _/ _/_/_/ Santa Clara, CA _/ _/ _/ _/ _/_/_/ _/ _/ _/ _/ josb@cncdsl.com _/_/ _/_/_/ use Std::Disclaimer; To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message