Skip to content

fix: update ip list when retcode=0 - #51

Merged
hack3ric merged 1 commit into
hack3ric:masterfrom
woshiluo:woshiluo/patch-1
Nov 5, 2026
Merged

hack3ric merged 1 commit into
hack3ric:masterfrom
woshiluo:woshiluo/patch-1

Conversation

@woshiluo

@woshiluo woshiluo commented Nov 3, 2026

Copy link
Copy Markdown
Contributor

While using this with a PPP interface, I noticed that the program does not update the IP address for wildcard addresses when a new IP is added to the interface.

I believe this happens because rtnl_recv_addr_change should return 0 on success rather than a negative value. This pull request resolves the issue.

Signed-off-by: Woshiluo Luo <woshiluo.luo@outlook.com>
@hack3ric

hack3ric commented Nov 5, 2026

Copy link
Copy Markdown
Owner

Thanks for catching a 1 year old human error! I apparantly thought it was error handling.

@hack3ric
hack3ric merged commit 585dee0 into hack3ric:master Nov 5, 2026
24 checks passed
@woshiluo
woshiluo deleted the woshiluo/patch-1 branch November 5, 2026 14:32
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