#include "macsec.h"
#include "macvlan.h"
#include "netdev.h"
-#include "netdevsim.h"
#include "netif-util.h"
#include "netlink-util.h"
#include "network-util.h"
[NETDEV_KIND_MACSEC] = &macsec_vtable,
[NETDEV_KIND_MACVLAN] = &macvlan_vtable,
[NETDEV_KIND_MACVTAP] = &macvtap_vtable,
- [NETDEV_KIND_NETDEVSIM] = &netdevsim_vtable,
[NETDEV_KIND_NLMON] = &nlmon_vtable,
[NETDEV_KIND_SIT] = &sit_vtable,
[NETDEV_KIND_TAP] = &tap_vtable,
[NETDEV_KIND_MACSEC] = "macsec",
[NETDEV_KIND_MACVLAN] = "macvlan",
[NETDEV_KIND_MACVTAP] = "macvtap",
- [NETDEV_KIND_NETDEVSIM] = "netdevsim",
[NETDEV_KIND_NLMON] = "nlmon",
[NETDEV_KIND_SIT] = "sit",
[NETDEV_KIND_TAP] = "tap",
+++ /dev/null
-/* SPDX-License-Identifier: LGPL-2.1-or-later */
-
-#include <linux/if_arp.h>
-
-#include "netdevsim.h"
-
-static bool netdevsim_can_set_mac(NetDev *netdev, const struct hw_addr_data *hw_addr) {
- return true;
-}
-
-const NetDevVTable netdevsim_vtable = {
- .object_size = sizeof(NetDevSim),
- .sections = NETDEV_COMMON_SECTIONS,
- .create_type = NETDEV_CREATE_INDEPENDENT,
- .can_set_mac = netdevsim_can_set_mac,
- .iftype = ARPHRD_ETHER,
- .generate_mac = true,
-};
+++ /dev/null
-/* SPDX-License-Identifier: LGPL-2.1-or-later */
-#pragma once
-
-typedef struct NetDevSim NetDevSim;
-
-#include "netdev.h"
-
-struct NetDevSim {
- NetDev meta;
-};
-
-DEFINE_NETDEV_CAST(NETDEVSIM, NetDevSim);
-extern const NetDevVTable netdevsim_vtable;