From owner-freebsd-net Tue Jul 9 6:36:12 2002 Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1136F37B400 for ; Tue, 9 Jul 2002 06:36:10 -0700 (PDT) Received: from smtp.uc3m.es (smtp03.uc3m.es [163.117.136.123]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6C9EC43E58 for ; Tue, 9 Jul 2002 06:36:09 -0700 (PDT) (envelope-from jrh@it.uc3m.es) Received: from smtp03.uc3m.es (localhost [127.0.0.1]) by smtp.uc3m.es (Postfix) with ESMTP id 6750643138 for ; Tue, 9 Jul 2002 14:36:10 +0200 (CEST) Received: from it.uc3m.es (alacran.it.uc3m.es [163.117.140.44]) by smtp03.uc3m.es (Postfix) with ESMTP id 5A99199DED for ; Tue, 9 Jul 2002 14:36:10 +0200 (CEST) Message-ID: <3D2AE6BB.7CD0CEC7@it.uc3m.es> Date: Tue, 09 Jul 2002 15:35:55 +0200 From: Juan Francisco Rodriguez Hervella X-Mailer: Mozilla 4.79 [en] (X11; U; Linux 2.4.2 i386) X-Accept-Language: en MIME-Version: 1.0 To: freebsd-net@freebsd.org Subject: About "sockaddr_in" and "sockaddr_in6" structures Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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 Hello: I'm seeing that "struct sockaddr_in" has a field like this: char sin_zero[8]; Why ? Could anyone explain me what's used for ? Could it be bad if I'd add the same field to "sockaddr_in6" ? PS: I'm trying to implement divert sockets for IPv6 using the KAME implementation of "ip6fw". Thanks. JFRH. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message