aboutsummaryrefslogtreecommitdiffstats
path: root/ip/iplink_vcan.c
diff options
context:
space:
mode:
authorPhil Sutter <phil@nwl.cc>2017-03-28 23:19:39 +0200
committerStephen Hemminger <stephen@networkplumber.org>2017-04-04 14:51:29 -0700
commit9fd7b86c2de91935ab736ef6df119a0c691cdfdc (patch)
treee021b79da87af6b6eb0fe8313c613f849466b848 /ip/iplink_vcan.c
parent8b47135474cde4f0f8c9991741132b930bf3e192 (diff)
downloadplatform_external_iproute2-9fd7b86c2de91935ab736ef6df119a0c691cdfdc.tar.gz
platform_external_iproute2-9fd7b86c2de91935ab736ef6df119a0c691cdfdc.tar.bz2
platform_external_iproute2-9fd7b86c2de91935ab736ef6df119a0c691cdfdc.zip
ip: link: Add missing link type help texts
These are basically stubs: The types which lacked their own help text simply don't accept any options (yet). Still it might be a bit confusing to users if they are presented with the generic 'ip link' help text instead of something saying there are no type specific options. Signed-off-by: Phil Sutter <phil@nwl.cc>
Diffstat (limited to 'ip/iplink_vcan.c')
-rw-r--r--ip/iplink_vcan.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/ip/iplink_vcan.c b/ip/iplink_vcan.c
new file mode 100644
index 00000000..b7ae15f0
--- /dev/null
+++ b/ip/iplink_vcan.c
@@ -0,0 +1,16 @@
+#include <stdio.h>
+#include <stdlib.h>
+
+#include "utils.h"
+#include "ip_common.h"
+
+static void vcan_print_help(struct link_util *lu,
+ int argc, char **argv, FILE *f)
+{
+ fprintf(f, "Usage: ... vcan\n");
+}
+
+struct link_util vcan_link_util = {
+ .id = "vcan",
+ .print_help = vcan_print_help,
+};