diff options
author | Dimitri Staessens <dimitri@ouroboros.rocks> | 2023-12-09 12:35:50 +0100 |
---|---|---|
committer | Sander Vrijders <sander@ouroboros.rocks> | 2023-12-17 13:23:49 +0100 |
commit | fbb9eae2c791845756e0dd9136d7becf8da03608 (patch) | |
tree | e5edb344322d5beb2656dbf50abe5120ef1496cf /src/tools/irm/irm_ipcp_create.c | |
parent | 22686c1cded1d837b3e7677b7b7b7b6cc8592878 (diff) | |
download | ouroboros-fbb9eae2c791845756e0dd9136d7becf8da03608.tar.gz ouroboros-fbb9eae2c791845756e0dd9136d7becf8da03608.zip |
tools: Fix missing eth-dix in "irm ipcp create"
The irm ipcp create tool had the ipcpd-eth-dix missing in the help.
Updated the help text
where PARAM = {options list}
to
where PARAM in {options list}
and some other small fixes.
Signed-off-by: Dimitri Staessens <dimitri@ouroboros.rocks>
Signed-off-by: Sander Vrijders <sander@ouroboros.rocks>
Diffstat (limited to 'src/tools/irm/irm_ipcp_create.c')
-rw-r--r-- | src/tools/irm/irm_ipcp_create.c | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/src/tools/irm/irm_ipcp_create.c b/src/tools/irm/irm_ipcp_create.c index 059156a9..ebfcb02f 100644 --- a/src/tools/irm/irm_ipcp_create.c +++ b/src/tools/irm/irm_ipcp_create.c @@ -44,7 +44,7 @@ #include "irm_ops.h" #include "irm_utils.h" -#define UNICAST "unicast" +#define UNICAST "unicast" #define BROADCAST "broadcast" #define UDP "udp" #define ETH_LLC "eth-llc" @@ -56,17 +56,17 @@ static void usage(void) printf("Usage: irm ipcp create\n" " name <ipcp name>\n" " type [TYPE]\n\n" - "where TYPE = {" UNICAST " " BROADCAST " " LOCAL " " - UDP " " ETH_LLC "}\n"); + "where TYPE in {" UNICAST " " BROADCAST " " LOCAL " " + UDP " " ETH_LLC " " ETH_DIX "}\n"); } int do_create_ipcp(int argc, char ** argv) { - char * ipcp_type = NULL; - char * ipcp_name = NULL; - enum ipcp_type type = 0; - pid_t pid; + char * ipcp_type = NULL; + char * ipcp_name = NULL; + enum ipcp_type type = 0; + pid_t pid; while (argc > 0) { if (matches(*argv, "type") == 0) { @@ -101,6 +101,7 @@ int do_create_ipcp(int argc, else if (strcmp(ipcp_type, ETH_DIX) == 0) type = IPCP_ETH_DIX; else { + printf("IPCP type \"%s\" is unknown.\n", ipcp_type); usage(); return -1; } |