Sync with local (tiny) changes

git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10967 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Philippe Houdoin
2005-01-22 22:34:46 +00:00
parent b4fe86df56
commit 5b2465501c
2 changed files with 5 additions and 2 deletions
@@ -239,7 +239,10 @@ status_t register_device(const char *path, void *cookie)
edd->max_frame_size = frame_size;
edd->reader_thread = -1;
return g_stack->register_layer(path, "ethernet/frame", 0, &nlmi, edd, NULL);
if (strncmp(path, "/dev/net/", 9) == 0)
path += 9; // drop the path root from layer(s) name(s)
return g_stack->register_layer(path, "interface/ethernet", 0, &nlmi, edd, NULL);
}
// ----------------------------------------------------
@@ -59,7 +59,7 @@ status_t std_ops(int32 op, ...)
if (status != B_OK)
return status;
return g_stack->register_layer("loopback", "loopback/frame", 0, &nlmi, NULL, NULL);
return g_stack->register_layer("loopback", "interface/*", 0, &nlmi, NULL, NULL);
}
case B_MODULE_UNINIT: