Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OpenXG-SMF
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenXG
OpenXG-SMF
Commits
9b2e3659
Commit
9b2e3659
authored
Oct 21, 2022
by
Tien Thinh NGUYEN
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Disable Secondary DNS
parent
610acd8e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
45 additions
and
45 deletions
+45
-45
src/smf_app/smf_pco.cpp
src/smf_app/smf_pco.cpp
+45
-45
No files found.
src/smf_app/smf_pco.cpp
View file @
9b2e3659
...
@@ -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:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment