From owner-freebsd-questions@FreeBSD.ORG Sat Sep 22 13:47:19 2007 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0A88416A46C for ; Sat, 22 Sep 2007 13:47:19 +0000 (UTC) (envelope-from freebsd-questions-local@be-well.ilk.org) Received: from be-well.ilk.org (dsl092-078-145.bos1.dsl.speakeasy.net [66.92.78.145]) by mx1.freebsd.org (Postfix) with ESMTP id B113B13C48D for ; Sat, 22 Sep 2007 13:47:18 +0000 (UTC) (envelope-from freebsd-questions-local@be-well.ilk.org) Received: from Lowell-Desk.lan (Lowell-Desk.lan [172.30.250.6]) by be-well.ilk.org (Postfix) with ESMTP id 286FD2843A; Sat, 22 Sep 2007 09:47:16 -0400 (EDT) Received: by Lowell-Desk.lan (Postfix, from userid 1147) id A9EAD1CDF0; Sat, 22 Sep 2007 09:47:15 -0400 (EDT) To: "Len Gross" References: <27cb3ada0709161413i163d942cld279e92634d06001@mail.gmail.com> <448x71nfmx.fsf@Lowell-Desk.lan> <27cb3ada0709202222w7af08809s2e7c8d79c5c7880b@mail.gmail.com> From: Lowell Gilbert Date: Sat, 22 Sep 2007 09:47:15 -0400 In-Reply-To: <27cb3ada0709202222w7af08809s2e7c8d79c5c7880b@mail.gmail.com> (Len Gross's message of "Thu\, 20 Sep 2007 22\:22\:21 -0700") Message-ID: <446422errw.fsf@Lowell-Desk.lan> User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.99 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: "freebsd-questions@freebsd.org" Subject: Re: Multiple NICs - custom protocol development X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: "freebsd-questions@freebsd.org" List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 22 Sep 2007 13:47:19 -0000 "Len Gross" writes: > First, thanks for the response; It's nice to see some community support. > > Here is what I am trying to do: > > I am building a custom MAC protocol for a wireless system that has different > software on > the "head end" and the "clients." It is not peer-to-peer, While the > hardware is being developed > I want to use Ethernet as a physical layer. > > So,I want to use one card running server code and one card running client > code initially. Later I will do > the checkout with multiple client machines and a single server. > > If the OS "loops a packet back" (At the IP layer) before it gets to my "MAC > layer" then I can't test any code. If the client and server are sharing an IP stack, then the packets *should* be looped back at the IP layer. You want separate stacks for testing with IP, and in my earlier message I listed some ways to do that with a single machine. Getting a second PC is always an option too, and often a simple answer. Another option could be to fake (or wrap) the socket calls, but I doubt that's really going to be worthwhile for you. I prefer to never spend more time debugging the testbed than absolutely necessary. Good luck.