summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ppp/bundle.c
diff options
context:
space:
mode:
authorbrian <brian@FreeBSD.org>1999-01-06 00:08:03 +0000
committerbrian <brian@FreeBSD.org>1999-01-06 00:08:03 +0000
commit070f986c2f317fa491b9c51785f94f9bec05ac32 (patch)
treeab6e7d6393a677f965cb1d7646d26512c7b6e8ed /usr.sbin/ppp/bundle.c
parent2551bfc1d6ab6b76bc15edf3abfc6f95706bdf28 (diff)
downloadFreeBSD-src-070f986c2f317fa491b9c51785f94f9bec05ac32.zip
FreeBSD-src-070f986c2f317fa491b9c51785f94f9bec05ac32.tar.gz
Don't warn when ``add xxxx HISADDR'' fails because HISADDR
is 0.0.0.0. This isn't a problem as the sticky route is still added. Suggested by: Chris Timmons <skynyrd@opus.cts.cwu.edu>
Diffstat (limited to 'usr.sbin/ppp/bundle.c')
-rw-r--r--usr.sbin/ppp/bundle.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/usr.sbin/ppp/bundle.c b/usr.sbin/ppp/bundle.c
index 78acce4..89388b9 100644
--- a/usr.sbin/ppp/bundle.c
+++ b/usr.sbin/ppp/bundle.c
@@ -23,7 +23,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: bundle.c,v 1.41 1998/12/10 18:36:30 brian Exp $
+ * $Id: bundle.c,v 1.42 1998/12/14 19:24:28 brian Exp $
*/
#include <sys/param.h>
@@ -1003,8 +1003,9 @@ bundle_SetRoute(struct bundle *bundle, int cmd, struct in_addr dst,
cp += rtdata.sin_len;
if (cmd == RTM_ADD) {
if (gateway.s_addr == INADDR_ANY) {
- log_Printf(LogERROR, "bundle_SetRoute: Cannot add a route with"
- " destination 0.0.0.0\n");
+ if (!ssh)
+ log_Printf(LogERROR, "bundle_SetRoute: Cannot add a route with"
+ " destination 0.0.0.0\n");
close(s);
return result;
} else {
OpenPOWER on IntegriCloud