Implement vnet_null device

Such device don't need new threads and files but are valid ethernet
devices for the kernel. Convenient for testing.
This commit is contained in:
2023-02-07 04:32:32 +00:00
parent 6a479621e9
commit e71791c0ab
22 changed files with 194 additions and 71 deletions
+3 -3
View File
@@ -37,7 +37,7 @@ struct shell_var {
struct shell_ctx {
const struct umka_ctx *umka;
struct umka_io *io;
const struct umka_io *io;
int reproducible;
const char *hist_file;
struct shell_var *var;
@@ -50,8 +50,8 @@ struct shell_ctx {
};
struct shell_ctx *
shell_init(int reproducible, const char *hist_file, struct umka_ctx *umka,
struct umka_io *io, FILE *fin, const atomic_int *running);
shell_init(const int reproducible, const char *hist_file,
const struct umka_ctx *umka, const struct umka_io *io, FILE *fin);
void
shell_close(struct shell_ctx *shell);