2019-05-23 04:36:25 +02:00
|
|
|
/* SPDX-License-Identifier: LGPL-2.1+ */
|
|
|
|
|
2019-10-30 09:02:15 +01:00
|
|
|
#include "nlmon.h"
|
2019-05-23 04:36:25 +02:00
|
|
|
|
|
|
|
static int netdev_nlmon_verify(NetDev *netdev, const char *filename) {
|
|
|
|
assert(netdev);
|
|
|
|
assert(filename);
|
|
|
|
|
|
|
|
if (netdev->mac) {
|
|
|
|
log_netdev_warning(netdev, "%s: MACAddress= is not supported. Ignoring", filename);
|
|
|
|
netdev->mac = mfree(netdev->mac);
|
|
|
|
}
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
const NetDevVTable nlmon_vtable = {
|
|
|
|
.object_size = sizeof(NLMon),
|
2019-11-22 11:43:26 +01:00
|
|
|
.sections = NETDEV_COMMON_SECTIONS,
|
2019-05-23 04:36:25 +02:00
|
|
|
.create_type = NETDEV_CREATE_INDEPENDENT,
|
|
|
|
.config_verify = netdev_nlmon_verify,
|
|
|
|
};
|