
|
[openbeosnetteam]
||
[Date Prev]
[02-2002 Date Index]
[Date Next]
||
[Thread Prev]
[02-2002 Thread Index]
[Thread Next]
[openbeosnetteam] Re: Change of heart...
- From: "David Reid" <dreid@xxxxxxxxxxxx>
- To: <openbeosnetteam@xxxxxxxxxxxxx>
- Date: Tue, 5 Feb 2002 22:32:16 -0000
[snip]
> >o No module can make assumptions about subsequent or previous modules.
>
> Let's not forget though that at each level the recognition of the packet =
> type
> is done by the lower layer.
> Tell me what you think about the following: each protocol could be implem=
> ented
> via a separate add-on / library / whatever, which would export a "rule" t=
> hat
> would enable the lower layer to know which protocol to give the data to..=
> =2E.
Hmm, you could do it that way. How about a simple system where by each
module simply adds itself to a list of protocols it can speak, and what the
function call is? They all take the same parameters, so it's not a biggie.
That way, i get an ipv4 packet, i simply do
net_input(IPV4, ...)
The net module knows where to find the ipv4_input function and so calls
it...
Dunno really.
david
|

|