diff options
author | Bernd Eckenfels <net-tools@lina.inka.de> | 2002-07-30 05:24:20 +0000 |
---|---|---|
committer | Bernd Eckenfels <net-tools@lina.inka.de> | 2002-07-30 05:24:20 +0000 |
commit | bbd4eca6fe7887c6718445dff8714b8765bc6196 (patch) | |
tree | 7c5784f55970052e41657a8f6b076417ac425669 /route.c | |
parent | more stable ipx parsing (no segfault anymore) (diff) | |
download | net-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.c | 12 |
1 files changed, 10 insertions, 2 deletions
@@ -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': |