Re: [PATCH 1/1] only set hop_limit for values greater than zero
- From: Dan Williams <dcbw redhat com>
- To: Christian Hesse <mail eworm de>
- Cc: networkmanager-list gnome org
- Subject: Re: [PATCH 1/1] only set hop_limit for values greater than zero
- Date: Mon, 15 Sep 2014 12:11:06 -0500
On Mon, 2014-09-15 at 11:35 +0200, Christian Hesse wrote:
---
src/devices/nm-device.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
Pushed, thanks!
Dan
diff --git a/src/devices/nm-device.c b/src/devices/nm-device.c
index 1afb5d1..8eb86d9 100644
--- a/src/devices/nm-device.c
+++ b/src/devices/nm-device.c
@@ -3649,7 +3649,9 @@ rdisc_config_changed (NMRDisc *rdisc, NMRDiscConfigMap changed, NMDevice *self)
}
}
- if (changed & NM_RDISC_CONFIG_HOP_LIMIT) {
+ /* hop_limit == 0 is a special value "unspecified", so do not touch
+ * in this case */
+ if (changed & NM_RDISC_CONFIG_HOP_LIMIT && rdisc->hop_limit > 0) {
char val[16];
g_snprintf (val, sizeof (val), "%d", rdisc->hop_limit);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]