summaryrefslogtreecommitdiff
path: root/networking
diff options
context:
space:
mode:
authorDenis Vlasenko2006-11-21 20:34:21 +0000
committerDenis Vlasenko2006-11-21 20:34:21 +0000
commit7ca3921e5e8aa64533d4d7a678046676ae6574ec (patch)
tree9736975246e991e626e025ab1c98d9f5536e9007 /networking
parent5096246ffb22b46b7d9e9debf035112a11d339b3 (diff)
downloadbusybox-7ca3921e5e8aa64533d4d7a678046676ae6574ec.zip
busybox-7ca3921e5e8aa64533d4d7a678046676ae6574ec.tar.gz
bb_INET_default[] is really just a const "default",
nothing INET-specific
Diffstat (limited to 'networking')
-rw-r--r--networking/ifconfig.c2
-rw-r--r--networking/libiproute/utils.c4
-rw-r--r--networking/route.c4
3 files changed, 5 insertions, 5 deletions
diff --git a/networking/ifconfig.c b/networking/ifconfig.c
index 00dc455..05be7dc 100644
--- a/networking/ifconfig.c
+++ b/networking/ifconfig.c
@@ -394,7 +394,7 @@ int ifconfig_main(int argc, char **argv)
sai.sin_family = AF_INET;
sai.sin_port = 0;
- if (!strcmp(host, bb_INET_default)) {
+ if (!strcmp(host, bb_str_default)) {
/* Default is special, meaning 0.0.0.0. */
sai.sin_addr.s_addr = INADDR_ANY;
#if ENABLE_FEATURE_IFCONFIG_BROADCAST_PLUS
diff --git a/networking/libiproute/utils.c b/networking/libiproute/utils.c
index f92179c..e608531 100644
--- a/networking/libiproute/utils.c
+++ b/networking/libiproute/utils.c
@@ -125,7 +125,7 @@ int get_addr_1(inet_prefix * addr, char *name, int family)
memset(addr, 0, sizeof(*addr));
- if (strcmp(name, bb_INET_default) == 0 ||
+ if (strcmp(name, bb_str_default) == 0 ||
strcmp(name, "all") == 0 || strcmp(name, "any") == 0) {
addr->family = family;
addr->bytelen = (family == AF_INET6 ? 16 : 4);
@@ -169,7 +169,7 @@ int get_prefix_1(inet_prefix * dst, char *arg, int family)
memset(dst, 0, sizeof(*dst));
- if (strcmp(arg, bb_INET_default) == 0 || strcmp(arg, "any") == 0) {
+ if (strcmp(arg, bb_str_default) == 0 || strcmp(arg, "any") == 0) {
dst->family = family;
dst->bytelen = 0;
dst->bitlen = 0;
diff --git a/networking/route.c b/networking/route.c
index c99405d..f343d06 100644
--- a/networking/route.c
+++ b/networking/route.c
@@ -186,7 +186,7 @@ static void INET_setroute(int action, char **args)
#endif
} else {
/* Default netmask. */
- netmask = bb_INET_default;
+ netmask = bb_str_default;
}
/* Prefer hostname lookup is -host flag (xflag==1) was given. */
isnet = INET_resolve(target, (struct sockaddr_in *) &rt.rt_dst,
@@ -346,7 +346,7 @@ static void INET6_setroute(int action, char **args)
/* We know args isn't NULL from the check in route_main. */
const char *target = *args++;
- if (strcmp(target, bb_INET_default) == 0) {
+ if (strcmp(target, bb_str_default) == 0) {
prefix_len = 0;
memset(&sa6, 0, sizeof(sa6));
} else {