Skip to content

Conversation

@reynir
Copy link
Member

@reynir reynir commented Dec 15, 2025

This implements https://www.rfc-editor.org/rfc/rfc3925.html except Vi_vendor_info leaves the sub options unparsed (they must be dhcp-style TLVs; this implementation leave them as an opaque string). I may implement that as well.

I wrote a test from my understanding of the option (and an incompatible sample). To make the test work better I had to change the semantics of options_of_buf so that it is not responsible for skipping the BOOTP packet. This is also more in line with the behavior of buf_of_options. This is a breaking change, but I have found no outside users of that underdocumented function. The test is very synthetic, and more tests would be nice. I haven't otherwise tested it.

The VI vendor info still treats the option data opaquely instead of as a
sequence of dhcp-like TLV.
@reynir reynir force-pushed the vendor-identifying branch from 1087c8b to 02da237 Compare December 15, 2025 14:44
@reynir reynir marked this pull request as ready for review January 6, 2026 09:14
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