summaryrefslogtreecommitdiff
path: root/util/icmd.c
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff-webhosting.net>2015-04-29 15:44:44 +0200
committerJörg Frings-Fürst <debian@jff-webhosting.net>2015-04-29 15:44:44 +0200
commitb18f5bf2db0fba2e7e539f68645836036d940d26 (patch)
tree23c4dd8f3d273f34ef9bbe1799d1958685559915 /util/icmd.c
parenta7f89980e5b3f4b9a74c70dbc5ffe8aabd28be28 (diff)
Imported Upstream version 2.9.6upstream/2.9.6
Diffstat (limited to 'util/icmd.c')
-rw-r--r--util/icmd.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/util/icmd.c b/util/icmd.c
index 5911262..c12de8a 100644
--- a/util/icmd.c
+++ b/util/icmd.c
@@ -78,7 +78,7 @@ extern void ipmi_lan_set_timeout(int ipmito, int tries, int pingto);
/*
* Global variables
*/
-static char * progver = "2.93";
+static char * progver = "2.96";
static char * progname = "icmd";
static char fdebug = 0;
static char fquiet = 0;
@@ -175,7 +175,7 @@ main(int argc, char **argv)
char *s1;
istart = 1;
- while ( (c = getopt( argc, argv,"djkm:qst:xN:P:R:U:EF:J:T:V:YZ:?")) != EOF )
+ while ( (c = getopt( argc, argv,"djkm:qst:xp:N:P:R:U:EF:J:T:V:YZ:?")) != EOF )
switch(c) {
case 'j': /* just pass the bytes to KCS */
fjustpass = 1;
@@ -209,6 +209,7 @@ main(int argc, char **argv)
case 'x': fdebug = 1; break; /* debug messages */
case 'V': /* priv level */
fprivset = 1;
+ case 'p': /* port */
case 'N': /* nodename */
case 'U': /* remote username */
case 'P': /* remote password */
@@ -230,7 +231,7 @@ main(int argc, char **argv)
printf(" -m002000 specific MC (bus 00,sa 20,lun 00)\n");
printf(" -q quiet mode, with minimal headers\n");
printf(" -s skips the GetDeviceID command\n");
- print_lan_opt_usage();
+ print_lan_opt_usage(1);
ret = ERR_USAGE;
goto do_exit;
}