commit | 202221f726983460c08bea36dceee4f1222d04f0 | [log] [tgz] |
---|---|---|
author | Maciej Żenczykowski <[email protected]> | Wed Sep 12 14:38:06 2018 -0700 |
committer | Maciej Żenczykowski <[email protected]> | Wed Sep 12 16:28:21 2018 -0700 |
tree | d9d241e78ab7d4128991dafdb24d107b940b5223 | |
parent | e1d7317542ba7b098e9293b2cc22c03e4d2aed8c [diff] |
net_test: fix sock_diag_test.py to handle ipv5 correctly [ipv5 is ipv4 mapped ipv6] af_inet6_socket.connect(('8.8.8.8', 53)) is bogus and should be af_inet6_socket.connect(('::ffff:8.8.8.8', 53)) instead Python's behaviour when passing an ipv4 literal to an ipv6 socket has always been notoriously stupid: no error, just treat as ::. Seems like newer python is even stupider: no error, just treat as garbage. Bug: 74373492 Change-Id: I7c36236cd34246a2fff63864f81463ba2627841c