Subject: Re: sockets in AF_LINK family ?
To: None <tech-net@NetBSD.org>
From: David Young <dyoung@pobox.com>
List: tech-net
Date: 03/20/2005 15:23:22
On Sun, Mar 20, 2005 at 08:59:56AM -0800, Matt Thomas wrote:
> At 11:24 PM 3/19/2005, David Young wrote:
> >On Sat, Mar 12, 2005 at 02:04:26PM -0500, Dheeraj S wrote:
> >> Hello all,
> >> Is is possible to create sockets in the AF_LINK/PF_LINK family ?
> >> for example,
> >> socket(PF_LINK, SOCK_DGRAM/SOCK_RAW, 0).
> >
> >Not yet. It is a very desirable feature, to me. Do you think you will
> >send a patch?
>
> Ummm, that's why there is bpf(4). Prior art in this area would be
> AF_DLI from Tru64/ULTRIX.
bpf(4) is equivalent to socket(,SOCK_RAW,). socket(,SOCK_DGRAM,) is
what I'm after. I want a socket that I can bind to a data link address
and use sendto/recvfrom with. This makes it ~trivial to adapt a network
app that operates over PF_INET/PF_INET4 to use PF_LINK.
Dave
--
David Young OJC Technologies
dyoung@ojctech.com Urbana, IL * (217) 278-3933