Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

miniupnpc: Update to 2.2.8 (new major 18) #97139

Merged
merged 1 commit into from
Sep 23, 2024

Conversation

akien-mga
Copy link
Member

Keep support for major 17 by using a version check for the changed API.

Fixes #93907.

Verified

This commit was created on github.com and signed with GitHub’s verified signature.
Keep support for major 17 by using a version check for the changed API.

Fixes godotengine#93907.
@akien-mga akien-mga added bug enhancement topic:thirdparty cherrypick:4.3 Considered for cherry-picking into a future 4.3.x release labels Sep 18, 2024
@akien-mga akien-mga added this to the 4.4 milestone Sep 18, 2024
@akien-mga akien-mga requested review from a team as code owners September 18, 2024 09:51
@@ -131,7 +131,11 @@ void UPNP::parse_igd(Ref<UPNPDevice> dev, UPNPDev *devlist) {
GetUPNPUrls(&urls, &data, dev->get_description_url().utf8().get_data(), 0);

char addr[16];
#if MINIUPNPC_API_VERSION >= 18
int i = UPNP_GetValidIGD(devlist, &urls, &data, (char *)&addr, 16, nullptr, 0);
Copy link
Member Author

Choose a reason for hiding this comment

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

The new prototype is:

UPNP_GetValidIGD(struct UPNPDev * devlist,
                 struct UPNPUrls * urls,
                 struct IGDdatas * data,
                 char * lanaddr, int lanaddrlen,
                 char * wanaddr, int wanaddrlen);

We should evaluate whether we want to make use of the new wanaddr stuff @mhilbrunner

@akien-mga akien-mga merged commit 833be1f into godotengine:master Sep 23, 2024
20 checks passed
@akien-mga akien-mga deleted the miniupnpc-2.2.8 branch September 23, 2024 10:35
@akien-mga akien-mga added the cherrypick:4.2 Considered for cherry-picking into a future 4.2.x release label Sep 23, 2024
twrightsman added a commit to twrightsman/godot that referenced this pull request Dec 14, 2024
Backports godotengine#97139 without
bumping the embedded miniupnpc library.

Co-authored-by: Rémi Verschelde <rverschelde@gmail.com>
@akien-mga
Copy link
Member Author

akien-mga commented Jan 30, 2025

Cherry-picked for 4.3.1.

Doesn't cherry-pick cleanly on 4.2, which would require backporting other intermediate miniupnpc updates. The main rationale for this PR being Linux distros building against their system provided miniupnpc, this doesn't seem critical for the old 4.2 branch.

@akien-mga akien-mga removed cherrypick:4.2 Considered for cherry-picking into a future 4.2.x release cherrypick:4.3 Considered for cherry-picking into a future 4.3.x release labels Jan 30, 2025
Relintai pushed a commit to Relintai/pandemonium_engine that referenced this pull request Feb 3, 2025
Backports godotengine/godot#97139 without
bumping the embedded miniupnpc library.

Co-authored-by: Rémi Verschelde <rverschelde@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Error compiling against system miniupnpc after major bump to 18 (API breakage)
1 participant