]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[4523] Added missing appendRequestedVendorOptions()
authorFrancis Dupont <fdupont@isc.org>
Sat, 25 Jun 2016 18:50:32 +0000 (20:50 +0200)
committerFrancis Dupont <fdupont@isc.org>
Sat, 25 Jun 2016 18:50:32 +0000 (20:50 +0200)
src/bin/dhcp6/dhcp6_srv.cc

index 0948cb1e2e1749fdedff35284ea515d0267fafff..ed10bc2bccb5cd09671b4b53a7a10f8a85cb7420 100644 (file)
@@ -2327,6 +2327,7 @@ Dhcpv6Srv::processRenew(const Pkt6Ptr& renew) {
     buildCfgOptionList(renew, ctx, co_list);
     appendDefaultOptions(renew, reply, co_list);
     appendRequestedOptions(renew, reply, co_list);
+    appendRequestedVendorOptions(renew, reply, ctx, co_list);
 
     processClientFqdn(renew, reply, ctx);
     extendLeases(renew, reply, ctx);
@@ -2352,6 +2353,7 @@ Dhcpv6Srv::processRebind(const Pkt6Ptr& rebind) {
     buildCfgOptionList(rebind, ctx, co_list);
     appendDefaultOptions(rebind, reply, co_list);
     appendRequestedOptions(rebind, reply, co_list);
+    appendRequestedVendorOptions(rebind, reply, ctx, co_list);
 
     processClientFqdn(rebind, reply, ctx);
     extendLeases(rebind, reply, ctx);
@@ -2385,6 +2387,7 @@ Dhcpv6Srv::processConfirm(const Pkt6Ptr& confirm) {
     buildCfgOptionList(confirm, ctx, co_list);
     appendDefaultOptions(confirm, reply, co_list);
     appendRequestedOptions(confirm, reply, co_list);
+    appendRequestedVendorOptions(confirm, reply, ctx, co_list);
     // Indicates if at least one address has been verified. If no addresses
     // are verified it means that the client has sent no IA_NA options
     // or no IAAddr options and that client's message has to be discarded.
@@ -2784,6 +2787,9 @@ Dhcpv6Srv::processInfRequest(const Pkt6Ptr& inf_request) {
     // Try to assign options that were requested by the client.
     appendRequestedOptions(inf_request, reply, co_list);
 
+    // Try to assigne vendor options that were requested by the client.
+    appendRequestedVendorOptions(inf_request, reply, ctx, co_list);
+
     return (reply);
 }