<div dir="ltr"><div><br>Hello,<br><br>I am using dhcpd 4.3.5. <br>I have set up my server to return vendor specific options for a particular enterprise number.<br>The server is returning these vendor specific options even if the client is requesting Vendor Specific Information - Option 17 - for a different enterprise number passed via Vendor Class - Option 16.<br>Has anyone faced this issue or is it a known issue?<br><br>On looking into the code, found the following in common/tables.c:<br>#if 0<br>        /* XXX: user-class contents are of the form "StA" where the<br>         * integer describes the length of the text field.  We don't have<br>         * an atom for pre-determined-length octet strings yet, so we<br>         * can't quite do these two.<br>         */<br>        { "user-class", "X",                    &dhcpv6_universe, 15, 1 },<br>        { "vendor-class", "X",                  &dhcpv6_universe, 16, 1 },<br>#endif<br><br>It looks like vendor-class support is not present, which can be the reason for not having the 1:1 associaton between the class and the options.<br>The latest code dhcp-4.4.1 also has the above code commented. <br>Could you confirm that this support of not returning vendor options for specific enterprise numbers is because the above snippet is commented?<br>Any idea when this support will be added?</div><div><br></div><div>Reference Config Files:</div><div>Client Config<br>------------------------------------------------<br>hostname<br>clientid<br>require dhcp_server_identifier<br>option interface_mtu<br>option broadcast_address<br>option dhcp6_sol_max_rt<br>option dhcp6_name_servers<br>option dhcp6_domain_search<br>option dhcp6_sntp_servers<br>option dhcp6_vivso<br>vendclass 4118<br>noipv4ll<br>lastlease<br>ipv6ra_noautoconf<br><br>Server Config<br>-------------------------------------------------<br>default-lease-time 2592000;<br>preferred-lifetime 604800;<br>option dhcp-renewal-time 3600;<br>option dhcp-rebinding-time 7200;<br>allow leasequery;<br>option dhcp6.name-servers 2606:4700:4700::1111,2001:4201:0:50::148;<br>option dhcp6.domain-search "<a href="http://test.example.com">test.example.com</a>","<a href="http://example.com">example.com</a>";<br>option dhcp6.sntp-servers 2607:fe70:0:16::a,2610:20:6f97:97::6;<br>option dhcp6.info-refresh-time 21600;<br><br>option space abcd code width 2 length width 2 hash size 100;<br>option vsio.abcd code 4231 = encapsulate abcd;<br>option abcd.vendopt1 code 1 = text;<br><br>subnet6 2001:4201:0:50::/64 {<br>       range6 2001:4201:0:50::2 2001:4201:0:50::149;<br> option abcd.vendopt1 "HelloWorld"; <br>}<br><br>In the above, the vendor option set for enterprise number 4231 is sent for vendclass 4118.</div><div><br>Thanks,<br>Shweta<br></div></div>