diff options
author | Thomas Haller <thaller@redhat.com> | 2014-11-26 20:47:44 +0100 |
---|---|---|
committer | Thomas Haller <thaller@redhat.com> | 2014-12-01 16:38:05 +0100 |
commit | ae2b8d6353391b86528e045ee9a56793871e8286 (patch) | |
tree | cbc748618cda2cafd117030fb42f0403baf13018 /src/devices | |
parent | c3246d962dfac87e6eb4ced023d900744969cf6f (diff) | |
download | NetworkManager-ae2b8d6353391b86528e045ee9a56793871e8286.tar.gz |
core: rename NM_PLATFORM_ROUTE_METRIC_DEFAULT to NM_PLATFORM_ROUTE_METRIC_DEFAULT_IP6
For IPv4, iproute for example defaults to a metric of 0.
Hence, the name NM_PLATFORM_ROUTE_METRIC_DEFAULT was misleading.
Also add a NM_PLATFORM_ROUTE_METRIC_DEFAULT_IP4 define for completeness.
https://bugzilla.gnome.org/show_bug.cgi?id=740780
Diffstat (limited to 'src/devices')
-rw-r--r-- | src/devices/nm-device.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/devices/nm-device.c b/src/devices/nm-device.c index 009c6a626f..69a6d8cd02 100644 --- a/src/devices/nm-device.c +++ b/src/devices/nm-device.c @@ -669,7 +669,7 @@ nm_device_get_priority (NMDevice *self) * * For comparison, note that iproute2 by default adds IPv4 routes with * metric 0, and IPv6 routes with metric 1024. The latter is the IPv6 - * "user default" in the kernel (NM_PLATFORM_ROUTE_METRIC_DEFAULT). + * "user default" in the kernel (NM_PLATFORM_ROUTE_METRIC_DEFAULT_IP6). * In kernel, the full uint32_t range is available for route * metrics (except for IPv6, where 0 means 1024). */ |