diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2021-11-07 08:27:33 +0100 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2021-11-26 22:38:26 +0100 |
commit | 9f0cf80dd007491698978dbfe38158d74c1c9526 (patch) | |
tree | cfb5ace7b0ab1fcbc2bd9262acd99b5512b9ab8d /src/network/netdev/nlmon.c | |
parent | network: veth: use SYNTHETIC_ERRNO() macro or use real error cause (diff) | |
download | systemd-9f0cf80dd007491698978dbfe38158d74c1c9526.tar.xz systemd-9f0cf80dd007491698978dbfe38158d74c1c9526.zip |
network/netdev: introduce .iftype to netdev vtable
And disable .generate_mac flag for non-ether interfaces.
Diffstat (limited to 'src/network/netdev/nlmon.c')
-rw-r--r-- | src/network/netdev/nlmon.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/network/netdev/nlmon.c b/src/network/netdev/nlmon.c index a8faed5b24..b6e2a40579 100644 --- a/src/network/netdev/nlmon.c +++ b/src/network/netdev/nlmon.c @@ -1,5 +1,7 @@ /* SPDX-License-Identifier: LGPL-2.1-or-later */ +#include <linux/if_arp.h> + #include "nlmon.h" static int netdev_nlmon_verify(NetDev *netdev, const char *filename) { @@ -19,4 +21,5 @@ const NetDevVTable nlmon_vtable = { .sections = NETDEV_COMMON_SECTIONS, .create_type = NETDEV_CREATE_INDEPENDENT, .config_verify = netdev_nlmon_verify, + .iftype = ARPHRD_NETLINK, }; |