diff options
| author | Sebastien Bacher <seb128@ubuntu.com> | 2021-07-05 20:35:03 +0200 |
|---|---|---|
| committer | Sebastien Bacher <seb128@ubuntu.com> | 2021-07-05 20:35:03 +0200 |
| commit | 35779c6675728fa6f0fd0a21cefb904408509c23 (patch) | |
| tree | 553e7239e0ba182b4f9b29b1e7a9d66a595d08bc /src/core/initrd/nm-initrd-generator.h | |
| parent | d92aa7f298fe84d4cf686c5ad64b73438e00d377 (diff) | |
New upstream version 1.32.2
Diffstat (limited to 'src/core/initrd/nm-initrd-generator.h')
| -rw-r--r-- | src/core/initrd/nm-initrd-generator.h | 45 |
1 files changed, 0 insertions, 45 deletions
diff --git a/src/core/initrd/nm-initrd-generator.h b/src/core/initrd/nm-initrd-generator.h deleted file mode 100644 index 56dcfd68..00000000 --- a/src/core/initrd/nm-initrd-generator.h +++ /dev/null @@ -1,45 +0,0 @@ -/* SPDX-License-Identifier: LGPL-2.1-or-later */ -/* - * Copyright (C) 2014, 2018 Red Hat, Inc. - */ - -#ifndef __NM_INITRD_GENERATOR_H__ -#define __NM_INITRD_GENERATOR_H__ - -#include "nm-connection.h" -#include "nm-utils.h" - -#define NMI_WAIT_DEVICE_TIMEOUT_MS 60000 - -static inline int -get_ip_address_family(const char *str, gboolean with_prefix) -{ - int addr_family; - - if (!str) - return AF_UNSPEC; - - if (with_prefix) { - if (nm_utils_parse_inaddr_prefix_bin(AF_UNSPEC, str, &addr_family, NULL, NULL)) - return addr_family; - } else { - if (nm_utils_parse_inaddr_bin(AF_UNSPEC, str, &addr_family, NULL)) - return addr_family; - } - - return AF_UNSPEC; -} - -GHashTable *nmi_ibft_read(const char *sysfs_dir); - -gboolean -nmi_ibft_update_connection_from_nic(NMConnection *connection, GHashTable *nic, GError **error); - -NMConnection *nmi_dt_reader_parse(const char *sysfs_dir); - -GHashTable *nmi_cmdline_reader_parse(const char * sysfs_dir, - const char *const *argv, - char ** hostname, - gint64 * carrier_timeout_sec); - -#endif /* __NM_INITRD_GENERATOR_H__ */ |