naccyde / rpms / iproute

Forked from rpms/iproute 5 months ago
Clone

Blame SOURCES/0160-man-ip-address-ip-link-Document-type-quirk.patch

049c96
From 7384fd2e31a9284f2ded443666fb91eabc15b75b Mon Sep 17 00:00:00 2001
049c96
From: Phil Sutter <psutter@redhat.com>
049c96
Date: Fri, 1 Jul 2016 20:36:52 +0200
049c96
Subject: [PATCH] man: ip-address, ip-link: Document 'type' quirk
049c96
049c96
Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=1341343
049c96
Upstream Status: iproute2.git commit 3462c116f8dd5
049c96
049c96
commit 3462c116f8dd578591f5f41d249d7542ea476ca4
049c96
Author: Phil Sutter <phil@nwl.cc>
049c96
Date:   Fri Jun 24 12:14:23 2016 +0200
049c96
049c96
    man: ip-address, ip-link: Document 'type' quirk
049c96
049c96
    This covers the fact that calling 'ip {link|addr} show type foobar' does
049c96
    not return an error.
049c96
049c96
    Signed-off-by: Phil Sutter <phil@nwl.cc>
049c96
---
049c96
 man/man8/ip-address.8.in | 6 ++++++
049c96
 man/man8/ip-link.8.in    | 6 ++++++
049c96
 2 files changed, 12 insertions(+)
049c96
049c96
diff --git a/man/man8/ip-address.8.in b/man/man8/ip-address.8.in
049c96
index ab0942d..8d34adb 100644
049c96
--- a/man/man8/ip-address.8.in
049c96
+++ b/man/man8/ip-address.8.in
049c96
@@ -280,6 +280,12 @@ only list interfaces enslaved to this master device.
049c96
 .BI type " TYPE"
049c96
 only list interfaces of the given type.
049c96
 
049c96
+Note that the type name is not checked against the list of supported types -
049c96
+instead it is sent as-is to the kernel. Later it is used to filter the returned
049c96
+interface list by comparing it with the relevant attribute in case the kernel
049c96
+didn't filter already. Therefore any string is accepted, but may lead to empty
049c96
+output.
049c96
+
049c96
 .TP
049c96
 .B up
049c96
 only list running interfaces.
049c96
diff --git a/man/man8/ip-link.8.in b/man/man8/ip-link.8.in
049c96
index c9ccf23..5e4862f 100644
049c96
--- a/man/man8/ip-link.8.in
049c96
+++ b/man/man8/ip-link.8.in
049c96
@@ -934,6 +934,12 @@ specifies the master device which enslaves devices to show.
049c96
 .I TYPE
049c96
 specifies the type of devices to show.
049c96
 
049c96
+Note that the type name is not checked against the list of supported types -
049c96
+instead it is sent as-is to the kernel. Later it is used to filter the returned
049c96
+interface list by comparing it with the relevant attribute in case the kernel
049c96
+didn't filter already. Therefore any string is accepted, but may lead to empty
049c96
+output.
049c96
+
049c96
 .SS  ip link help - display help
049c96
 
049c96
 .PP
049c96
-- 
049c96
1.8.3.1
049c96