aboutsummaryrefslogtreecommitdiff
path: root/networking/libiproute/utils.c
diff options
context:
space:
mode:
author"Vladimir N. Oleynik" <dzo@simtreas.ru>2005-09-22 11:11:11 +0000
committer"Vladimir N. Oleynik" <dzo@simtreas.ru>2005-09-22 11:11:11 +0000
commit007a01164705f3b086f5f4633e63a32d6c6e16c6 (patch)
treebb27f8f1f884604a277af2e82a527fb05f18867b /networking/libiproute/utils.c
parent9d7010ca86feff8fffdfecadf6554ca9aac268c1 (diff)
downloadbusybox-007a01164705f3b086f5f4633e63a32d6c6e16c6.tar.gz
network "default" --> bb_INET_default. Reduce 2 exported from find applet
Diffstat (limited to 'networking/libiproute/utils.c')
-rw-r--r--networking/libiproute/utils.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/networking/libiproute/utils.c b/networking/libiproute/utils.c
index d86d4f8f5..e6b386c1d 100644
--- a/networking/libiproute/utils.c
+++ b/networking/libiproute/utils.c
@@ -21,6 +21,7 @@
#include "utils.h"
#include "libbb.h"
+#include "inet_common.h"
int get_integer(int *val, char *arg, int base)
{
@@ -128,7 +129,7 @@ int get_addr_1(inet_prefix * addr, char *name, int family)
memset(addr, 0, sizeof(*addr));
- if (strcmp(name, "default") == 0 ||
+ if (strcmp(name, bb_INET_default) == 0 ||
strcmp(name, "all") == 0 || strcmp(name, "any") == 0) {
addr->family = family;
addr->bytelen = (family == AF_INET6 ? 16 : 4);
@@ -172,7 +173,7 @@ int get_prefix_1(inet_prefix * dst, char *arg, int family)
memset(dst, 0, sizeof(*dst));
- if (strcmp(arg, "default") == 0 || strcmp(arg, "any") == 0) {
+ if (strcmp(arg, bb_INET_default) == 0 || strcmp(arg, "any") == 0) {
dst->family = family;
dst->bytelen = 0;
dst->bitlen = 0;