Introduce iplink_parse() routine
Subsystems (2)
PATCH 1/2 Introduce iplink_parse() routine
From: Pavel Emelyanov <[email protected]>
Date: Thu, 19 Jul 2007 13:32:31 +0400
This routine parses CLI attributes, describing generic link parameters such as name, address, etc.
This is mostly copy-pasted from iplink_modify().
Signed-off-by Pavel Emelyanov <[email protected]>
Acked-by Patrick McHardy <[email protected]>
include/utils.h | 3 + ip/iplink.c | 127 ++++++++++++++++++++++++++++++++------------------------ 2 files changed, 76 insertions(+), 54 deletions(-)
include/utils.h +3 -0
@@ -147,4 +147,7 @@ extern int cmdlineno;extern ssize_t getcmdline (char **line,size_t *len,FILE *in);extern int makeargs (char *line,char *argv[],int maxargs); +struct iplink_req ; +int iplink_parse (int argc,char **argv,struct iplink_req *req, +char **name,char **type,char **link,char **dev);#endif /* __UTILS_H__ */
ip/iplink.c +73 -54
213 lines not on this page · raw message
Signature · 2 lines
Thank, Vitaliy Gusev