}
};
- // Next, subnet configured options.
- if (ctx.subnet_ && !ctx.subnet_->getCfgOption()->empty()) {
- co_list.push_back(ctx.subnet_->getCfgOption());
+ if (ctx.subnet_) {
+ // Next, subnet configured options.
+ if (!ctx.subnet_->getCfgOption()->empty()) {
+ co_list.push_back(ctx.subnet_->getCfgOption());
+ }
+
+ // Then, shared network specific options.
+ SharedNetwork6Ptr network;
+ ctx.subnet_->getSharedNetwork(network);
+ if (network && !network->getCfgOption()->empty()) {
+ co_list.push_back(network->getCfgOption());
+ }
}
// Each class in the incoming packet
client3.setInterface("eth0");
// Request an address from the subnet outside of the shared network.
- ASSERT_NO_THROW(client2.requestAddress(0xabca, IOAddress("3000::1")));
+ ASSERT_NO_THROW(client3.requestAddress(0xabca, IOAddress("3000::1")));
// Request all configured options.
ASSERT_NO_THROW(client3.requestOption(D6O_NIS_SERVERS));