summaryrefslogtreecommitdiff
path: root/networking/ip.c
diff options
context:
space:
mode:
author"Robert P. J. Day"2006-07-01 14:59:54 +0000
committer"Robert P. J. Day"2006-07-01 14:59:54 +0000
commitd35ef0f66643f2bc43bd7070df0356e0b064b755 (patch)
tree5aa3ba477deef2545a65b9cd33e316fcb0496044 /networking/ip.c
parentedd9ca574327205933f23205d7051f613e46b23b (diff)
downloadbusybox-d35ef0f66643f2bc43bd7070df0356e0b064b755.zip
busybox-d35ef0f66643f2bc43bd7070df0356e0b064b755.tar.gz
More removal of "#if 0" content.
Diffstat (limited to 'networking/ip.c')
-rw-r--r--networking/ip.c52
1 files changed, 0 insertions, 52 deletions
diff --git a/networking/ip.c b/networking/ip.c
index bba7089..d44cc0d 100644
--- a/networking/ip.c
+++ b/networking/ip.c
@@ -25,58 +25,6 @@
#include "busybox.h"
-#if 0
-int preferred_family = AF_UNSPEC;
-int oneline = 0;
-char * _SL_ = NULL;
-
-void ip_parse_common_args(int *argcp, char ***argvp)
-{
- int argc = *argcp;
- char **argv = *argvp;
-
- while (argc > 1) {
- char *opt = argv[1];
-
- if (strcmp(opt,"--") == 0) {
- argc--; argv++;
- break;
- }
-
- if (opt[0] != '-')
- break;
-
- if (opt[1] == '-')
- opt++;
-
- if (matches(opt, "-family") == 0) {
- argc--;
- argv++;
- if (strcmp(argv[1], "inet") == 0)
- preferred_family = AF_INET;
- else if (strcmp(argv[1], "inet6") == 0)
- preferred_family = AF_INET6;
- else if (strcmp(argv[1], "link") == 0)
- preferred_family = AF_PACKET;
- else
- invarg(bb_msg_invalid_arg, argv[1], "-family");
- } else if (strcmp(opt, "-4") == 0) {
- preferred_family = AF_INET;
- } else if (strcmp(opt, "-6") == 0) {
- preferred_family = AF_INET6;
- } else if (strcmp(opt, "-0") == 0) {
- preferred_family = AF_PACKET;
- } else if (matches(opt, "-oneline") == 0) {
- ++oneline;
- } else {
- bb_show_usage();
- }
- argc--; argv++;
- }
- _SL_ = oneline ? "\\" : "\n" ;
-}
-#endif
-
int ip_main(int argc, char **argv)
{
int ret = EXIT_FAILURE;