summaryrefslogtreecommitdiff
path: root/src/dhcp/nm-dhcp-client.h
diff options
context:
space:
mode:
authorFrancesco Giudici <fgiudici@redhat.com>2018-05-03 18:52:43 +0200
committerFrancesco Giudici <fgiudici@redhat.com>2018-06-09 22:20:39 +0200
commitf054c3fcaadb39c6597d9d9e4ed94b5d4fc29508 (patch)
tree8606e3da13c85f93ee5de97d6503d8461387250c /src/dhcp/nm-dhcp-client.h
parent0d841e7471325b4bda484ae1838675debf08d2a5 (diff)
downloadNetworkManager-f054c3fcaadb39c6597d9d9e4ed94b5d4fc29508.tar.gz
dhcp: allow to skip DUID search from DHCP client global configuration
When the used client is dhclient we were used to search for DUID not only in the specific lease files generated by NetworkManager, but also in the global lease file generated outside NetworkManager. Keep this capability but allow to just search in the NM lease files if a value different from the default one is specified in dhcp-duid.
Diffstat (limited to 'src/dhcp/nm-dhcp-client.h')
-rw-r--r--src/dhcp/nm-dhcp-client.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/dhcp/nm-dhcp-client.h b/src/dhcp/nm-dhcp-client.h
index fc8c1a5693..98c3ed262e 100644
--- a/src/dhcp/nm-dhcp-client.h
+++ b/src/dhcp/nm-dhcp-client.h
@@ -96,13 +96,15 @@ typedef struct {
/**
* get_duid:
* @self: the #NMDhcpClient
+ * @global: if set to #true, the duid should be searched also in the
+ * DHCP client's system-wide persistent configuration.
*
* Attempts to find an existing DHCPv6 DUID for this client in the DHCP
* client's persistent configuration. Returned DUID should be the binary
* representation of the DUID. If no DUID is found, %NULL should be
* returned.
*/
- GBytes *(*get_duid) (NMDhcpClient *self);
+ GBytes *(*get_duid) (NMDhcpClient *self, gboolean global);
/* Signals */
void (*state_changed) (NMDhcpClient *self,