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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user