Dhcpv6 vendor-class-data

Hello,

I got openwrt to send a dhcv6 request with an enterprise number using option 16. Like so

config interface wan6
             option device 'eth1'
             option proto 'dhcpv6'
             option vendorclass '990890'

990890 is just some random number.

Now i want to also send the optional vendor class data attribute which should contain a string of characters. Is it possible with openwrt?

I guess the question is also am i using vendorclass the right way? How should one input information there?

I would like to say for example
Enterprise id 9
Vendor class data routerdevice1

Regards

Yes, you literally demonstrated how...then asked...perhaps I'm missing something?

Here the same thing in LuCI:

screen368

I guess I should ask...

  • What information is being configured with this...or
  • What do you plant to configure with this?

(I would assume you have that information if you can provide us this - and could simply add it. :man_shrugging: )

From rfc


       0                   1                   2                   3
       0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
      |      OPTION_VENDOR_CLASS      |           option-len          |
      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
      |                       enterprise-number                       |
      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
      .                                                               .
      .                       vendor-class-data                       .
      .                             . . .                             .
      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

I want to send an enterprise number and a vendor-class-data.

Enterprise number is unsigned integer

Vendor-class-data is

+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-...-+-+-+-+-+-+-+
      |       vendor-class-len        |          opaque-data          |
      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-...-+-+-+-+-+-+-+

I want to put a string of ASCII characters in opaque data.

How would i accomplish that with openwrt's option vendorclass ' ' ? since it only lets me put integer numbers there.
Or is there another config option i should be using?

So something that would amount to this in wireshark

Vendor Class
         Option: Vendor Class (16)
         Length: somenumber
         Enterprise ID: ciscosystems (9)
         vendor-class-data: routerdevice1

I guess you didnt understand.

Why do you want to send it?

We already made clear you simply enter the data, so if you're having an issue or don't want to explain the system that needs these parameters set - there not more we could suggest.