-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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
- Loading branch information
Bernd Eckenfels
committed
Jul 30, 2002
1 parent
763c110
commit bbd4eca
Showing
2 changed files
with
46 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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, <[email protected]> | ||
* | ||
|
@@ -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': | ||
|