Debian Codegraph @

src/network/netdev/dummy.c

raw
1 /* SPDX-License-Identifier: LGPL-2.1-or-later */
2
3 #include <linux/if_arp.h>
4
5 #include "dummy.h"
6
7 static bool dummy_can_set_mac(NetDev *netdev, const struct hw_addr_data *hw_addr) {
8 return true;
9 }
10
11 const NetDevVTable dummy_vtable = {
12 .object_size = sizeof(Dummy),
13 .sections = NETDEV_COMMON_SECTIONS,
14 .create_type = NETDEV_CREATE_INDEPENDENT,
15 .can_set_mac = dummy_can_set_mac,
16 .iftype = ARPHRD_ETHER,
17 .generate_mac = true,
18 };