commit | 262316f5e114f6f10e48d68dcb71052469ebc8ca | [log] [tgz] |
---|---|---|
author | Pete Bentley <prb@google.com> | Tue Mar 26 13:45:51 2019 +0000 |
committer | Pete Bentley <prb@google.com> | Tue Mar 26 13:57:00 2019 +0000 |
tree | 9a1734c02b2a0037aa763ef902642edfed2ce321 | |
parent | 24d3cb9b22542123f3b63c652d182153f86f158d [diff] |
Fix Os.inet_pton for IPv6. Native code assumed that the address offsets inside struct sockaddr_storage were the same for both IPv4 and IPv6 which is not true on Android or Linux. Bug: 123499570 Test: atest CtsLibcoreTestCases:libcore.libcore.io.OsTest Change-Id: I40711a9c681fea75a8c2047a4d504b6cbdff0a47