mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-03-04 03:40:38 +01: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>
28 lines
816 B
C
28 lines
816 B
C
/* SPDX-License-Identifier: GPL-2.0-or-later */
|
|
/*
|
|
* Copyright (C) 2014 - 2016 Red Hat, Inc.
|
|
*/
|
|
|
|
#ifndef __NM_SD_H__
|
|
#define __NM_SD_H__
|
|
|
|
#include "src/systemd/sd-dhcp-client.h"
|
|
#include "src/systemd/sd-dhcp6-client.h"
|
|
#include "src/systemd/sd-lldp-rx.h"
|
|
|
|
/*****************************************************************************/
|
|
|
|
guint nm_sd_event_attach_default(void);
|
|
|
|
/*****************************************************************************
|
|
* expose internal systemd API
|
|
*
|
|
* FIXME: don't use any internal systemd API.
|
|
*****************************************************************************/
|
|
|
|
struct sd_dhcp_lease;
|
|
|
|
int dhcp_lease_save(struct sd_dhcp_lease *lease, const char *lease_file);
|
|
int dhcp_lease_load(struct sd_dhcp_lease **ret, const char *lease_file);
|
|
|
|
#endif /* __NM_SD_H__ */
|