Skip to content

Fix getprotobyname missing on Android preventing use#470

Open
Paliak wants to merge 2 commits into
schweikert:developfrom
Paliak:fix-getprotobyname-android
Open

Fix getprotobyname missing on Android preventing use#470
Paliak wants to merge 2 commits into
schweikert:developfrom
Paliak:fix-getprotobyname-android

Conversation

@Paliak
Copy link
Copy Markdown

@Paliak Paliak commented May 17, 2026

getprotobyname is stubbed out on Android causing crash_and_burn to be called. This commit removes the ICMP support check when compiling for Android and adds a configuration option to compile without getprotobyname check.

getprotobyname is stubbed out on Android causing crash_and_burn to be
called. This commit removes the icmp support check when compiling for
Android and adds a configuration option to compile without the check.

Signed-off-by: Paliak <[email protected]>
Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request introduces a configuration option to disable the use of getprotobyname and switches to using hardcoded protocol constants (IPPROTO_ICMP and IPPROTO_ICMPV6) for socket initialization. This change improves compatibility with environments like Android where these lookups may fail. A review comment identifies formatting issues in src/socket6.c, specifically the use of tabs instead of spaces and a minor syntax typo in an if condition.

Comment thread src/socket6.c Outdated
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
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.

1 participant