site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com Dkim-signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:in-reply-to:references:mime-version:content-type:message-id:cc:content-transfer-encoding:from:subject:date:to:x-mailer; b=szNVilHRFys9xa4z96W3V7FlQneHeHzUIoN8CYGbHb5Zh+ogeVcqcuO8tT0a+m2r79QZEAj/ciF5/9uEc1e98zIhZiQTG799Tn6QJGzJ0Nz4tWLDHWmjxsHFjqLAuWnukWl3+xPcBkeSfJh9bPBmtPkHuVTlEdWtCtRa4RH2Syw= Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:in-reply-to:references:mime-version:content-type:message-id:cc:content-transfer-encoding:from:subject:date:to:x-mailer; b=WlTImcSe2TuMbHWKUCRxxQfzECNfM06Xeq7KotsEPDfbCsMtiMYaWJvVoDZh0w++Rsna7IVvKPD9M+mjZxDx+VNc8AAMPsAR4OSlkZ4IXCg45XYk/ReDVuuezdUtrIsfimVB6vItVUUZHWwb7dztvfbw4SEDviLuD+NFOCQo6Zo= Date: Thu, 19 Apr 2007 14:52:56 +0530 From: "Anees Alappat" <aneesalappatt@gmail.com> Subject: Doubt on calling IFNET_INPUT To: darwin-dev@lists.apple.com, macnetworkprog@lists.apple.com Message-ID: <d235c8020704190222m74b2f4e7g11f45c75eb077077@mail.gmail.com> Content-Type: text/plain; charset="iso-8859-1" The packet is then queued. Processing resumes on a different thread. This is just a excerpt of how data is received. I hope I fulfilled this request. Thanks & regards Anees You're welcome. Best regards. -------------------------- Mustapha "parthalf" Abiola parthalf@gmail.com abiola.m@aaun.edu.ng _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-dev mailing list (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/site_archiver%40lists.appl... 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 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. Can anyone help me on this regard. This email sent to site_archiver@lists.apple.com