Re: Darwin-dev Digest, Vol 4, Issue 80 "Doubt on calling IFNET_INPUT"
Re: Darwin-dev Digest, Vol 4, Issue 80 "Doubt on calling IFNET_INPUT"
- Subject: Re: Darwin-dev Digest, Vol 4, Issue 80 "Doubt on calling IFNET_INPUT"
- From: Mustapha parthalf Abiola <email@hidden>
- Date: Sat, 21 Apr 2007 18:51:29 +0100
Date: Thu, 19 Apr 2007 14:52:56 +0530
From: "Anees Alappat" <email@hidden>
Subject: Doubt on calling IFNET_INPUT
To: email@hidden, email@hidden
Message-ID:
<email@hidden>
Content-Type: text/plain; charset="iso-8859-1"
Dear all,
I am trying to develop a virtual interface with two ethernet
cards form
MACOSX 10.4.8.When I went thru the kernel interface api
documentation, it is
said that to get a packet from the interface ifnet_input function
is to be
called.
This will call the ifnet_demux_func() and after that iff_input_func().
Yes. This is correct. iff_input_func is used to process packets after
it is demuxed.
But nowhere it is specified from which function should ifnet_input
() is to be called.
The hardware driver or its support code calls ifnet_input with
pointers to its ifnet structure
(ifnet_t) and mbuf chain (mbuf_t).
The packet is then queued. Processing resumes on a different thread.
The ifnet_input function calls the network interface’s
ifnet_demux_func function for the
interface.
The demultiplexing function identifies the frame and returns a
protocol_family_t value to
indicate which protocol should handle the packet.
The ifnet_input function calls the attached interface filters (if
any) sequentially.
Any packets not matching an attached protocol are dropped, as are any
promiscuous packets.
The ifnet_input function calls the protocol plumber’s
proto_media_input function. The plumber
is specific to a given protocol/interface combination.
Note: The Ethernet-specific module for IP receives the frame and
delivers the packet to the protocol's proto_input routine.
This is just a excerpt of how data is received.
Can anyone help me on this regard.
I hope I fulfilled this request.
Thanks & regards
Anees
You're welcome.
Best regards.
--------------------------
Mustapha "parthalf" Abiola
email@hidden
email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden