mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-05-23 02:28:12 +02:00
Completely rework IP configuration in the daemon. Use NML3Cfg as layer 3 manager for the IP configuration of an interface. Use NML3ConfigData as pieces of configuration that the various components collect and configure. NMDevice is managing most of the IP configuration at a higher level, that is, it starts DHCP and other IP methods. Rework the state handling there. This is a huge rework of how NetworkManager daemon handles IP configuration. Some fallout is to be expected. It appears the patch deletes many lines of code. That is not accurate, because you also have to count the files `src/core/nm-l3*`, which were unused previously. Co-authored-by: Beniamino Galvani <bgalvani@redhat.com>
37 lines
1.3 KiB
C
37 lines
1.3 KiB
C
/* SPDX-License-Identifier: GPL-2.0-or-later */
|
|
/*
|
|
* Copyright (C) 2008 Red Hat, Inc.
|
|
*/
|
|
|
|
#ifndef __NM_DHCP_CONFIG_H__
|
|
#define __NM_DHCP_CONFIG_H__
|
|
|
|
/*****************************************************************************/
|
|
|
|
#define NM_TYPE_DHCP_CONFIG (nm_dhcp_config_get_type())
|
|
#define NM_DHCP_CONFIG(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), NM_TYPE_DHCP_CONFIG, NMDhcpConfig))
|
|
#define NM_DHCP_CONFIG_CLASS(klass) \
|
|
(G_TYPE_CHECK_CLASS_CAST((klass), NM_TYPE_DHCP_CONFIG, NMDhcpConfigClass))
|
|
#define NM_IS_DHCP_CONFIG(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), NM_TYPE_DHCP_CONFIG))
|
|
#define NM_IS_DHCP_CONFIG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass), NM_TYPE_DHCP_CONFIG))
|
|
#define NM_DHCP_CONFIG_GET_CLASS(obj) \
|
|
(G_TYPE_INSTANCE_GET_CLASS((obj), NM_TYPE_DHCP_CONFIG, NMDhcpConfigClass))
|
|
|
|
#define NM_DHCP_CONFIG_OPTIONS "options"
|
|
#define NM_DHCP_CONFIG_L3CD "l3cd"
|
|
|
|
typedef struct _NMDhcpConfigClass NMDhcpConfigClass;
|
|
|
|
GType nm_dhcp_config_get_type(void);
|
|
|
|
NMDhcpConfig *nm_dhcp_config_new(int addr_family, const NML3ConfigData *l3cd);
|
|
|
|
int nm_dhcp_config_get_addr_family(NMDhcpConfig *self);
|
|
|
|
void nm_dhcp_config_set_lease(NMDhcpConfig *self, const NML3ConfigData *l3cd);
|
|
|
|
const char *nm_dhcp_config_get_option(NMDhcpConfig *self, const char *option);
|
|
|
|
GVariant *nm_dhcp_config_get_options(NMDhcpConfig *self);
|
|
|
|
#endif /* __NM_DHCP_CONFIG_H__ */
|