netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [IPROUTE]: Support "ip link add help" for rtnl_link API
@ 2008-10-07 15:16 Patrick McHardy
  0 siblings, 0 replies; only message in thread
From: Patrick McHardy @ 2008-10-07 15:16 UTC (permalink / raw)
  To: Linux Netdev List, Stephen Hemminger

[-- Attachment #1: Type: text/plain, Size: 0 bytes --]



[-- Attachment #2: 01.diff --]
[-- Type: text/x-patch, Size: 727 bytes --]

commit 91cb1e34144e62c0a9e767d1a766c1827d79f770
Author: Patrick McHardy <kaber@trash.net>
Date:   Tue Oct 7 16:47:03 2008 +0200

    [IPROUTE]: Support "ip link add help" for rtnl_link API
    
    For some reason "ip link add help" is currently not supported when using
    the new rtnl_link API. Fix that.
    
    Signed-off-by: Patrick McHardy <kaber@trash.net>

diff --git a/ip/iplink.c b/ip/iplink.c
index f4cbeb3..81122ae 100644
--- a/ip/iplink.c
+++ b/ip/iplink.c
@@ -274,6 +274,8 @@ int iplink_parse(int argc, char **argv, struct iplink_req *req,
 			if (strcmp(*argv, "dev") == 0) {
 				NEXT_ARG();
 			}
+			if (matches(*argv, "help") == 0)
+				usage();
 			if (*dev)
 				duparg2("dev", *argv);
 			*dev = *argv;

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2008-10-07 15:16 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-10-07 15:16 [IPROUTE]: Support "ip link add help" for rtnl_link API Patrick McHardy

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).