summaryrefslogtreecommitdiff
path: root/src/tools/irm/irm_register.c
diff options
context:
space:
mode:
authorDimitri Staessens <dimitri.staessens@ugent.be>2018-02-13 18:16:28 +0100
committerSander Vrijders <sander.vrijders@ugent.be>2018-02-13 19:15:07 +0100
commite095d0ade3035c714768266755c9c61acfc2ad0f (patch)
tree9b3fccffb5a8669bdb71bee1d266e3c441d66703 /src/tools/irm/irm_register.c
parent068a13ca7c1fdaefbfc4e846aaa8eefe9eb1d821 (diff)
downloadouroboros-e095d0ade3035c714768266755c9c61acfc2ad0f.tar.gz
ouroboros-e095d0ade3035c714768266755c9c61acfc2ad0f.zip
ipcpd: Revise Data Transfer component0.10.0
This makes the TTL non-optional and allows the maximum (initial) value of the TTL to be specified at bootstrap (the default is set to 60). The fd in the DT PCI is now called EID (Endpoint ID). The names "dif" and "ae" have been replaced by "layer" and "component" respectively in all sources. Signed-off-by: Dimitri Staessens <dimitri.staessens@ugent.be> Signed-off-by: Sander Vrijders <sander.vrijders@ugent.be>
Diffstat (limited to 'src/tools/irm/irm_register.c')
-rw-r--r--src/tools/irm/irm_register.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/tools/irm/irm_register.c b/src/tools/irm/irm_register.c
index f75220be..574c2224 100644
--- a/src/tools/irm/irm_register.c
+++ b/src/tools/irm/irm_register.c
@@ -59,15 +59,15 @@ static void usage(void)
int do_register(int argc, char ** argv)
{
char * name = NULL;
- char * difs[MAX_LAYERS];
- size_t difs_len = 0;
+ char * layers[MAX_LAYERS];
+ size_t layers_len = 0;
while (argc > 0) {
if (matches(*argv, "name") == 0) {
name = *(argv + 1);
} else if (matches(*argv, "layer") == 0) {
- difs[difs_len++] = *(argv + 1);
- if (difs_len > MAX_LAYERS) {
+ layers[layers_len++] = *(argv + 1);
+ if (layers_len > MAX_LAYERS) {
printf("Too many layers specified\n");
return -1;
}
@@ -81,10 +81,10 @@ int do_register(int argc, char ** argv)
argv += 2;
}
- if (difs_len < 1 || name == NULL) {
+ if (layers_len < 1 || name == NULL) {
usage();
return -1;
}
- return irm_reg(name, difs, difs_len);
+ return irm_reg(name, layers, layers_len);
}