]> git.ipfire.org Git - thirdparty/systemd.git/blob - src/shared/netif-util.h
test: add shutdown test
[thirdparty/systemd.git] / src / shared / netif-util.h
1 /* SPDX-License-Identifier: LGPL-2.1-or-later */
2 #pragma once
3
4 #include <inttypes.h>
5 #include <stdbool.h>
6
7 #include "sd-device.h"
8 #include "sd-id128.h"
9
10 #include "ether-addr-util.h"
11
12 int net_get_type_string(sd_device *device, uint16_t iftype, char **ret);
13 const char *net_get_persistent_name(sd_device *device);
14 int net_get_unique_predictable_data(sd_device *device, bool use_sysname, uint64_t *ret);
15 int net_get_unique_predictable_data_from_name(const char *name, const sd_id128_t *key, uint64_t *ret);
16 int net_verify_hardware_address(
17 const char *ifname,
18 bool is_static,
19 uint16_t iftype,
20 const struct hw_addr_data *ib_hw_addr,
21 struct hw_addr_data *new_hw_addr);