aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBernd Eckenfels <net-tools@lina.inka.de>2002-07-30 05:24:20 +0000
committerBernd Eckenfels <net-tools@lina.inka.de>2002-07-30 05:24:20 +0000
commitbbd4eca6fe7887c6718445dff8714b8765bc6196 (patch)
tree7c5784f55970052e41657a8f6b076417ac425669 /route.c
parentmore stable ipx parsing (no segfault anymore) (diff)
downloadnet-tools-bbd4eca6fe7887c6718445dff8714b8765bc6196.tar.gz
net-tools-bbd4eca6fe7887c6718445dff8714b8765bc6196.tar.bz2
net-tools-bbd4eca6fe7887c6718445dff8714b8765bc6196.zip
route now support -6 -4 or -46 option
better layout for ipv6 routing table -C support for ipv6 routing cache more flags (i.e. reject) are recogniced for ipv6 routes
Diffstat (limited to 'route.c')
-rw-r--r--route.c12
1 files changed, 10 insertions, 2 deletions
diff --git a/route.c b/route.c
index f8c2bc3..d7029f7 100644
--- a/route.c
+++ b/route.c
@@ -2,7 +2,7 @@
* route This file contains an implementation of the command
* that manages the IP routing table in the kernel.
*
- * Version: $Id: route.c,v 1.9 2001/04/15 14:41:17 pb Exp $
+ * Version: $Id: route.c,v 1.10 2002/07/30 05:24:20 ecki Exp $
*
* Maintainer: Bernd 'eckes' Eckenfels, <net-tools@lina.inka.de>
*
@@ -142,7 +142,7 @@ int main(int argc, char **argv)
}
/* Fetch the command-line arguments. */
- while ((i = getopt_long(argc, argv, "A:eCFhnNVv?", longopts, &lop)) != EOF)
+ while ((i = getopt_long(argc, argv, "A:eCFhnN64Vv?", longopts, &lop)) != EOF)
switch (i) {
case -1:
break;
@@ -176,6 +176,14 @@ int main(int argc, char **argv)
if ((i = aftrans_opt(optarg)))
exit(i);
break;
+ case '6':
+ if ((i = aftrans_opt("inet6")))
+ exit(i);
+ break;
+ case '4':
+ if ((i = aftrans_opt("inet")))
+ exit(i);
+ break;
case 'V':
version();
case 'h':