@@ -760,7 +760,7 @@ static int cmd_addr_addremove(struct ctx *ctx,
760
760
int ifindex ;
761
761
762
762
if (argc != 4 ) {
763
- warnx ("%s: invalid arguments" , cmdname );
763
+ warnx ("%s: invalid command line arguments" , cmdname );
764
764
return -1 ;
765
765
}
766
766
@@ -905,7 +905,7 @@ static int cmd_route_add(struct ctx *ctx, int argc, const char **argv)
905
905
rc = - EINVAL ;
906
906
}
907
907
if (rc ) {
908
- warnx ("add: invalid arguments" );
908
+ warnx ("add: invalid command line arguments" );
909
909
return -1 ;
910
910
}
911
911
@@ -935,7 +935,7 @@ static int cmd_route_del(struct ctx *ctx, int argc, const char **argv)
935
935
rc = - EINVAL ;
936
936
}
937
937
if (rc ) {
938
- warnx ("del: invalid arguments" );
938
+ warnx ("del: invalid command line arguments" );
939
939
return -1 ;
940
940
}
941
941
eid = tmp & 0xff ;
@@ -986,12 +986,12 @@ static int cmd_neigh_show(struct ctx *ctx, int argc, const char **argv)
986
986
int rc ;
987
987
988
988
if (!(argc <= 1 || argc == 3 )) {
989
- warnx ("show: invalid arguments" );
989
+ warnx ("show: invalid command line arguments" );
990
990
return -1 ;
991
991
}
992
992
if (argc == 3 ) {
993
993
if (strcmp (argv [1 ], "dev" )) {
994
- warnx ("show: invalid arguments" );
994
+ warnx ("show: invalid command line arguments" );
995
995
return -1 ;
996
996
}
997
997
linkstr = argv [2 ];
@@ -1089,7 +1089,7 @@ static int cmd_neigh_add(struct ctx *ctx, int argc, const char **argv)
1089
1089
}
1090
1090
}
1091
1091
if (rc ) {
1092
- warnx ("add: invalid arguments" );
1092
+ warnx ("add: invalid command line arguments" );
1093
1093
return -1 ;
1094
1094
}
1095
1095
@@ -1131,7 +1131,7 @@ static int cmd_neigh_del(struct ctx *ctx, int argc, const char **argv)
1131
1131
}
1132
1132
}
1133
1133
if (rc ) {
1134
- warnx ("del: invalid arguments" );
1134
+ warnx ("del: invalid command line arguments" );
1135
1135
return -1 ;
1136
1136
}
1137
1137
@@ -1154,6 +1154,7 @@ static int cmd_neigh(struct ctx *ctx, int argc, const char **argv) {
1154
1154
fprintf (stderr , "%s neigh\n" , ctx -> top_cmd );
1155
1155
fprintf (stderr , "%s neigh show [dev <network>]\n" , ctx -> top_cmd );
1156
1156
fprintf (stderr , "%s neigh add <eid> dev <device> lladdr <physaddr>\n" , ctx -> top_cmd );
1157
+ fprintf (stderr , " <physaddr> syntax is for example \"1d\" or \"aa:bb:cc:11:22:33\"\n" );
1157
1158
fprintf (stderr , "%s neigh del <eid> dev <device>\n" , ctx -> top_cmd );
1158
1159
return 255 ;
1159
1160
}
0 commit comments