Skip to content

Conversation

@strseb
Copy link
Collaborator

@strseb strseb commented Nov 4, 2025

Description

We see in the ticket the following logs during activation:

[18.09.2025 07:09:52.238] (WireguardUtilsWindows) Error: Failed to assign ivp6: CreateUnicastIpAddressEntry failed with error :  1168
[18.09.2025 07:09:52.238] (WireguardUtilsWindows) Error: Failed setIPv6AddressAndMask
[18.09.2025 07:09:52.238] (WireguardUtilsWindows) Error: Failure during Adapter Creation, Closing Device

1168 Means that the row matches an adapter that does not exist.

-> We set the ipv4 explicitly using it's interface index, so let's do that lookup once and use it for both addresses. This way we should assert before that it exists.
-> I also noticed the row was incorrectly setting it's address type, so maybe that trips it over?

@strseb strseb changed the title Basti/welp VPN-6293 - Maybe fix ip assignment c: Nov 4, 2025
@strseb strseb requested review from artfwo and mcleinman November 4, 2025 14:21
Copy link
Collaborator

@mcleinman mcleinman left a comment

Choose a reason for hiding this comment

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

Thanks!

/**
* @brief Assigns an ipv4 address to a network device with a given LUID
*
* @param luid - LUID of the Adapter
Copy link
Collaborator

Choose a reason for hiding this comment

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

Update this

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.

3 participants