Open rjoleary opened 3 years ago
Don't use Parse. That is not a validly formated byte-vendor-opts either. It's missing the enterprise number.
Just create that object as &dhcpv6.OptVendorClass{EnterpriseNumber: N, Data: [][]byte{[]byte("PXE UROOT")}}
On Thu, Jul 29, 2021, 19:06 rjoleary @.***> wrote:
Is your feature request related to a problem? Please describe. This is extra diagnosis information to compare u-root DHCP packets from standard DHCP packets. It is already this way for DHCPv4.
Describe the solution you'd like dhcpv6.WithOption(dhcpv6.ParseOptVendorClass([]byte("PXE UROOT")))
Describe alternatives you've considered We can also include BIOS version information from the SMBIOS tables. Perhaps append the env variable $UROOT_VENDOR_CLASS to "PXE_UROOT" so this is configurable.
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/u-root/u-root/issues/2079, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAPG3ET3VZ4KFUORDYYX6S3T2ICJXANCNFSM5BHTB2XQ .
What would be used as the enterprise number? Is there one already for LinuxBoot or Linux foundation?
Is your feature request related to a problem? Please describe. This is extra diagnosis information to compare u-root DHCP packets from standard DHCP packets. It is already this way for DHCPv4.
Describe the solution you'd like
dhcpv6.WithOption(dhcpv6.ParseOptVendorClass([]byte("PXE UROOT")))
Describe alternatives you've considered We can also include BIOS version information from the SMBIOS tables. Perhaps append the env variable
$UROOT_VENDOR_CLASS
to "PXE_UROOT" so this is configurable.