naccyde / rpms / iproute

Forked from rpms/iproute 8 months ago
Clone

Blame SOURCES/0138-tc-pedit-document-branch-control-in-help-output.patch

049c96
From 390c23937283fa848f867481ee60ea96899d4dc8 Mon Sep 17 00:00:00 2001
049c96
From: Phil Sutter <psutter@redhat.com>
049c96
Date: Wed, 30 Mar 2016 16:43:20 +0200
049c96
Subject: [PATCH] tc: pedit: document branch control in help output
049c96
049c96
Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=1275426
049c96
Upstream Status: iproute2.git commit c024acc641428
049c96
049c96
commit c024acc6414285a09107648c9c21a377404b9d45
049c96
Author: Phil Sutter <phil@nwl.cc>
049c96
Date:   Fri Mar 4 12:52:37 2016 +0100
049c96
049c96
    tc: pedit: document branch control in help output
049c96
049c96
    This seems to have been a hidden feature, though it's very useful and
049c96
    necessary at least when combining multiple pedit actions.
049c96
049c96
    Signed-off-by: Phil Sutter <phil@nwl.cc>
049c96
---
049c96
 tc/m_pedit.c | 3 ++-
049c96
 1 file changed, 2 insertions(+), 1 deletion(-)
049c96
049c96
diff --git a/tc/m_pedit.c b/tc/m_pedit.c
049c96
index e89d932..64a3eae 100644
049c96
--- a/tc/m_pedit.c
049c96
+++ b/tc/m_pedit.c
049c96
@@ -35,7 +35,7 @@ int pedit_debug = 1;
049c96
 static void
049c96
 explain(void)
049c96
 {
049c96
-	fprintf(stderr, "Usage: ... pedit munge <MUNGE>\n");
049c96
+	fprintf(stderr, "Usage: ... pedit munge <MUNGE> [<BRANCH>]\n");
049c96
 	fprintf(stderr,
049c96
 		"Where: MUNGE := <RAW>|<LAYERED>\n"
049c96
 		"\t<RAW>:= <OFFSETC>[ATC]<CMD>\n "
049c96
@@ -47,6 +47,7 @@ explain(void)
049c96
 		"\t\tCMD:= clear | invert | set <setval>| retain\n "
049c96
 		"\t<LAYERED>:= ip <ipdata> | ip6 <ip6data> \n "
049c96
 		" \t\t| udp <udpdata> | tcp <tcpdata> | icmp <icmpdata> \n"
049c96
+		"\t<BRANCH>:= reclassify | pipe | drop | continue | pass\n"
049c96
 		"For Example usage look at the examples directory\n");
049c96
 
049c96
 }
049c96
-- 
049c96
1.8.3.1
049c96