From owner-freebsd-net@FreeBSD.ORG Tue Sep 14 09:45:28 2004 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 878A916A4CE for ; Tue, 14 Sep 2004 09:45:28 +0000 (GMT) Received: from c00l3r.networx.ch (c00l3r.networx.ch [62.48.2.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id 935AD43D54 for ; Tue, 14 Sep 2004 09:45:27 +0000 (GMT) (envelope-from andre@freebsd.org) Received: (qmail 90860 invoked from network); 14 Sep 2004 09:40:55 -0000 Received: from unknown (HELO freebsd.org) ([62.48.0.53]) (envelope-sender ) by c00l3r.networx.ch (qmail-ldap-1.03) with SMTP for ; 14 Sep 2004 09:40:55 -0000 Message-ID: <4146BDBE.5200A66C@freebsd.org> Date: Tue, 14 Sep 2004 11:45:34 +0200 From: Andre Oppermann X-Mailer: Mozilla 4.8 [en] (Windows NT 5.0; U) X-Accept-Language: en MIME-Version: 1.0 To: Max Laier References: <20040913171931.GA5368@zibbi.icomtek.csir.co.za> <200409140319.58203.max@love2party.net> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit cc: freebsd-net@freebsd.org Subject: Re: route to host on same network X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 14 Sep 2004 09:45:28 -0000 Max Laier wrote: > > On Tuesday 14 September 2004 03:05, George V. Neville-Neil wrote: > > At Mon, 13 Sep 2004 19:19:31 +0200, > > > > John Hay wrote: > > > Hi, > > > > > > I'm busy trying to port mobilemesh > > > (www.mitre.org/tech_transfer/mobilemesh) to FreeBSD and run into a > > > problem. > > > > > > The way mobilemesh works is that you use a subnet for the wireless > > > network and then it use host routes to route packets to hosts that are > > > not directly visible. Say for instance that you have hosts 1, 2 and 3 > > > on the 10.0.0.0/24 subnet and machines 1 and 3 can't directly see each > > > other, but both can see host 2, then the mobilemesh routing protocol > > > will try to add a host route to the other machine through host 2. On > > > host 1 it will do something like "route add 10.0.0.3 10.0.0.2" and > > > on host 3 it will do "route add 10.0.0.1 10.0.0.2". This seems to work > > > on Linux (where mobilemesh was developed), but I have been unable to > > > get it to work on FreeBSD. I have also tried various ways with and > > > without -interface and -iface, but none works. Is it supposed to be > > > possible in FreeBSD and if so does someone know how? > > > > What "doesn't work" as in what error, if any, do you get? Or does it > > just silently fail? Also, what does your routing table look like > > before and after the commands (netstat -rn). > > I assume you get: 17 EEXIST "File exists" ... > > ... if that's the case, can you try the attached patch (originally done for > the CARP import) and tell me if it works for this? I have yet to check all > the side-effects of this, but it might help. > > [ http://people.freebsd.org/~mlaier/in.c.patch ] We should have a deeper look into this one. I've been hit by this bug or 'behaviour' once and it was really nasty... (production network) -- Andre