diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 1996-08-02 15:39:29 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 1996-08-02 15:39:29 +0000 |
commit | 72037cee5888b3da950f02a231c4398aee177949 (patch) | |
tree | 78de30fd09a533ef7a2172ac2aa92166e12eecd2 /sbin | |
parent | 931589a8a6e0684112e11bd087cee59f60d3612a (diff) |
flush RTF_STATIC & RTF_LLINFO routes too; from rees@umich.edu
Diffstat (limited to 'sbin')
-rw-r--r-- | sbin/route/route.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/sbin/route/route.c b/sbin/route/route.c index dcf762ee87f..6b36996f464 100644 --- a/sbin/route/route.c +++ b/sbin/route/route.c @@ -1,4 +1,4 @@ -/* $OpenBSD: route.c,v 1.4 1996/06/23 14:32:23 deraadt Exp $ */ +/* $OpenBSD: route.c,v 1.5 1996/08/02 15:39:28 deraadt Exp $ */ /* $NetBSD: route.c,v 1.16 1996/04/15 18:27:05 cgd Exp $ */ /* @@ -44,7 +44,7 @@ static char copyright[] = #if 0 static char sccsid[] = "@(#)route.c 8.3 (Berkeley) 3/19/94"; #else -static char rcsid[] = "$OpenBSD: route.c,v 1.4 1996/06/23 14:32:23 deraadt Exp $"; +static char rcsid[] = "$OpenBSD: route.c,v 1.5 1996/08/02 15:39:28 deraadt Exp $"; #endif #endif /* not lint */ @@ -164,7 +164,6 @@ main(argc, argv) case 'd': debugonly = 1; break; - case '?': default: usage((char *)NULL); } @@ -268,7 +267,7 @@ bad: usage(*argv); rtm = (struct rt_msghdr *)next; if (verbose) print_rtmsg(rtm, rtm->rtm_msglen); - if ((rtm->rtm_flags & RTF_GATEWAY) == 0) + if ((rtm->rtm_flags & (RTF_GATEWAY|RTF_STATIC|RTF_LLINFO)) == 0) continue; if (af) { struct sockaddr *sa = (struct sockaddr *)(rtm + 1); |