[PATCH 2/2] Module for ip utility to support veth device

2007-12-18 Thread Vitaliy Gusev
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

[PATCH 1/2] Introduce iplink_parse() routine

2007-12-18 Thread Vitaliy Gusev
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; +

[PATCH] Module for ip utility to support veth device (v.4)

2007-12-18 Thread Vitaliy Gusev
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

[PATCH] Fix lost export-dynamic

2007-12-17 Thread Vitaliy Gusev
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/