DORMANTno replies

[PATCH iproute2] ip route: should show the hoplimit value what kernel returns

From: Hangbin Liu <hidden>
Date: 2015-05-12 05:33:02
Subsystem: the rest · Maintainer: Linus Torvalds

1. Kernel commit a02e4b7 set the default hoplimit as zero.
2. Kernel should return the correct values and iproute should show what kernel
returns, not invent magic transformations.

Signed-off-by: Hangbin Liu <redacted>
---
 ip/iproute.c | 3 ---
 1 file changed, 3 deletions(-)
diff --git a/ip/iproute.c b/ip/iproute.c
index 670a4c6..569bff9 100644
--- a/ip/iproute.c
+++ b/ip/iproute.c
@@ -579,9 +579,6 @@ int print_route(const struct sockaddr_nl *who, struct nlmsghdr *n, void *arg)
 				print_rtax_features(fp, val);
 				break;
 			case RTAX_HOPLIMIT:
-				if ((int)val == -1)
-					val = 0;
-				/* fall through */
 			default:
 				fprintf(fp, " %u", val);
 				break;
-- 
1.9.3
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help