summaryrefslogtreecommitdiffstats
path: root/loader/net.c
diff options
context:
space:
mode:
Diffstat (limited to 'loader/net.c')
-rw-r--r--loader/net.c18
1 files changed, 0 insertions, 18 deletions
diff --git a/loader/net.c b/loader/net.c
index ebb8e3cd6..a152bdeff 100644
--- a/loader/net.c
+++ b/loader/net.c
@@ -819,12 +819,6 @@ int manualNetConfig(char * device, iface_t * iface,
logMessage(ERROR, "%s (%d): %s", __func__, __LINE__,
strerror(errno));
}
- } else if (iface_have_in_addr(&iface->ipaddr)) {
- if (inet_ntop(AF_INET, &iface->ipaddr, ret,
- INET_ADDRSTRLEN) == NULL) {
- logMessage(ERROR, "%s (%d): %s", __func__, __LINE__,
- strerror(errno));
- }
}
if (*ret) {
@@ -837,12 +831,6 @@ int manualNetConfig(char * device, iface_t * iface,
logMessage(ERROR, "%s (%d): %s", __func__, __LINE__,
strerror(errno));
}
- } else if (iface_have_in_addr(&iface->netmask)) {
- if (inet_ntop(AF_INET, &iface->netmask, ret,
- INET_ADDRSTRLEN) == NULL) {
- logMessage(ERROR, "%s (%d): %s", __func__, __LINE__,
- strerror(errno));
- }
}
if (*ret) {
@@ -886,12 +874,6 @@ int manualNetConfig(char * device, iface_t * iface,
logMessage(ERROR, "%s (%d): %s", __func__, __LINE__,
strerror(errno));
}
- } else if (iface_have_in6_addr(&iface->ip6addr)) {
- if (inet_ntop(AF_INET6, &iface->ip6addr, ret,
- INET6_ADDRSTRLEN) == NULL) {
- logMessage(ERROR, "%s (%d): %s", __func__, __LINE__,
- strerror(errno));
- }
}
if (*ret) {