Skip to content

ddclient: skip deprecated ipv6#5253

Open
gewuerz-gurke wants to merge 2 commits intoopnsense:masterfrom
gewuerz-gurke:master
Open

ddclient: skip deprecated ipv6#5253
gewuerz-gurke wants to merge 2 commits intoopnsense:masterfrom
gewuerz-gurke:master

Conversation

@gewuerz-gurke
Copy link

Problem:
With "check ip method" it is possible that the interface address is set to deprecated. Currently it is possible that a ip address change is not recognized. Because the deprecated ip is the same as last ip. This delays the ip update till the deprecated entry is removed after the valid time.

	inet6 2a01:XXXX:XXXX:XXXX:XXXX:XXXX:XXXX:XXXX prefixlen 64 deprecated autoconf pltime 0 vltime 7197
	inet6 2a01:XXXX:XXXX:XXXX:XXXX:XXXX:XXXX:XXXY prefixlen 64 autoconf pltime 3600 vltime 7200

Solution:
add check that the line does not contain deprecated

skip deprecated ipv6 to avoid being stuck to an old address
@Monviech Monviech requested a review from fichtner February 24, 2026 09:46
if line.startswith('\tinet'):
parts = line.split()
if (parts[0] == 'inet' and service == 'if') or (parts[0] == 'inet6' and service == 'if6'):
if (parts[0] == 'inet' and service == 'if') or (parts[0] == 'inet6' and service == 'if6' and 'deprecated' not in line):
Copy link
Member

Choose a reason for hiding this comment

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

skipping works as long as there is another address that's not deprecated. Although it's supposed to not be used in some cases it's the best address there is.

Copy link
Author

Choose a reason for hiding this comment

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

so you mean keep a deprecated address as long as there is no valid address?

Copy link
Member

Choose a reason for hiding this comment

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

yes

@gewuerz-gurke
Copy link
Author

updated that a deprecated address is returned in case no valid is found. Hope it is OK that it is the last deprecated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants