module link_veth
Signed-off-by: Vitaliy Gusev <[EMAIL PROTECTED]>
---
link_veth.c | 76 +++-
veth.h |2 -
2 files changed, 25 insertions(+), 53 deletions(-)
diff --git a/ip/link_veth.c b/ip/link_veth.c
index a4764f2..2
duparg2("dev", *argv);
- dev = *argv;
+ *dev = *argv;
}
argc--; argv++;
}
+ return ret - argc;
+}
+
+static int iplink_modify(int cmd, unsigned int flags, int argc, char **argv)
+{
+ int len;
+
The usage is
# ip link add [name] [device parameters] type veth [peer [name ]]
This consists of two parts:
1/2 makes some copy-paste changes in ip/iplink.c for generic CLI
attributes parsing,
2/2 the module itself.
Signed-off-by: Pavel Emelyanov <[EMAIL PROTECTED]>
--
To unsubscribe from this
get_link_kind() fails for statically linked modules (vlan, veth, etc.) if "ip"
was linked without "export-dynamic".
Signed-off-by: Vitaliy Gusev <[EMAIL PROTECTED]>
--
Thank,
Vitaliy Gusev
diff --git a/ip/Makefile b/ip/Makefile
index 448efb9..b427d58 100644
--- a/ip/