From f112daa232122dd114933d04a9e415cfc61f1717 Mon Sep 17 00:00:00 2001 From: Glenn L McGrath Date: Sun, 1 Dec 2002 23:04:06 +0000 Subject: Enable ip commands to be compiled seperate from ip, modifed patch from Bastian Blank --- networking/ipaddr.c | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 networking/ipaddr.c (limited to 'networking/ipaddr.c') diff --git a/networking/ipaddr.c b/networking/ipaddr.c new file mode 100644 index 000000000..7826194c9 --- /dev/null +++ b/networking/ipaddr.c @@ -0,0 +1,27 @@ +/* + * ip.c "ip" utility frontend. + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License + * as published by the Free Software Foundation; either version + * 2 of the License, or (at your option) any later version. + * + * Authors: Alexey Kuznetsov, + * + * + * Changes: + * + * Rani Assaf 980929: resolve addresses + */ + +#include "./libiproute/utils.h" +#include "./libiproute/ip_common.h" + +#include "busybox.h" + +int ipaddr_main(int argc, char **argv) +{ + ip_parse_common_args(&argc, &argv); + + return do_ipaddr(argc-1, argv+1); +} -- cgit v1.2.3-55-g6feb