Subject: Re: sockets in AF_LINK family ? (patches attached)
To: None <tech-net@NetBSD.org>
From: David Young <dyoung@pobox.com>
List: tech-net
Date: 03/25/2005 20:12:00
On Fri, Mar 25, 2005 at 07:30:53PM -0500, Dheeraj S wrote:
> On Fri, Mar 25, 2005 at 01:13:34PM -0600, David Young wrote:
> >>snipped<<
> > Dheeraj,
> >
> > It looks to me like you are using IP subroutines (in_xxx) and IP protocol
> > control blocks (PCBs, inpcb). I do not expect for that to work. Also,
> > it is important not to have any arbitrary dependencies on the IP part
> > of the stack.
> >
> > Dave
> >
>
> David,
> I have attached, a new set of patches. without any dependency on the
> IP subroutines this time. Does this seem the right approach to support
> a larger set of functionality ?
It looks like you are on the right track. Since you are doing this from
scratch, maybe you can write a "how-to" guide to adding a new protocol.
> PS: the way i am verifying it to work is have a simple ioctl to change the
> link-level address. Please suggest if i should have a different test case.
I did not see that part of the code. It looks to me like _setpeeraddr
and _setsockaddr copy the addresses in the pcb to an mbuf?
Dave
--
David Young OJC Technologies
dyoung@ojctech.com Urbana, IL * (217) 278-3933