]>
Commit | Line | Data |
---|---|---|
b5cc5591 YW |
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" | |
0295b2fd | 8 | #include "sd-id128.h" |
b5cc5591 | 9 | |
37593b7c YW |
10 | #include "ether-addr-util.h" |
11 | ||
61e964df | 12 | bool netif_has_carrier(uint8_t operstate, unsigned flags); |
4eef6fad | 13 | int net_get_type_string(sd_device *device, uint16_t iftype, char **ret); |
043b193f | 14 | const char *net_get_persistent_name(sd_device *device); |
b5cc5591 | 15 | int net_get_unique_predictable_data(sd_device *device, bool use_sysname, uint64_t *ret); |
0295b2fd | 16 | int net_get_unique_predictable_data_from_name(const char *name, const sd_id128_t *key, uint64_t *ret); |
37593b7c YW |
17 | int net_verify_hardware_address( |
18 | const char *ifname, | |
45aa0e84 | 19 | bool is_static, |
37593b7c YW |
20 | uint16_t iftype, |
21 | const struct hw_addr_data *ib_hw_addr, | |
22 | struct hw_addr_data *new_hw_addr); |