[Bug 1730] nft does not handle IPv6 addresses with embedded IPv4 addresses
bugzilla-daemon at netfilter.org
bugzilla-daemon at netfilter.org
Mon Jan 8 11:11:37 CET 2024
https://bugzilla.netfilter.org/show_bug.cgi?id=1730
--- Comment #4 from Pablo Neira Ayuso <pablo at netfilter.org> ---
Cursory look at inet_pton()
static const char *
inet_ntop6 (const u_char *src, char *dst, socklen_t size)
{
/*
* Note that int32_t and int16_t need only be "at least" large enough
* to contain a value of the specified size. On some systems, like
* Crays, there is no such thing as an integer variable with 16 bits.
* Keep this in mind if you think this function should have been coded
* to use pointer overlays. All the world's not a VAX.
*/
char tmp[sizeof "ffff:ffff:ffff:ffff:ffff:ffff:255.255.255.255"], *tp;
shows that the intention is to support for embedded IPv4 notation as an IPv6
suffix.
--
You are receiving this mail because:
You are watching all bug changes.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.netfilter.org/pipermail/netfilter-buglog/attachments/20240108/94b60e78/attachment.html>
More information about the netfilter-buglog
mailing list