diff options
author | Thomas Haller <thaller@redhat.com> | 2017-09-28 14:51:14 +0200 |
---|---|---|
committer | Thomas Haller <thaller@redhat.com> | 2017-10-06 11:13:43 +0200 |
commit | 5afdf6f1de76a6563914ae47eeddf51ea21de203 (patch) | |
tree | 3d65f79988b2f831267ab29d0660f720b7bc0e5b /src/dhcp/nm-dhcp-client.h | |
parent | a4e506ead5215ee736de9f53720a61aaf716a320 (diff) | |
download | NetworkManager-5afdf6f1de76a6563914ae47eeddf51ea21de203.tar.gz |
dhcp/trivial: rename "priority" variables to "route_metric" in DHCP code
The name "priority" is well established for routes (e.g. kernel's
RTA_PRIORITY netlink attribute).
However, we call it at most places "metric" or "route_metric".
Rename it, not to use two different names for the same thing.
Diffstat (limited to 'src/dhcp/nm-dhcp-client.h')
-rw-r--r-- | src/dhcp/nm-dhcp-client.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/dhcp/nm-dhcp-client.h b/src/dhcp/nm-dhcp-client.h index 91dc2299bd..98f7e4ab5b 100644 --- a/src/dhcp/nm-dhcp-client.h +++ b/src/dhcp/nm-dhcp-client.h @@ -39,7 +39,7 @@ #define NM_DHCP_CLIENT_IFINDEX "ifindex" #define NM_DHCP_CLIENT_HWADDR "hwaddr" #define NM_DHCP_CLIENT_UUID "uuid" -#define NM_DHCP_CLIENT_PRIORITY "priority" +#define NM_DHCP_CLIENT_ROUTE_METRIC "route-metric" #define NM_DHCP_CLIENT_TIMEOUT "timeout" #define NM_DHCP_CLIENT_MULTI_IDX "multi-idx" @@ -122,7 +122,7 @@ const GByteArray *nm_dhcp_client_get_duid (NMDhcpClient *self); const GByteArray *nm_dhcp_client_get_hw_addr (NMDhcpClient *self); -guint32 nm_dhcp_client_get_priority (NMDhcpClient *self); +guint32 nm_dhcp_client_get_route_metric (NMDhcpClient *self); guint32 nm_dhcp_client_get_timeout (NMDhcpClient *self); @@ -185,7 +185,7 @@ typedef struct { const char *iface, int ifindex, const char *uuid, - guint32 default_route_metric); + guint32 route_metric); } NMDhcpClientFactory; extern const NMDhcpClientFactory _nm_dhcp_client_factory_dhclient; |