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

Increase max IPv4 clientid. #442

Merged
merged 2 commits into from
Feb 12, 2025
Merged

Conversation

gnaaman-dn
Copy link
Contributor

Remove arbitrary limit, raising to the maximum representable by uint8

As discussed in #435

Remove arbitrary limit, raising to the maximum representable by uint8
All DHCP options have a limit of 255 bytes, so just define that
rather than each option we want to parse.
Only the hostname option is NUL terminated, the others store an
extra leading byte to state the data length.
Process the to the size of the storage, not a predifined length
incase we change it again in the future.

More for NetworkConfiguration#435.
Note that for parse_hwaddr, we set the first byte to zero if
we cannot process arg as a hardware address to indicate that
the data should be treated as a string.
@rsmarples rsmarples merged commit 7e82f1c into NetworkConfiguration:master Feb 12, 2025
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