/* SPDX-License-Identifier: GPL-2.0-or-later UMKa - User-Mode KolibriOS developer tools vnet - virtual network card Copyright (C) 2020-2023 Ivan Baravy */ #ifndef VNET_H_INCLUDED #define VNET_H_INCLUDED #include "umka.h" #define UMKA_VNET_NAME "umka%d" extern uint32_t umka_irq_number; enum vnet_type { VNET_FILE, VNET_TAP, }; struct vnet { struct eth_device eth; int fdin; int fdout; int input_processed; }; struct vnet * vnet_init(enum vnet_type type); #endif // VNET_H_INCLUDED