aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBjörn Gustavsson <[email protected]>2016-03-30 14:48:02 +0200
committerBjörn Gustavsson <[email protected]>2016-03-30 16:08:14 +0200
commit17f7dd7a414feb14fa20200299e9115e832ed164 (patch)
tree6c749d8fe68972887a464b58b52ef20a1c75e8e0
parent50623444d32398d4e982b9545f4809b3d8626793 (diff)
downloadotp-17f7dd7a414feb14fa20200299e9115e832ed164.tar.gz
otp-17f7dd7a414feb14fa20200299e9115e832ed164.tar.bz2
otp-17f7dd7a414feb14fa20200299e9115e832ed164.zip
inet_SUITE: Handle pointtopoint devices in getifaddrs/1
-rw-r--r--lib/kernel/test/inet_SUITE.erl4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/kernel/test/inet_SUITE.erl b/lib/kernel/test/inet_SUITE.erl
index 0f114a971a..38cb02a6ec 100644
--- a/lib/kernel/test/inet_SUITE.erl
+++ b/lib/kernel/test/inet_SUITE.erl
@@ -1075,6 +1075,10 @@ check_ifopts(
#ifopts{addrs=Addrs}=Ifopts) ->
check_ifopts(Opts, Ifopts#ifopts{addrs=[{Addr,Netmask,Broadaddr}|Addrs]});
check_ifopts(
+ [{addr,Addr},{netmask,Netmask},{dstaddr,_}|Opts],
+ #ifopts{addrs=Addrs}=Ifopts) ->
+ check_ifopts(Opts, Ifopts#ifopts{addrs=[{Addr,Netmask}|Addrs]});
+check_ifopts(
[{addr,Addr},{netmask,Netmask}|Opts],
#ifopts{addrs=Addrs}=Ifopts) ->
check_ifopts(Opts, Ifopts#ifopts{addrs=[{Addr,Netmask}|Addrs]});