From owner-cvs-all  Wed Jan 16  5:45:49 2002
Delivered-To: cvs-all@freebsd.org
Received: from whale.sunbay.crimea.ua (whale.sunbay.crimea.ua [212.110.138.65])
	by hub.freebsd.org (Postfix) with ESMTP
	id F1E1C37B419; Wed, 16 Jan 2002 05:45:28 -0800 (PST)
Received: (from ru@localhost)
	by whale.sunbay.crimea.ua (8.11.6/8.11.2) id g0GDjKh99960;
	Wed, 16 Jan 2002 15:45:20 +0200 (EET)
	(envelope-from ru)
Date: Wed, 16 Jan 2002 15:45:20 +0200
From: Ruslan Ermilov <ru@FreeBSD.org>
To: Brian Somers <brian@FreeBSD.org>, cvs-committers@FreeBSD.org,
	cvs-all@FreeBSD.org
Subject: Re: cvs commit: src/usr.sbin/ppp arp.c atm.c mp.c route.c server.c tcp.c udp.c
Message-ID: <20020116154520.A98909@sunbay.com>
References: <200201161315.g0GDFlI94947@freefall.freebsd.org> <20020116152059.C91833@sunbay.com> <20020116063627.A265@colnta.acns.ab.ca>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <20020116063627.A265@colnta.acns.ab.ca>
User-Agent: Mutt/1.3.23i
Sender: owner-cvs-all@FreeBSD.ORG
Precedence: bulk
List-ID: <cvs-all.FreeBSD.ORG>
List-Archive: <http://docs.freebsd.org/mail/> (Web Archive)
List-Help: <mailto:majordomo@FreeBSD.ORG?subject=help> (List Instructions)
List-Subscribe: <mailto:majordomo@FreeBSD.ORG?subject=subscribe%20cvs-all>
List-Unsubscribe: <mailto:majordomo@FreeBSD.ORG?subject=unsubscribe%20cvs-all>
X-Loop: FreeBSD.ORG

On Wed, Jan 16, 2002 at 06:36:27AM -0700, Chad David wrote:
> On Wed, Jan 16, 2002 at 03:20:59PM +0200, Ruslan Ermilov wrote:
> > On Wed, Jan 16, 2002 at 05:15:47AM -0800, Brian Somers wrote:
> > > brian       2002/01/16 05:15:47 PST
> > > 
> > >   Modified files:
> > >     usr.sbin/ppp         arp.c atm.c mp.c route.c server.c tcp.c 
> > >                          udp.c 
> > >   Log:
> > >   socket's first argument is an address family, not a protocol family.
> > >   
> > >   Revision  Changes    Path
> > >   1.43      +2 -2      src/usr.sbin/ppp/arp.c
> > >   1.5       +2 -2      src/usr.sbin/ppp/atm.c
> > >   1.48      +2 -2      src/usr.sbin/ppp/mp.c
> > >   1.84      +2 -2      src/usr.sbin/ppp/route.c
> > >   1.39      +4 -4      src/usr.sbin/ppp/server.c
> > >   1.14      +2 -2      src/usr.sbin/ppp/tcp.c
> > >   1.14      +2 -2      src/usr.sbin/ppp/udp.c
> > > 
> > Err, from the socket(2) manpage:
> > 
> > : The domain parameter specifies a communications domain within which com-
> > : munication will take place; this selects the protocol family which should
> > : be used.  These families are defined in the include file <sys/socket.h>.
> > : The currently understood formats are:
> > : 
> > :       PF_LOCAL        Host-internal protocols, formerly called PF_UNIX,
> > :       PF_UNIX         Host-internal protocols, depreciated, use PF_LOCAL,
> > :       PF_INET         Internet version 4 protocols,
> > 
> > sockaddr.sa_family OTOH should use AF_* constants.
> 
> Has FreeBSD taken a stand on this?  I've always thought that the difference
> between AF_ and PF_ had been lost in the mist many many years ago.
> 
Internally they are equal, externally they are not.

> Here is an interesting email between Richard Stevens, Sam Leffler and
> Dan Lanciani:
> 
> http://www.kohala.com/start/lanciani.96apr10.txt
> 
I read that, and I disagree.

Sockets are created in protocol families (PF) and later may be bound
to a particular address family (AF).  For a single protocol family
there could multiple address families exist, in theory.


Cheers,
-- 
Ruslan Ermilov		Oracle Developer/DBA,
ru@sunbay.com		Sunbay Software AG,
ru@FreeBSD.org		FreeBSD committer,
+380.652.512.251	Simferopol, Ukraine

http://www.FreeBSD.org	The Power To Serve
http://www.oracle.com	Enabling The Information Age

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message