Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 12 Feb 2010 22:04:13 -0700
From:      Brett Glass <brett@lariat.net>
To:        Luiz Otavio O Souza <lists.br@gmail.com>
Cc:        "Li, Qing" <qing.li@bluecoat.com>, Alexander Motin <mav@freebsd.org>, net@freebsd.org
Subject:   Re: Routing problems on VPN servers running FreeBSD 8.0-RELEASE
Message-ID:  <201002130504.WAA20359@lariat.net>
In-Reply-To: <8192E832-3DD0-4D0A-9FAD-6A70CE59FD26@gmail.com>
References:  <201002130230.TAA19403@lariat.net> <8192E832-3DD0-4D0A-9FAD-6A70CE59FD26@gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
At 07:42 PM 2/12/2010, Luiz Otavio O Souza wrote:

>The "-S" tries to remove the entry first, but it fails because it 
>doesn't exist.

As far as I can tell, the -S option doesn't cause the command to 
fail if no routing table entry already exists. It just deletes any 
route that does exist.

Also, if you look at the code within mpd5 (the file iface.c), mpd 
first creates the proxy arp entry and then tries to add routes for 
the interface. So, using "-S" and also "only" in the arp(8) command 
would seem to be the right thing to do. This combination would 
remove any route that exists and not create a new one, ensuring 
that mpd itself could create new routes as needed. I have mpd 
working now with this change, and your patch seems to fix ppp(8).

--Brett




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201002130504.WAA20359>