delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
DKIM-Filter: | OpenDKIM Filter v2.11.0 sourceware.org 7AE32388217F |
DKIM-Signature: | v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com; |
s=default; t=1695927228; | |
bh=Za+phUOqi1FuXiNR8if2Ke5j5S1LSbcDGMAExrbK9qY=; | |
h=Date:Subject:To:References:In-Reply-To:List-Id:List-Unsubscribe: | |
List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To: | |
From; | |
b=UF4YcASD9Os49wF1ruIXi8xu7Dimp6cOeguZIllzV0EakdByHksJXwYsJmwQGLsRV | |
N7XUMU0SgKpueKbWJrk+MW6qxT+MxzoFhhXuurkzUHU4UmNrKmUnneaviR9M8Dmidm | |
OMUyu/bm75r3en0eVCMHwIsQvBpWNQWn0GE1+jyU= | |
X-Original-To: | cygwin AT cygwin DOT com |
Delivered-To: | cygwin AT cygwin DOT com |
DMARC-Filter: | OpenDMARC Filter v1.4.2 sourceware.org E93E83875435 |
X-MDAV-Result: | clean |
X-MDAV-Processed: | sequoia-grove.ad.secure-endpoints.com, Thu, |
28 Sep 2023 14:53:31 -0400 | |
X-Spam-Processed: | sequoia-grove.ad.secure-endpoints.com, Thu, |
28 Sep 2023 14:53:29 -0400 | |
(not processed: message from trusted or authenticated source) | |
X-MDRemoteIP: | 2603:7000:73d:b00:d023:ff5f:54c2:9ec4 |
X-MDHelo: | [IPV6:2603:7000:73d:b00:d023:ff5f:54c2:9ec4] |
X-MDArrival-Date: | Thu, 28 Sep 2023 14:53:29 -0400 |
X-MDOrigin-Country: | US, NA |
X-Authenticated-Sender: | acct-jaltman AT secure-endpoints DOT com |
X-Return-Path: | prvs=16350c021d=jaltman AT secure-endpoints DOT com |
X-Envelope-From: | jaltman AT secure-endpoints DOT com |
X-MDaemon-Deliver-To: | cygwin AT cygwin DOT com |
Message-ID: | <464e58c4-d672-47e9-ba9a-575af0f9d82a@secure-endpoints.com> |
Date: | Thu, 28 Sep 2023 14:53:17 -0400 |
MIME-Version: | 1.0 |
User-Agent: | Mozilla Thunderbird |
Subject: | Re: Cygwin/Win32 utility function to convert "raw" IPv6 address |
string into *.ipv6-literal.net string ? | |
To: | cygwin AT cygwin DOT com |
References: | <a0f1e420-ae48-49a3-9300-c56f1948ad9b DOT 8d485f54-9f47-42b0-bdcb-9635fbf663c3 DOT 1953b09c-03d1-4289-80f4-778eacaeb398 AT emailsignatures365 DOT codetwo DOT com> |
<a0f1e420-ae48-49a3-9300-c56f1948ad9b DOT 93e247b8-206a-49dd-b71c-9240681180cb DOT af28cea3-9945-4ab0-bb94-5ee9947bdc30 AT emailsignatures365 DOT codetwo DOT com> | |
<a0f1e420-ae48-49a3-9300-c56f1948ad9b DOT e52b7f5f-5a09-4346-99f8-a6591191169c DOT 56a70ab3-2a48-435e-a1d6-57e7829aa764 AT emailsignatures365 DOT codetwo DOT com> | |
<AM5PR0502MB3075062AEA53351A74C19EA092C2A AT AM5PR0502MB3075 DOT eurprd05 DOT prod DOT outlook DOT com> | |
<DM8PR09MB70953E1499A9EE95DEA12121A5C2A AT DM8PR09MB7095 DOT namprd09 DOT prod DOT outlook DOT com> | |
<9bea176a-40d9-d7e0-9874-1fd625333940 AT Shaw DOT ca> | |
<DM8PR09MB7095FB0B995A0A5DB0C41C43A5C2A AT DM8PR09MB7095 DOT namprd09 DOT prod DOT outlook DOT com> | |
<b04c0d95-60e2-0e4b-f1d7-eaa8f62939e0 AT Shaw DOT ca> | |
<DM8PR09MB70955C6191D154474B3EF6D1A5C1A AT DM8PR09MB7095 DOT namprd09 DOT prod DOT outlook DOT com> | |
Organization: | Secure Endpoints, Inc. |
In-Reply-To: | <DM8PR09MB70955C6191D154474B3EF6D1A5C1A@DM8PR09MB7095.namprd09.prod.outlook.com> |
X-MDCFSigsAdded: | secure-endpoints.com |
X-Spam-Status: | No, score=-2.1 required=5.0 tests=BAYES_00, DKIM_SIGNED, |
DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, RCVD_IN_DNSWL_NONE, SPF_HELO_PASS, | |
SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.6 | |
X-Spam-Checker-Version: | SpamAssassin 3.4.6 (2021-04-09) on |
server2.sourceware.org | |
X-BeenThere: | cygwin AT cygwin DOT com |
X-Mailman-Version: | 2.1.30 |
List-Id: | General Cygwin discussions and problem reports <cygwin.cygwin.com> |
List-Unsubscribe: | <https://cygwin.com/mailman/options/cygwin>, |
<mailto:cygwin-request AT cygwin DOT com?subject=unsubscribe> | |
List-Archive: | <https://cygwin.com/pipermail/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-request AT cygwin DOT com?subject=help> |
List-Subscribe: | <https://cygwin.com/mailman/listinfo/cygwin>, |
<mailto:cygwin-request AT cygwin DOT com?subject=subscribe> | |
From: | Jeffrey Altman via Cygwin <cygwin AT cygwin DOT com> |
Reply-To: | Jeffrey Altman <jaltman AT secure-endpoints DOT com> |
Errors-To: | cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com |
Sender: | "Cygwin" <cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com> |
This is a cryptographically signed message in MIME format. --===============1576681174768436676== Content-Language: en-US Content-Type: multipart/signed; protocol="application/pkcs7-signature"; micalg=sha-256; boundary="------------ms060003020504020705040100" This is a cryptographically signed message in MIME format. --------------ms060003020504020705040100 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 9/28/2023 1:56 PM, Lavrentiev, Anton (NIH/NLM/NCBI) [C] via Cygwin wrote: >> What do you think that output is - the PTR is resolved to "localhost." > You obviously did not get the point that I was making. Using ip6.arpa *is* the standard > way to get around with "DNS-like" IPv6 addresses, as it would be "understood". Using > the "ipv6-literal.net" domain is not portable and would result in NXDOMAIN anywhere > but Windows (where the resolver seems to intercept and convert them internally). The ip6.arpa names are used to lookup PTR records which contain hostnames. The ipv6-literal.net names are used to simulate AAAA records and map the name to an IPv6 address (with an optional address scope). For those that are unaware of the history[1][2][3], UNC names support the use of IPv4 addresses as an alternative to SMB server names or DNS host names. End users expect to be able to specify a UNC path such as \\2001:db8:85a3:8d3:1319:8a2e:370:7348\share or \\[2001:db8:85a3:8d3:1319:8a2e:370:7348]\share However, colons are illegal in UNC paths and therefore standard IPv6 representations cannot be used. The <encoded-ipv6-addr>.ipv6-literal.net server name is a method of representing an IPv6 address as a UNC server name such that it can be locally translated by getaddrinfo() into an IPv6 address without querying DNS. \\2001-db8-85a3-8d3-1319-8a2e-370-7348.ipv6-literal.net\share If the ipv6.arpa representation\\8.4.3.7.0.7.3.0.e.2.a.8.9.1.3.1.3.d.8.0.3.a.5.8.8.b.d.0.1.0.0.2.ip6.arpa\path was used as a server name and treated as a DNS AAAA lookup that would be harder for humans to construct and no more portable. The ip6.arpa representation would also be unable to represent IPv6 address scopes which are supported by ipv6-literal.net names. I am unaware of any Microsoft Windows APIs that can be called to translate from an IPv6 address to an ipv6-literal.net string. [1] https://en.wikipedia.org/wiki/IPv6_address#Literal_IPv6_addresses_in_UNC_path_names [2] https://devblogs.microsoft.com/oldnewthing/20100915-00/?p=12863 [3] https://learn.microsoft.com/en-us/windows/win32/api/winnetwk/nf-winnetwk-wnetaddconnection3a --------------ms060003020504020705040100 Content-Type: application/pkcs7-signature; name="smime.p7s" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="smime.p7s" Content-Description: S/MIME Cryptographic Signature MIAGCSqGSIb3DQEHAqCAMIACAQExDzANBglghkgBZQMEAgEFADCABgkqhkiG9w0BBwEAAKCC DJ8wggYAMIIE6KADAgECAhBAAYJruaIF8AonwUyCkoK7MA0GCSqGSIb3DQEBCwUAMDoxCzAJ BgNVBAYTAlVTMRIwEAYDVQQKEwlJZGVuVHJ1c3QxFzAVBgNVBAMTDlRydXN0SUQgQ0EgQTEz MB4XDTIyMDgwNTAxNTgyNFoXDTI1MTEwMjAxNTcyNFowgZUxNTAzBgNVBAsMLFZlcm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MBwGCSqGSIb3DQEJBTEPFw0yMzA5MjgxODUzMTdaMC8G CSqGSIb3DQEJBDEiBCDPOOiWtOJ0KEe0QpiBBH8ipMSutU9FdKvsqJY2d/Qx5zBdBgkrBgEE AYI3EAQxUDBOMDoxCzAJBgNVBAYTAlVTMRIwEAYDVQQKEwlJZGVuVHJ1c3QxFzAVBgNVBAMT DlRydXN0SUQgQ0EgQTEzAhBAAYJruaIF8AonwUyCkoK7MF8GCyqGSIb3DQEJEAILMVCgTjA6 MQswCQYDVQQGEwJVUzESMBAGA1UEChMJSWRlblRydXN0MRcwFQYDVQQDEw5UcnVzdElEIENB IEExMwIQQAGCa7miBfAKJ8FMgpKCuzBsBgkqhkiG9w0BCQ8xXzBdMAsGCWCGSAFlAwQBKjAL BglghkgBZQMEAQIwCgYIKoZIhvcNAwcwDgYIKoZIhvcNAwICAgCAMA0GCCqGSIb3DQMCAgFA MAcGBSsOAwIHMA0GCCqGSIb3DQMCAgEoMA0GCSqGSIb3DQEBAQUABIIBAJEHKHGwncTtRooT tj58FICeTQoDxpmoqCjkwF7T+tlhZe+C4WYkRiY3wb0DcV5/v0XqV6jkkVWClXctBnO/akWl o/OFwGIy8HYDNQke3TD2ewHhsi6woYVCdZg1ZCSL1I6CNUsp1eWQ/lT8LBguTUpJYz8KO47w KAYe57LShBWLBQNOKLag1PR7MLJjHMV/peYqhKH6KA2IbU20GHNwyYjJOCzPCFS82fpwQdQz Zbo3HwjermBj477wHsYMHFm/oQHLvDzL0pLJyTD1QrSkeGvMHWnE6bJ3F7GD65g/n7hNGnXg S9wLarncGVeYvJhVnLwWUoFpn/7QZNxxEqz72VkAAAAAAAA= --------------ms060003020504020705040100-- --===============1576681174768436676== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline -- Problem reports: https://cygwin.com/problems.html FAQ: https://cygwin.com/faq/ Documentation: https://cygwin.com/docs.html Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple --===============1576681174768436676==--
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |