Hi all,

I am fiddling around with ISC and Kea, specifically with the Option 125 and its 
sub-options. I’m trying to add two sub-options 193, to send two IP-addresses.
In ISC I can do the following:

        option space VI_OPTION code width 4 length width 1 hash size 1;
        option VI_OPTION.option code 3561 = array of{unsigned integer 8, 
unsigned integer 8, unsigned integer 8, unsigned integer 8, ip-address};
        option space VI_VSO code width 1 length width 1 hash size 4;
        option VI_VSO code 125 = encapsulate VI_OPTION;

And then construct the Option:
       vendor-option-space VI_VSO;
       vendor-option-space VI_OPTION;
       option VI_OPTION.option 193 6 16 4 w.x.y.z;
                                                 193 6 16 4 v.w.x.y;

This will look like the following in wireshark:


I cannot reproduce this behaviour in Kea. It seems if I just add two 
sub.-options 193, it will just take the last one. Here is my config:

  "option-def": [
    {
      "name": "test193",
      "code": 193,
      "space": "vendor-3561",
      "type": "record",
      "array": false,
      //"record-types": "uint8, uint8, ipv4-address, ipv4-address",
      "record-types": "uint8, uint8, ipv4-address",
      "encapsulate": "",
    },
  ],

Now the construction of the options in the shared network:
          "option-data": [
            {
              "name": "vivso-suboptions",
              "data": "3561",
              "always-send": true
            },
            {
              "data": "16, 4, w.x.y.z",
              "code": 193,
              "space": "vendor-3561",
              "csv-format": true,
              "always-send": true
            },
            {
              "data": "16, 4,v.w.x.y",
              "code": 193,
              "space": "vendor-3561",
              "csv-format": true,
              "always-send": true
            },
            {
              "name": "routers",
              "data": „a.b.c.d"
            },
            {
                "name": "ntp-servers",
                "data" : „b.c.d.e, c.d.e.f"
            }
          ],

I tried various ways, for example adding a second IP address to the 
record-types field. I also tried to just send a hex-string, but this also did 
not work.
Can anybody help me? if this is even possible in Kea?
According to TR-301 Issue 2 Section 16.5.2.2 it should be possible to add „at 
least one instance of SuboptionNN-code = 193 in all PMA Offer messages“.

Best regards,
Bernd
-- 
ISC funds the development of this software with paid support subscriptions. 
Contact us at https://www.isc.org/contact/ for more information.

To unsubscribe visit https://lists.isc.org/mailman/listinfo/kea-users.

Kea-users mailing list
Kea-users@lists.isc.org
https://lists.isc.org/mailman/listinfo/kea-users

Reply via email to