<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body style="overflow-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;">Hi all,<div><br></div><div>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.</div><div>In ISC I can do the following:</div><div><span style="font-size: 10pt; caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); font-family: Calibri, sans-serif;"><br></span></div><div><span class="Apple-tab-span" style="white-space: pre;">      </span>option space VI_OPTION code width 4 length width 1 hash size 1;</div><div><p class="MsoNormal" style="margin: 0cm 0cm 0cm 36pt; font-size: 10pt; font-family: Calibri, sans-serif; caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);"><span></span></p><span><span class="Apple-tab-span" style="white-space:pre">   </span>option VI_OPTION.option code 3561 = array of{unsigned integer 8, unsigned integer 8, unsigned integer 8, unsigned integer 8, ip-address};</span></div><div><span><span class="Apple-tab-span" style="white-space:pre">   </span>option space VI_VSO code width 1 length width 1 hash size 4;</span></div><div><span class="Apple-tab-span" style="white-space: pre;">  </span>option VI_VSO code 125 = encapsulate VI_OPTION;</div><span><div><span><br></span></div>And then construct the Option:<br></span><span>       vendor-option-space VI_VSO;<br>       vendor-option-space VI_OPTION;<br>       option VI_OPTION.option 193 6 16 4 w.x.y.z;<br>                                                 193 6 16 4 v.w.x.y;</span><div></div><div><span><br></span></div><div><span>This will look like the following in wireshark:</span></div><div><img alt="PastedGraphic-1.png" src="cid:DF36ED1D-6EE6-4477-8823-33175DB1CB8D"></div><div><br></div><div>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:</div><div><br></div><div><div>  "option-def": [</div><div>    {</div><div>      "name": "test193",</div><div>      "code": 193,</div><div>      "space": "vendor-3561",</div><div>      "type": "record",</div><div>      "array": false,</div><div>      //"record-types": "uint8, uint8, ipv4-address, ipv4-address",</div><div>      "record-types": "uint8, uint8, ipv4-address",</div><div>      "encapsulate": "",</div><div>    },</div><div>  ],</div></div><div><br></div><div>Now the construction of the options in the shared network:</div><div><div>          "option-data": [</div><div>            {</div><div>              "name": "vivso-suboptions",</div><div>              "data": "3561",</div><div>              "always-send": true</div><div>            },</div><div>            {</div><div>              "data": "16, 4, w.x.y.z",</div><div>              "code": 193,</div><div>              "space": "vendor-3561",</div><div>              "csv-format": true,</div><div>              "always-send": true</div><div>            },</div><div><div style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);">            {</div><div style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);">              "data": "16, 4,v.w.x.y",</div><div style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);">              "code": 193,</div><div style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);">              "space": "vendor-3561",</div><div style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);">              "csv-format": true,</div><div style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);">              "always-send": true</div><div style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);">            },</div></div><div>            {</div><div>              "name": "routers",</div><div>              "data": „a.b.c.d"</div><div>            },</div><div>            {</div><div>                "name": "ntp-servers",</div><div>                "data" : „b.c.d.e, c.d.e.f"</div><div>            }</div><div>          ],</div></div><div><br></div><div>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.</div><div>Can anybody help me? if this is even possible in Kea?</div><span>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“.</span><div></div><div><span><br></span></div><div>Best regards,</div><div>Bernd</div></body></html>