Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 10 Jan 2025 20:04:46 +0000
From:      "glebius (Gleb Smirnoff)" <phabric-noreply@FreeBSD.org>
To:        Phabricator <phabric-noreply@FreeBSD.org>
Cc:        freebsd-net@freebsd.org
Subject:   [Differential] D48204: Add IPv6 support for address parsing and unparsing in ng_ksocket.
Message-ID:  <e448832478bb988307b138da53b342fd@localhost.localdomain>
In-Reply-To: <differential-rev-PHID-DREV-3vpvqdpsy6sqgfqvqi4a-req@reviews.freebsd.org>
References:  <differential-rev-PHID-DREV-3vpvqdpsy6sqgfqvqi4a-req@reviews.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help

--b1_e448832478bb988307b138da53b342fd
Content-Type: text/plain; charset = "utf-8"
Content-Transfer-Encoding: base64

VGhpcyByZXZpc2lvbiB3YXMgbm90IGFjY2VwdGVkIHdoZW4gaXQgbGFuZGVkOyBpdCBsYW5kZWQg
aW4gc3RhdGUgIk5lZWRzIFJldmlldyIuClRoaXMgcmV2aXNpb24gd2FzIGF1dG9tYXRpY2FsbHkg
dXBkYXRlZCB0byByZWZsZWN0IHRoZSBjb21taXR0ZWQgY2hhbmdlcy4KQ2xvc2VkIGJ5IGNvbW1p
dCByRzkyMzRhNTA3NTJjZDogbmdfa3NvY2tldDogYWRkIElQdjYgc3VwcG9ydCBmb3IgYWRkcmVz
cyBwYXJzaW5nIGFuZCB1bnBhcnNpbmcgKGF1dGhvcmVkIGJ5IHAubW91c2F2aXphZGVoX3Byb3Rv
bm1haWwuY29tLCBjb21taXR0ZWQgYnkgZ2xlYml1cykuCgpSRVBPU0lUT1JZCiAgckcgRnJlZUJT
RCBzcmMgcmVwb3NpdG9yeQoKQ0hBTkdFUyBTSU5DRSBMQVNUIFVQREFURQogIGh0dHBzOi8vcmV2
aWV3cy5mcmVlYnNkLm9yZy9ENDgyMDQ/dnM9MTQ5MDM5JmlkPTE0OTA5MwoKQ0hBTkdFUyBTSU5D
RSBMQVNUIEFDVElPTgogIGh0dHBzOi8vcmV2aWV3cy5mcmVlYnNkLm9yZy9ENDgyMDQvbmV3LwoK
UkVWSVNJT04gREVUQUlMCiAgaHR0cHM6Ly9yZXZpZXdzLmZyZWVic2Qub3JnL0Q0ODIwNAoKQUZG
RUNURUQgRklMRVMKICBzaGFyZS9tYW4vbWFuNC9uZ19rc29ja2V0LjQKICBzeXMvbmV0Z3JhcGgv
bmdfa3NvY2tldC5jCgpFTUFJTCBQUkVGRVJFTkNFUwogIGh0dHBzOi8vcmV2aWV3cy5mcmVlYnNk
Lm9yZy9zZXR0aW5ncy9wYW5lbC9lbWFpbHByZWZlcmVuY2VzLwoKVG86IHAubW91c2F2aXphZGVo
X3Byb3Rvbm1haWwuY29tLCAjbWFucGFnZXMsICNuZXR3b3JrCkNjOiBpbXAsIG5jLCBkb25uZXIs
IGZyZWVic2QtbmV0LWxpc3QsIG1lbGlmYXJvLCBnbGViaXVzLCAjc3JjX2NvbW1pdHRlcnMsIHAu
bW91c2F2aXphZGVoX3Byb3Rvbm1haWwuY29tLCBnaGlzbGFpbl9zbWFydGl4LmxsYywga29ucmFk
LmtyZWNpd2lsa19rb3JiYW5rLnBsLCBjbWlsbGVyX25ldGFwcC5jb20sIHJhamVzaGFzcCwgbW1h
Y3ksIGtwcmF2ZWVuLmxrbWxfZ21haWwuY29tLCBjaHJpc19jcmV0YWZvcmNlLmdyLCBzaW1vbnZl
bGxhX2dtYWlsLmNvbSwgbm92aWNlX3RlY2hpZS5jb20sIGhlcmJlcnRfbWFpbGJveC5vcmcsIHRv
bW1pLnBlcm5pbGFfaWtpLmZpLCB6ZWMsIGRlbHBoaWosIHBzdGVmCg==

--b1_e448832478bb988307b138da53b342fd
Content-Type: text/x-patch; charset=utf-8; name="D48204.149093.patch"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="D48204.149093.patch"

ZGlmZiAtLWdpdCBhL3N5cy9uZXRncmFwaC9uZ19rc29ja2V0LmMgYi9zeXMvbmV0Z3JhcGgvbmdf
a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bWJlci4KK3RoZSBhZGRyZXNzIGlzIGFuIElQdjQgYWRkcmVzcyBmb2xsb3dlZCBieSBhbiBv
cHRpb25hbCBjb2xvbiBhbmQgcG9ydCBudW1iZXIuCitGb3IKKy5EdiBQRl9JTkVUNiAsCit0aGUg
YWRkcmVzcyBpcyBhbiBJUHY2IGFkZHJlc3MgZW5jbG9zZWQgaW4gc3F1YXJlIGJyYWNrZXRzIGZv
bGxvd2VkCitieSBhbiBvcHRpb25hbCBjb2xvbiBhbmQgcG9ydCBudW1iZXIuCiBGb3IKIC5EdiBQ
Rl9MT0NBTCAsCiB0aGUgYWRkcmVzcyBpcyB0aGUgcGF0aG5hbWUgYXMgYSBkb3VibHkgcXVvdGVk
IHN0cmluZy4KQEAgLTIwMiw2ICsyMDcsOCBAQAogbG9jYWwvIi90bXAvZm9vLnNvY2tldCIKIC5J
dCBEdiBQRl9JTkVUCiBpbmV0LzE5Mi4xNjguMS4xOjEyMzQKKy5JdCBEdiBQRl9JTkVUNgoraW5l
dDYvWzIwMDE6OjFdOjEyMzQKIC5JdCBPdGhlcgogLkR2ICJcJnsgZmFtaWx5PTE2IGxlbj0xNiBk
YXRhPVsweDcwIDB4MDAgMHgwMSAweDIzXSBcJn0iCiAuRWwKCg==


--b1_e448832478bb988307b138da53b342fd--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?e448832478bb988307b138da53b342fd>