From fc60c582473c9495d8ff2d08f16ecdab11e62e13 Mon Sep 17 00:00:00 2001 From: Michael Tuexen <tuexen@fh-muenster.de> Date: Mon, 23 Apr 2018 22:25:09 +0200 Subject: [PATCH] Fix compilation on Linux. --- gtests/net/packetdrill/net_utils.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gtests/net/packetdrill/net_utils.c b/gtests/net/packetdrill/net_utils.c index 86ed4caf..ca2dd387 100644 --- a/gtests/net/packetdrill/net_utils.c +++ b/gtests/net/packetdrill/net_utils.c @@ -56,7 +56,7 @@ static void net_add_ipv4_address(const char *dev_name, #ifdef linux asprintf(&command, "ip addr add %s/%d dev %s > /dev/null 2>&1", - ip_string, prefix_len, dev_name); + local_ip_string, prefix_len, dev_name); #endif #if defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__NetBSD__) asprintf(&command, "/sbin/ifconfig %s %s/%d alias", @@ -82,7 +82,7 @@ static void net_add_ipv6_address(const char *dev_name, #ifdef linux asprintf(&command, "ip addr add %s/%d dev %s > /dev/null 2>&1", - ip_string, prefix_len, dev_name); + local_ip_string, prefix_len, dev_name); #else asprintf(&command, "/sbin/ifconfig %s inet6 %s/%d", dev_name, local_ip_string, prefix_len); -- GitLab