summaryrefslogtreecommitdiff
path: root/src/tools/irm/irm_ipcp_enroll.c
diff options
context:
space:
mode:
authorDimitri Staessens <dimitri@ouroboros.rocks>2019-07-25 12:50:46 +0200
committerSander Vrijders <sander@ouroboros.rocks>2019-07-29 19:36:45 +0200
commitdae15c284248d49079ad5f8a3d8ff30e217f419e (patch)
treeea7942e940396c0c78304fef8b43fb25c5aebba8 /src/tools/irm/irm_ipcp_enroll.c
parentc9232acef855b51d1bc199a68c03c0695ac11192 (diff)
downloadouroboros-dae15c284248d49079ad5f8a3d8ff30e217f419e.tar.gz
ouroboros-dae15c284248d49079ad5f8a3d8ff30e217f419e.zip
build: Refactor normal to unicast
This completes the renaming of the normal IPCP to the unicast IPCP in the sources, to get everything consistent with the documentation. Signed-off-by: Dimitri Staessens <dimitri@ouroboros.rocks> Signed-off-by: Sander Vrijders <sander@ouroboros.rocks>
Diffstat (limited to 'src/tools/irm/irm_ipcp_enroll.c')
-rw-r--r--src/tools/irm/irm_ipcp_enroll.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/tools/irm/irm_ipcp_enroll.c b/src/tools/irm/irm_ipcp_enroll.c
index 1053683b..5aff790f 100644
--- a/src/tools/irm/irm_ipcp_enroll.c
+++ b/src/tools/irm/irm_ipcp_enroll.c
@@ -46,7 +46,7 @@
#include <string.h>
-#define NORMAL "unicast"
+#define UNICAST "unicast"
#define BROADCAST "broadcast"
static void usage(void)
@@ -55,9 +55,9 @@ static void usage(void)
" name <ipcp name>\n"
" [layer <layer to enroll with>]\n"
" [dst <destination to enroll with>]\n"
- " [type [TYPE], default = " NORMAL "]\n"
+ " [type [TYPE], default = " UNICAST "]\n"
" [autobind]\n"
- "where TYPE = {" NORMAL " " BROADCAST "}\n");
+ "where TYPE = {" UNICAST " " BROADCAST "}\n");
}
static int get_layer_name(const char * ipcp,
@@ -92,7 +92,7 @@ int do_enroll_ipcp(int argc,
int i = 0;
bool autobind = false;
int cargs;
- char * ipcp_type = NORMAL;
+ char * ipcp_type = UNICAST;
enum ipcp_type type = IPCP_INVALID;
while (argc > 0) {
@@ -126,8 +126,8 @@ int do_enroll_ipcp(int argc,
if (dst == NULL)
dst = layer;
- if (strcmp(ipcp_type, NORMAL) == 0)
- type = IPCP_NORMAL;
+ if (strcmp(ipcp_type, UNICAST) == 0)
+ type = IPCP_UNICAST;
else if (strcmp(ipcp_type, BROADCAST) == 0)
type = IPCP_BROADCAST;