git.ucc.asn.au
/
tpg
/
acess2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Usermode/axwin3 - Added WNDMSG_FIRE handler to richtext lib
[tpg/acess2.git]
/
Usermode
/
Applications
/
ip_src
/
routes.c
diff --git
a/Usermode/Applications/ip_src/routes.c
b/Usermode/Applications/ip_src/routes.c
index
ba56813
..
a5f682c
100644
(file)
--- a/
Usermode/Applications/ip_src/routes.c
+++ b/
Usermode/Applications/ip_src/routes.c
@@
-50,15
+50,15
@@
int Routes_main(int argc, char *argv[])
}
// Destination IP
}
// Destination IP
- addrType = ParseIPAddress(argv[
3
], dest, &subnetBits);
+ addrType = ParseIPAddress(argv[
2
], dest, &subnetBits);
if( subnetBits == -1 ) {
subnetBits = Net_GetAddressSize(addrType)*8;
}
// Interface Name / Next Hop
if( subnetBits == -1 ) {
subnetBits = Net_GetAddressSize(addrType)*8;
}
// Interface Name / Next Hop
- if( (nextHopType = ParseIPAddress(argv[
4
], nextHop, &nextHopBits)) == 0 )
+ if( (nextHopType = ParseIPAddress(argv[
3
], nextHop, &nextHopBits)) == 0 )
{
// Interface name
{
// Interface name
- ifaceName = argv[
4
];
+ ifaceName = argv[
3
];
}
else
{
}
else
{
@@
-78,8
+78,8
@@
int Routes_main(int argc, char *argv[])
// Metric
if( argc - 3 >= 3 )
{
// Metric
if( argc - 3 >= 3 )
{
- metric = atoi(argv[
5
]);
- if( metric == 0 && argv[
5
][0] != '0' ) {
+ metric = atoi(argv[
4
]);
+ if( metric == 0 && argv[
4
][0] != '0' ) {
fprintf(stderr, "ERROR: Metric should be a number\n");
return -1;
}
fprintf(stderr, "ERROR: Metric should be a number\n");
return -1;
}
UCC
git Repository :: git.ucc.asn.au