summaryrefslogtreecommitdiff
path: root/src/tools/irm/irm_unregister.c
diff options
context:
space:
mode:
authorDimitri Staessens <[email protected]>2017-12-18 20:50:04 +0100
committerSander Vrijders <[email protected]>2017-12-19 10:27:02 +0100
commite5cc7fbcf165ef9c205b6c136f239f645a8d7830 (patch)
tree334120a6cc6dcbe240076b3957233da337bf7ad2 /src/tools/irm/irm_unregister.c
parentd654c997f142b22e2529dc0fb9fab4f799f7ef56 (diff)
downloadouroboros-e5cc7fbcf165ef9c205b6c136f239f645a8d7830.tar.gz
ouroboros-e5cc7fbcf165ef9c205b6c136f239f645a8d7830.zip
ipcpd: Use the term "layer" and deprecate "shim"
This changes the terminology to use layer instead of DIF and deprecate the word "shim" for the IPCPs that attach to Ethernet LLC and UDP .The terminology has not yet been changed in the variable names etc. This reflects the design choices in Ouroboros to make IPCPs pure resource allocators instead of also providing an "IPC service". The Ouroboros IPCPs that attach to Ethernet and UDP implement the allocator and are thus not really shims. Signed-off-by: Dimitri Staessens <[email protected]> Signed-off-by: Sander Vrijders <[email protected]>
Diffstat (limited to 'src/tools/irm/irm_unregister.c')
-rw-r--r--src/tools/irm/irm_unregister.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/tools/irm/irm_unregister.c b/src/tools/irm/irm_unregister.c
index 09b7ec21..64053706 100644
--- a/src/tools/irm/irm_unregister.c
+++ b/src/tools/irm/irm_unregister.c
@@ -44,30 +44,30 @@
#include "irm_ops.h"
#include "irm_utils.h"
-#define MAX_DIFS 128
+#define MAX_LAYERS 128
static void usage(void)
{
printf("Usage: irm unregister\n"
" name <name>\n"
- " dif <dif name to unregister from>\n"
- " [dif <dif name to unregister from>]\n"
- " [... (maximum %d difs)]\n"
- , MAX_DIFS);
+ " layer <layer to unregister from>\n"
+ " [layer <layer to unregister from>]\n"
+ " [... (maximum %d layers)]\n"
+ , MAX_LAYERS);
}
int do_unregister(int argc, char ** argv)
{
- char * difs[MAX_DIFS];
+ char * difs[MAX_LAYERS];
size_t difs_len = 0;
char * name = NULL;
while (argc > 0) {
if (matches(*argv, "name") == 0) {
name = *(argv + 1);
- } else if (matches(*argv, "dif") == 0) {
+ } else if (matches(*argv, "layer") == 0) {
difs[difs_len++] = *(argv + 1);
- if (difs_len > MAX_DIFS) {
+ if (difs_len > MAX_LAYERS) {
printf("Too many difs specified\n");
return -1;
}