|
|
7e752c |
From 7fa3df19e2b907e09b2de902a122daaff114ee0c Mon Sep 17 00:00:00 2001
|
|
|
7e752c |
From: Phil Sutter <psutter@redhat.com>
|
|
|
7e752c |
Date: Thu, 31 Jan 2019 16:48:25 +0100
|
|
|
7e752c |
Subject: [PATCH] l2tp: Fix printing of cookie and peer_cookie values
|
|
|
7e752c |
|
|
|
7e752c |
Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=1643805
|
|
|
7e752c |
Upstream Status: iproute2.git commit b876b7e2b492f
|
|
|
7e752c |
|
|
|
7e752c |
commit b876b7e2b492fa14ce1f3db6c18bf22b2df10132
|
|
|
7e752c |
Author: Andrea Claudi <aclaudi@redhat.com>
|
|
|
7e752c |
Date: Fri Nov 30 15:34:24 2018 +0100
|
|
|
7e752c |
|
|
|
7e752c |
l2tp: Fix printing of cookie and peer_cookie values
|
|
|
7e752c |
|
|
|
7e752c |
print_cookie() invocations miss %s format specifier.
|
|
|
7e752c |
While at it, align printout to the previous lines.
|
|
|
7e752c |
|
|
|
7e752c |
Fixes: 98453b65800f7 ("ip/l2tp: add JSON support")
|
|
|
7e752c |
Signed-off-by: Andrea Claudi <aclaudi@redhat.com>
|
|
|
7e752c |
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
|
|
|
7e752c |
---
|
|
|
7e752c |
ip/ipl2tp.c | 5 +++--
|
|
|
7e752c |
1 file changed, 3 insertions(+), 2 deletions(-)
|
|
|
7e752c |
|
|
|
7e752c |
diff --git a/ip/ipl2tp.c b/ip/ipl2tp.c
|
|
|
7e752c |
index 414a9eb..87c13db 100644
|
|
|
7e752c |
--- a/ip/ipl2tp.c
|
|
|
7e752c |
+++ b/ip/ipl2tp.c
|
|
|
7e752c |
@@ -311,10 +311,11 @@ static void print_session(struct l2tp_data *data)
|
|
|
7e752c |
print_uint(PRINT_FP, "peer_offset", " peer offset %u\n", 0);
|
|
|
7e752c |
|
|
|
7e752c |
if (p->cookie_len > 0)
|
|
|
7e752c |
- print_cookie("cookie", "cookie",
|
|
|
7e752c |
+ print_cookie("cookie", " cookie %s",
|
|
|
7e752c |
p->cookie, p->cookie_len);
|
|
|
7e752c |
+
|
|
|
7e752c |
if (p->peer_cookie_len > 0)
|
|
|
7e752c |
- print_cookie("peer_cookie", "peer cookie",
|
|
|
7e752c |
+ print_cookie("peer_cookie", " peer cookie %s",
|
|
|
7e752c |
p->peer_cookie, p->peer_cookie_len);
|
|
|
7e752c |
|
|
|
7e752c |
if (p->reorder_timeout != 0)
|
|
|
7e752c |
--
|
|
|
7e752c |
1.8.3.1
|
|
|
7e752c |
|