Commit 9b2e3659 authored by Tien Thinh NGUYEN's avatar Tien Thinh NGUYEN

Disable Secondary DNS

parent 610acd8e
...@@ -197,7 +197,7 @@ int smf_app::process_pco_request_ipcp( ...@@ -197,7 +197,7 @@ int smf_app::process_pco_request_ipcp(
* returning the IP address of a valid DNS server. * returning the IP address of a valid DNS server.
* By default, no secondary DNS address is provided. * By default, no secondary DNS address is provided.
*/ */
Logger::smf_app().debug( /* Logger::smf_app().debug(
"PCO: Protocol identifier IPCP option " "PCO: Protocol identifier IPCP option "
"SECONDARY_DNS_SERVER_IP_ADDRESS length %u", "SECONDARY_DNS_SERVER_IP_ADDRESS length %u",
ipcp_req_option_length); ipcp_req_option_length);
...@@ -210,9 +210,8 @@ int smf_app::process_pco_request_ipcp( ...@@ -210,9 +210,8 @@ int smf_app::process_pco_request_ipcp(
<< 16) | << 16) |
(((uint32_t) poc_id->protocol_id_contents.at(pco_in_index + 4)) (((uint32_t) poc_id->protocol_id_contents.at(pco_in_index + 4))
<< 8) | << 8) |
(((uint32_t) poc_id->protocol_id_contents.at(pco_in_index + 5)))); (((uint32_t) poc_id->protocol_id_contents.at(pco_in_index +
Logger::smf_app().debug( 5)))); Logger::smf_app().debug( "PCO: Protocol identifier IPCP option "
"PCO: Protocol identifier IPCP option "
"SECONDARY_DNS_SERVER_IP_ADDRESS ipcp_dns_sec_ipv4_addr 0x%x", "SECONDARY_DNS_SERVER_IP_ADDRESS ipcp_dns_sec_ipv4_addr 0x%x",
ipcp_dns_sec_ipv4_addr); ipcp_dns_sec_ipv4_addr);
...@@ -229,8 +228,8 @@ int smf_app::process_pco_request_ipcp( ...@@ -229,8 +228,8 @@ int smf_app::process_pco_request_ipcp(
Logger::smf_app().debug( Logger::smf_app().debug(
"PCO: Protocol identifier IPCP option " "PCO: Protocol identifier IPCP option "
"SECONDARY_DNS_SERVER_IP_ADDRESS ipcp_out_dns_sec_ipv4_addr 0x%x", "SECONDARY_DNS_SERVER_IP_ADDRESS ipcp_out_dns_sec_ipv4_addr
ipcp_out_dns_sec_ipv4_addr); 0x%x", ipcp_out_dns_sec_ipv4_addr);
} }
uint8_t ids[6] = {0}; uint8_t ids[6] = {0};
ids[0] = IPCP_OPTION_SECONDARY_DNS_SERVER_IP_ADDRESS; ids[0] = IPCP_OPTION_SECONDARY_DNS_SERVER_IP_ADDRESS;
...@@ -242,6 +241,7 @@ int smf_app::process_pco_request_ipcp( ...@@ -242,6 +241,7 @@ int smf_app::process_pco_request_ipcp(
ipcp_out_length += 6; ipcp_out_length += 6;
std::string tmp_s((const char*) &ids[0], 6); std::string tmp_s((const char*) &ids[0], 6);
poc_id_resp.protocol_id_contents.append(tmp_s); poc_id_resp.protocol_id_contents.append(tmp_s);
*/
} break; } break;
default: default:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment