From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1C0aHz-0001KF-IO for qemu-devel@nongnu.org; Fri, 27 Aug 2004 02:32:43 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1C0aHx-0001K3-SQ for qemu-devel@nongnu.org; Fri, 27 Aug 2004 02:32:43 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1C0aHx-0001K0-2a for qemu-devel@nongnu.org; Fri, 27 Aug 2004 02:32:41 -0400 Received: from [216.254.0.201] (helo=mail1.speakeasy.net) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.34) id 1C0aDA-0005sr-18 for qemu-devel@nongnu.org; Fri, 27 Aug 2004 02:27:44 -0400 Subject: Re: [Qemu-devel] pcap-based networking? From: "John R. Hogerhuis" In-Reply-To: <5640213304082623084cf26dd3@mail.gmail.com> References: <5640213304082609425986326c@mail.gmail.com> <1093540521.3851.898.camel@aragorn> <564021330408261019668a33d1@mail.gmail.com> <1093542525.21464.904.camel@aragorn> <5640213304082623084cf26dd3@mail.gmail.com> Content-Type: text/plain Message-Id: <1093588111.32369.950.camel@aragorn> Mime-Version: 1.0 Date: Thu, 26 Aug 2004 23:28:31 -0700 Content-Transfer-Encoding: 7bit Reply-To: jhoger@pobox.com, qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Mike Tremoulet , qemu-devel@nongnu.org On Thu, 2004-08-26 at 23:08, Mike Tremoulet wrote: > So, having said all that, is there a quickstart guide to understanding > the structure/design of the current qemu code? I'm going to have to > learn the guts of pcap programming, remember how c actually works, and > basically come up to speed on a lot of things. > No. There's lots of code. Some documentation. But 95% of the code (and the documentation) doesn't have anything to do with networking. Just focus on the sections that matter to you. As you come up against problems, get your copy of K&R, ask someone on IRC, or if it's QEMU specific ask here on the list. The pcap stuff is just a library/API. Any API takes some time to learn, but at least you have the source if the API documentation is problematic. Anyway half the reason for working with Free Software is that when I invest time to learn something, I can actually take that knowledge with me and apply it anywhere I go without worrying about violating someone's trade secrets or proprietary intellectual property. At the risk of being patronizing, my advice if you want to be a good FOSS programmer is never be afraid of learning anything. Don't plan to think about starting to do something... just jump in and get it done. -- John.