<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div id="appendonsend"></div>
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>From:</b> sathish k <sat98@hotmail.com><br>
<b>Sent:</b> Monday, March 28, 2022 3:02 PM<br>
<b>To:</b> Francis Dupont <fdupont@isc.org><br>
<b>Cc:</b> kea-dev@lists.isc.org <kea-dev@lists.isc.org><br>
<b>Subject:</b> Re: [kea-dev] Vendor Specific Options (Code 17)</font>
<div> </div>
</div>
<div dir="ltr">
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
Hi Francis,</div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
Thanks again for helping , is there a way you can provide a sample config file . here is my config file , the vendor-ids provided is not real ones . i have 2 vendors configured with code 17 8888 and 9999 and each of these has 2 options defined for address
and port . When i use this as per the spec my relay reply comes with the vendor specified last in the sequence (in this case 8888) .</div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
Thanks for your help </div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
"option-data": [
<div> {</div>
<div> "space": "dhcp6",</div>
<div> "name": "vendor-opts",</div>
<div> "code": 17,</div>
<div> "data": 9999 // Do you want me to change this to Hex ??<span style="background-color:rgb(255,255,255); display:inline!important"><span> </span>Tried changing this to Hex but service fails to start with error .</span></div>
<div> },</div>
<div> {</div>
<div> "space": "dhcp6",</div>
<div> "name": "vendor-opts",</div>
<div> "code": 17,</div>
<div> "data": 8888 // Fake VendorID Do you want me to change this to Hex ?? Tried changing this to Hex but service fails to start with error .</div>
<div> },</div>
<div> {</div>
<div> "space": "vendor-9999", </div>
<div> "name": "addr",</div>
<div> "code": 3,</div>
<div> "data": "fd00::11:ff90", //Do you want me to change this to Hex ??</div>
<div> "always-send": true</div>
<div> },</div>
<div> {</div>
<div> "space": "vendor-9999",</div>
<div> "name": "port",</div>
<div> "code": 4,</div>
<div> "data": "11000", // Do you want me to change this to Hex ??</div>
<div> "always-send": true</div>
<div>},</div>
<div> {</div>
<div> "space": "vendor-8888",</div>
<div> "name": "addr1",</div>
<div> "code": 1,</div>
<div> "data": "fdf4::11:ff80",</div>
<div> "always-send": true</div>
<div> },</div>
<div> {</div>
<div> "space": "vendor-8888",</div>
<div> "name": "port1",</div>
<div> "code": 2,</div>
<div> "data": "11000",</div>
<div> "always-send": true</div>
<div> },</div>
<div> {</div>
<div> "space": "dhcp6",</div>
<div> "name": "rapid-commit",</div>
<div> "code": 14,</div>
<div> "data": ""</div>
<div> },</div>
<div> {</div>
<div> "space": "dhcp6",</div>
<div> "name": "serverid",</div>
<div> "code": 2,</div>
<div> "csv-format": false,</div>
<div> "data": "000300060001020311223344"</div>
<div> }</div>
<div> ],</div>
<div> "option-def": [</div>
<div> {</div>
<div> "space": "vendor-9999"</div>
<div> "name": "addr",</div>
<div> "code": 1,</div>
<div> "type": "ipv6-address"</div>
<div> },</div>
<div> {</div>
<div> "space": "vendor-9999",</div>
<div> "name": "port",</div>
<div> "code": 2,</div>
<div> "type": "uint16"</div>
<div> },</div>
<div> {</div>
<div> "space": "vendor-8888"</div>
<div> "name": "addr1",</div>
<div> "code": 3,</div>
<div> "type": "ipv6-address"</div>
<div> },</div>
<div> {</div>
<div> "space": "vendor-8888",</div>
<div> "name": "port1",</div>
<div> "code": 4,</div>
<div> "type": "uint16"</div>
<div> }</div>
],<br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div id="x_appendonsend"></div>
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="x_divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>From:</b> Francis Dupont <fdupont@isc.org><br>
<b>Sent:</b> Tuesday, March 22, 2022 4:28 AM<br>
<b>To:</b> sathish k <sat98@hotmail.com><br>
<b>Cc:</b> Francis Dupont <fdupont@isc.org>; kea-dev@lists.isc.org <kea-dev@lists.isc.org><br>
<b>Subject:</b> Re: [kea-dev] Vendor Specific Options (Code 17)</font>
<div> </div>
</div>
<div class="x_BodyFragment"><font size="2"><span style="font-size:11pt">
<div class="x_PlainText">sathish k writes:<br>
> Appreciate the quick reply , can you confirm my understanding of your re=<br>
> ply is correct<br>
><br>
><br>
> 1. Add multiple vendors in config file as usual<br>
> 2. but use the Hook to pkt_send6 to compile the options from config file<br>
> and insert to final packet ?<br>
<br>
=> I thought use a sheat of paper to compute the wanted value of the<br>
vendor option with multiple vendors and insert the hexadecimal result<br>
in the configuration. Now you can do it using a hook and some code<br>
merging (v4) or pushing (v6) multiple vendor options with one vendor<br>
per option from the configuration...<br>
<br>
Thanks<br>
<br>
Francis Dupont <fdupont@isc.org><br>
<br>
PS: the option collection type is a multimap so the code supports<br>
multiple options with the same type/code as required for the v6 vendor<br>
option 17. Now it is the only place in the code where this feature is<br>
*currently* supported...<br>
</div>
</span></font></div>
</div>
</body>
</html>