HALF ECHO LEARN / REFERENCE COLLECTION

v262.2

src/network/netdev/dummy.c

Git blob: 8b2893d5b4db60dd58a76a94a034e553aded5c37

Lines 1–19 of 19

/* SPDX-License-Identifier: LGPL-2.1-or-later */
 
#include <linux/if_arp.h>
 
#include "dummy.h"
 
static bool dummy_can_set_mac(NetDev *netdev, const struct hw_addr_data *hw_addr) {
        return true;
}
 
const NetDevVTable dummy_vtable = {
        .object_size = sizeof(Dummy),
        .sections = NETDEV_COMMON_SECTIONS,
        .create_type = NETDEV_CREATE_INDEPENDENT,
        .can_set_mac = dummy_can_set_mac,
        .iftype = ARPHRD_ETHER,
        .generate_mac = true,
};