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/geneve.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/geneve.c')
-rw-r--r-- | src/network/netdev/geneve.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/network/netdev/geneve.c b/src/network/netdev/geneve.c index 46f5ea41c8..224c17e979 100644 --- a/src/network/netdev/geneve.c +++ b/src/network/netdev/geneve.c @@ -1,6 +1,8 @@ /* SPDX-License-Identifier: LGPL-2.1-or-later */ #include <net/if.h> +#include <netinet/in.h> +#include <linux/if_arp.h> #include "alloc-util.h" #include "conf-parser.h" @@ -292,5 +294,6 @@ const NetDevVTable geneve_vtable = { .fill_message_create = netdev_geneve_fill_message_create, .create_type = NETDEV_CREATE_INDEPENDENT, .config_verify = netdev_geneve_verify, + .iftype = ARPHRD_ETHER, .generate_mac = true, }; |