summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/lib/irm.c4
-rw-r--r--src/tools/irm/irm_bootstrap_ipcp.c6
-rw-r--r--src/tools/irm/irm_create_ipcp.c4
3 files changed, 6 insertions, 8 deletions
diff --git a/src/lib/irm.c b/src/lib/irm.c
index 3078e158..70b7b3a5 100644
--- a/src/lib/irm.c
+++ b/src/lib/irm.c
@@ -111,7 +111,7 @@ int irm_bootstrap_ipcp(instance_name_t * api,
config.ipcp_type = conf->type;
switch (conf->type) {
- case NORMAL_IPCP:
+ case IPCP_NORMAL:
config.has_addr_size = true;
config.has_cep_id_size = true;
config.has_pdu_length_size = true;
@@ -132,7 +132,7 @@ int irm_bootstrap_ipcp(instance_name_t * api,
config.min_pdu_size = conf->min_pdu_size;
config.max_pdu_size = conf->max_pdu_size;
break;
- case SHIM_UDP_IPCP:
+ case IPCP_SHIM_UDP:
config.has_ip_addr = true;
config.ip_addr = conf->ip_addr;
diff --git a/src/tools/irm/irm_bootstrap_ipcp.c b/src/tools/irm/irm_bootstrap_ipcp.c
index 7e7b6e05..78a09362 100644
--- a/src/tools/irm/irm_bootstrap_ipcp.c
+++ b/src/tools/irm/irm_bootstrap_ipcp.c
@@ -139,7 +139,7 @@ int do_bootstrap_ipcp(int argc, char ** argv)
conf.dif_name = dif_name;
if (strcmp(ipcp_type, NORMAL) == 0) {
- conf.type = NORMAL_IPCP;
+ conf.type = IPCP_NORMAL;
conf.addr_size = addr_size;
conf.cep_id_size = cep_id_size;
conf.pdu_length_size = pdu_length_size;
@@ -150,13 +150,11 @@ int do_bootstrap_ipcp(int argc, char ** argv)
conf.min_pdu_size = min_pdu_size;
conf.max_pdu_size = max_pdu_size;
} else if (strcmp(ipcp_type, SHIM_UDP) == 0) {
- conf.type = SHIM_UDP_IPCP;
-
+ conf.type = IPCP_SHIM_UDP;
if (ip_addr == 0) {
usage();
return -1;
}
-
conf.ip_addr = ip_addr;
} else {
usage();
diff --git a/src/tools/irm/irm_create_ipcp.c b/src/tools/irm/irm_create_ipcp.c
index e4a0f22f..08b55259 100644
--- a/src/tools/irm/irm_create_ipcp.c
+++ b/src/tools/irm/irm_create_ipcp.c
@@ -73,9 +73,9 @@ int do_create_ipcp(int argc, char ** argv)
}
if (strcmp(ipcp_type, NORMAL) == 0)
- type = NORMAL_IPCP;
+ type = IPCP_NORMAL;
else if (strcmp(ipcp_type, SHIM_UDP) == 0)
- type = SHIM_UDP_IPCP;
+ type = IPCP_SHIM_UDP;
else {
usage();
return -1;