laurenceman / rpms / iptables

Forked from rpms/iptables 5 years ago
Clone

Blame SOURCES/extensions-Fix-ipvs-vproto-option-printing.patch

9a3fa7
From 21ef09de8df5a448df06a3fb6c7708440fe8b8ac Mon Sep 17 00:00:00 2001
9a3fa7
From: Phil Sutter <psutter@redhat.com>
9a3fa7
Date: Wed, 3 Apr 2019 20:19:53 +0200
9a3fa7
Subject: [PATCH] extensions: Fix ipvs vproto option printing
9a3fa7
9a3fa7
Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=1679726
9a3fa7
Upstream Status: iptables commit dd1ad59f0df66
9a3fa7
9a3fa7
commit dd1ad59f0df66811335c10ed90c33151a658a50e
9a3fa7
Author: Phil Sutter <phil@nwl.cc>
9a3fa7
Date:   Thu Feb 21 20:09:31 2019 +0100
9a3fa7
9a3fa7
    extensions: Fix ipvs vproto option printing
9a3fa7
9a3fa7
    This was broken since day 1: vproto option was printed as 'proto' which
9a3fa7
    in turn iptables wouldn't accept anymore.
9a3fa7
9a3fa7
    Fixes: c36d05e424069 ("libxt_ipvs: user-space lib for netfilter matcher xt_ipvs")
9a3fa7
    Signed-off-by: Phil Sutter <phil@nwl.cc>
9a3fa7
    Signed-off-by: Florian Westphal <fw@strlen.de>
9a3fa7
9a3fa7
Signed-off-by: Phil Sutter <psutter@redhat.com>
9a3fa7
---
9a3fa7
 extensions/libxt_ipvs.c | 2 +-
9a3fa7
 1 file changed, 1 insertion(+), 1 deletion(-)
9a3fa7
9a3fa7
diff --git a/extensions/libxt_ipvs.c b/extensions/libxt_ipvs.c
9a3fa7
index fe98fef951686..51952be4245b3 100644
9a3fa7
--- a/extensions/libxt_ipvs.c
9a3fa7
+++ b/extensions/libxt_ipvs.c
9a3fa7
@@ -165,7 +165,7 @@ static void ipvs_mt_dump(const void *ip, const struct xt_ipvs_mtinfo *data,
9a3fa7
 	if (data->bitmask & XT_IPVS_PROTO) {
9a3fa7
 		if (data->invert & XT_IPVS_PROTO)
9a3fa7
 			printf(" !");
9a3fa7
-		printf(" %sproto %u", prefix, data->l4proto);
9a3fa7
+		printf(" %svproto %u", prefix, data->l4proto);
9a3fa7
 	}
9a3fa7
 
9a3fa7
 	if (data->bitmask & XT_IPVS_VADDR) {
9a3fa7
-- 
9a3fa7
2.21.0
9a3fa7