Skip to content

sysdeps/zinnia: Implement getifaddrs and InetConfigured#1805

Merged
no92 merged 2 commits into
managarm:masterfrom
zinnia-os:zinnia-network
Jun 21, 2026
Merged

sysdeps/zinnia: Implement getifaddrs and InetConfigured#1805
no92 merged 2 commits into
managarm:masterfrom
zinnia-os:zinnia-network

Conversation

@marv7000

Copy link
Copy Markdown
Contributor

No description provided.

Comment thread sysdeps/zinnia/generic/ifaddrs.cpp Outdated
@marv7000 marv7000 requested a review from no92 June 21, 2026 13:51
Comment thread sysdeps/zinnia/generic/posix.cpp Outdated
*ipv4 = false;
if (ipv6)
*ipv6 = false;
#

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is this hash?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

misclick

Comment thread sysdeps/zinnia/generic/ifaddrs.cpp Outdated
if (cfg->sin_family == AF_INET && cfg->sin_addr.s_addr != 0) {
struct ifaddrs *in =
alloc_node(name, 2 * sizeof(struct sockaddr_in));
if (in) {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't this free the existing list on failure? Currently, this will just leak it.

@no92 no92 merged commit 6c1d0d6 into managarm:master Jun 21, 2026
49 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants