From owner-freebsd-net Mon Nov 5 14:39: 4 2001 Delivered-To: freebsd-net@freebsd.org Received: from fledge.watson.org (fledge.watson.org [204.156.12.50]) by hub.freebsd.org (Postfix) with ESMTP id 348E137B418 for ; Mon, 5 Nov 2001 14:39:00 -0800 (PST) Received: from localhost (arr@localhost) by fledge.watson.org (8.11.6/8.11.5) with SMTP id fA5Mcrt82182 for ; Mon, 5 Nov 2001 17:38:53 -0500 (EST) (envelope-from arr@FreeBSD.org) X-Authentication-Warning: fledge.watson.org: arr owned process doing -bs Date: Mon, 5 Nov 2001 17:38:52 -0500 (EST) From: "Andrew R. Reiter" X-Sender: arr@fledge.watson.org To: freebsd-net@FreeBSD.org Subject: in_pcb patch -- force sin_zero & copy Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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 This patch was "inspired by" pr 31704. It first copies the sockaddr structure passed into us (in_pcbbind()) and then utilizes that new structure as the local sockaddr_in to modify/use. Also, it forces sin_zero to be 0, since it is meant to be a padding to sockaddr. Could the appropriate people check this out? I'm currently running it now as of 7 minutes ago -- but should not be an issue. patch url: http://people.freebsd.org/~arr/patches/in_pcb-sin.diff Cheers, Andrew -- Andrew R. Reiter arr@watson.org arr@FreeBSD.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message