Skip to contentSkip to conversation

Introduce iplink_parse() routine

PATCH Applied Vitaliy Gusev 1 participant 1 message Dec 18, 2007

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

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().

 include/utils.h |    3 +
 ip/iplink.c     |  127 
++++++++++++++++++++++++++++++++------------------------
 2 files changed, 76 insertions(+), 54 deletions(-)
include/utils.h +3 -0
index 9ee55fd..7223a10 100644
@@ -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