summaryrefslogtreecommitdiff
path: root/test/regression/ppp_test
diff options
context:
space:
mode:
Diffstat (limited to 'test/regression/ppp_test')
-rw-r--r--test/regression/ppp_test/netx_ppp_IPCP_abnormal_packet_test.c11
-rw-r--r--test/regression/ppp_test/netx_ppp_IPCP_nak_test.c11
-rw-r--r--test/regression/ppp_test/netx_ppp_IPCP_retransmit_test.c11
-rw-r--r--test/regression/ppp_test/netx_ppp_IPCP_timeout.c11
-rw-r--r--test/regression/ppp_test/netx_ppp_LCP_invalid_packet_test.c11
-rw-r--r--test/regression/ppp_test/netx_ppp_LCP_timeout.c11
-rw-r--r--test/regression/ppp_test/netx_ppp_PAP_bad_password_test.c11
-rw-r--r--test/regression/ppp_test/netx_ppp_PAP_bad_username_test.c11
-rw-r--r--test/regression/ppp_test/netx_ppp_acfc_option_test.c11
-rw-r--r--test/regression/ppp_test/netx_ppp_chap_bad_secret_failed_retry_test.c11
-rw-r--r--test/regression/ppp_test/netx_ppp_chap_bad_secret_passed_on_retry_test.c11
-rw-r--r--test/regression/ppp_test/netx_ppp_check_boundary_test.c11
-rw-r--r--test/regression/ppp_test/netx_ppp_pap_basic_test.c11
-rw-r--r--test/regression/ppp_test/netx_ppp_pap_null_name_password_test.c11
-rw-r--r--test/regression/ppp_test/netx_ppp_pfc_option_test.c11
-rw-r--r--test/regression/ppp_test/netx_ppp_request_dns_server_test.c11
16 files changed, 176 insertions, 0 deletions
diff --git a/test/regression/ppp_test/netx_ppp_IPCP_abnormal_packet_test.c b/test/regression/ppp_test/netx_ppp_IPCP_abnormal_packet_test.c
index 6490641b..e66cfb13 100644
--- a/test/regression/ppp_test/netx_ppp_IPCP_abnormal_packet_test.c
+++ b/test/regression/ppp_test/netx_ppp_IPCP_abnormal_packet_test.c
@@ -1,3 +1,14 @@
+/***************************************************************************/
+/* Copyright (c) 2024 Microsoft Corporation */
+/* Copyright (c) 2026 Eclipse ThreadX contributors */
+/* */
+/* This program and the accompanying materials are made available under */
+/* the terms of the MIT License which is available at */
+/* https://opensource.org/licenses/MIT. */
+/* */
+/* SPDX-License-Identifier: MIT */
+/***************************************************************************/
+
/* This demo tests the abnormal IPCP packet.
*/
diff --git a/test/regression/ppp_test/netx_ppp_IPCP_nak_test.c b/test/regression/ppp_test/netx_ppp_IPCP_nak_test.c
index cd4bc9df..f108367e 100644
--- a/test/regression/ppp_test/netx_ppp_IPCP_nak_test.c
+++ b/test/regression/ppp_test/netx_ppp_IPCP_nak_test.c
@@ -1,3 +1,14 @@
+/***************************************************************************/
+/* Copyright (c) 2024 Microsoft Corporation */
+/* Copyright (c) 2026 Eclipse ThreadX contributors */
+/* */
+/* This program and the accompanying materials are made available under */
+/* the terms of the MIT License which is available at */
+/* https://opensource.org/licenses/MIT. */
+/* */
+/* SPDX-License-Identifier: MIT */
+/***************************************************************************/
+
/* This tests that in NX_PPP_IPCP_CONFIGURE_REQUEST_ACKED_STATE state, we can send the correct NAK. */
#include "tx_api.h"
diff --git a/test/regression/ppp_test/netx_ppp_IPCP_retransmit_test.c b/test/regression/ppp_test/netx_ppp_IPCP_retransmit_test.c
index 596bb7c3..fae322a1 100644
--- a/test/regression/ppp_test/netx_ppp_IPCP_retransmit_test.c
+++ b/test/regression/ppp_test/netx_ppp_IPCP_retransmit_test.c
@@ -1,3 +1,14 @@
+/***************************************************************************/
+/* Copyright (c) 2024 Microsoft Corporation */
+/* Copyright (c) 2026 Eclipse ThreadX contributors */
+/* */
+/* This program and the accompanying materials are made available under */
+/* the terms of the MIT License which is available at */
+/* https://opensource.org/licenses/MIT. */
+/* */
+/* SPDX-License-Identifier: MIT */
+/***************************************************************************/
+
/* This tests that in NX_PPP_IPCP_CONFIGURE_REQUEST_ACKED_STATE state, we can send the correct NAK. */
#include "tx_api.h"
diff --git a/test/regression/ppp_test/netx_ppp_IPCP_timeout.c b/test/regression/ppp_test/netx_ppp_IPCP_timeout.c
index 7f71a2cd..44556617 100644
--- a/test/regression/ppp_test/netx_ppp_IPCP_timeout.c
+++ b/test/regression/ppp_test/netx_ppp_IPCP_timeout.c
@@ -1,3 +1,14 @@
+/***************************************************************************/
+/* Copyright (c) 2024 Microsoft Corporation */
+/* Copyright (c) 2026 Eclipse ThreadX contributors */
+/* */
+/* This program and the accompanying materials are made available under */
+/* the terms of the MIT License which is available at */
+/* https://opensource.org/licenses/MIT. */
+/* */
+/* SPDX-License-Identifier: MIT */
+/***************************************************************************/
+
/* This demo tests the nx_ppp_restart() function. To simulate a link down in the middle of the IPCP
negotiation, the thread_0/PPP_0 promotes the PPP 1 instance to LCP complete, and its IPCP state to STARTED.
Then the PPP0 instance is suspended as part of simulating link down.
diff --git a/test/regression/ppp_test/netx_ppp_LCP_invalid_packet_test.c b/test/regression/ppp_test/netx_ppp_LCP_invalid_packet_test.c
index 13581c2a..5b4c4255 100644
--- a/test/regression/ppp_test/netx_ppp_LCP_invalid_packet_test.c
+++ b/test/regression/ppp_test/netx_ppp_LCP_invalid_packet_test.c
@@ -1,3 +1,14 @@
+/***************************************************************************/
+/* Copyright (c) 2024 Microsoft Corporation */
+/* Copyright (c) 2026 Eclipse ThreadX contributors */
+/* */
+/* This program and the accompanying materials are made available under */
+/* the terms of the MIT License which is available at */
+/* https://opensource.org/licenses/MIT. */
+/* */
+/* SPDX-License-Identifier: MIT */
+/***************************************************************************/
+
/* This demo tests the invalid LCP packet.
*/
diff --git a/test/regression/ppp_test/netx_ppp_LCP_timeout.c b/test/regression/ppp_test/netx_ppp_LCP_timeout.c
index 9c9ea39d..d08958e2 100644
--- a/test/regression/ppp_test/netx_ppp_LCP_timeout.c
+++ b/test/regression/ppp_test/netx_ppp_LCP_timeout.c
@@ -1,3 +1,14 @@
+/***************************************************************************/
+/* Copyright (c) 2024 Microsoft Corporation */
+/* Copyright (c) 2026 Eclipse ThreadX contributors */
+/* */
+/* This program and the accompanying materials are made available under */
+/* the terms of the MIT License which is available at */
+/* https://opensource.org/licenses/MIT. */
+/* */
+/* SPDX-License-Identifier: MIT */
+/***************************************************************************/
+
/* This demo tests the nx_ppp_restart() function. The PPP_1 instance is never started.
So PPP_0 fails to complete the LCP protocol. After so many attempts at the LCP
protocol, the PPP_0 should go into a FAILED state and call the link down callback.
diff --git a/test/regression/ppp_test/netx_ppp_PAP_bad_password_test.c b/test/regression/ppp_test/netx_ppp_PAP_bad_password_test.c
index 3332c1d7..9159c43a 100644
--- a/test/regression/ppp_test/netx_ppp_PAP_bad_password_test.c
+++ b/test/regression/ppp_test/netx_ppp_PAP_bad_password_test.c
@@ -1,3 +1,14 @@
+/***************************************************************************/
+/* Copyright (c) 2024 Microsoft Corporation */
+/* Copyright (c) 2026 Eclipse ThreadX contributors */
+/* */
+/* This program and the accompanying materials are made available under */
+/* the terms of the MIT License which is available at */
+/* https://opensource.org/licenses/MIT. */
+/* */
+/* SPDX-License-Identifier: MIT */
+/***************************************************************************/
+
/* This tests 1) that PPP PAP authentication detects a bad password and handles with the NAK callback,
and 2) that the NAK callback permits the user PPP application to change the password and retry
PAP authentication. */
diff --git a/test/regression/ppp_test/netx_ppp_PAP_bad_username_test.c b/test/regression/ppp_test/netx_ppp_PAP_bad_username_test.c
index 8dfc17d4..9a809c3b 100644
--- a/test/regression/ppp_test/netx_ppp_PAP_bad_username_test.c
+++ b/test/regression/ppp_test/netx_ppp_PAP_bad_username_test.c
@@ -1,3 +1,14 @@
+/***************************************************************************/
+/* Copyright (c) 2024 Microsoft Corporation */
+/* Copyright (c) 2026 Eclipse ThreadX contributors */
+/* */
+/* This program and the accompanying materials are made available under */
+/* the terms of the MIT License which is available at */
+/* https://opensource.org/licenses/MIT. */
+/* */
+/* SPDX-License-Identifier: MIT */
+/***************************************************************************/
+
/* This tests 1) that PPP PAP authentication detects a bad username and handles with the NAK callback,
and 2) that the NAK callback permits the user PPP application to change the username and retry
PAP authentication. */
diff --git a/test/regression/ppp_test/netx_ppp_acfc_option_test.c b/test/regression/ppp_test/netx_ppp_acfc_option_test.c
index e1617a13..c83a8e2d 100644
--- a/test/regression/ppp_test/netx_ppp_acfc_option_test.c
+++ b/test/regression/ppp_test/netx_ppp_acfc_option_test.c
@@ -1,3 +1,14 @@
+/***************************************************************************/
+/* Copyright (c) 2024 Microsoft Corporation */
+/* Copyright (c) 2026 Eclipse ThreadX contributors */
+/* */
+/* This program and the accompanying materials are made available under */
+/* the terms of the MIT License which is available at */
+/* https://opensource.org/licenses/MIT. */
+/* */
+/* SPDX-License-Identifier: MIT */
+/***************************************************************************/
+
/* This tests the processing of compressed Access and Control fields. */
#include "tx_api.h"
diff --git a/test/regression/ppp_test/netx_ppp_chap_bad_secret_failed_retry_test.c b/test/regression/ppp_test/netx_ppp_chap_bad_secret_failed_retry_test.c
index 33081dba..7907a829 100644
--- a/test/regression/ppp_test/netx_ppp_chap_bad_secret_failed_retry_test.c
+++ b/test/regression/ppp_test/netx_ppp_chap_bad_secret_failed_retry_test.c
@@ -1,3 +1,14 @@
+/***************************************************************************/
+/* Copyright (c) 2024 Microsoft Corporation */
+/* Copyright (c) 2026 Eclipse ThreadX contributors */
+/* */
+/* This program and the accompanying materials are made available under */
+/* the terms of the MIT License which is available at */
+/* https://opensource.org/licenses/MIT. */
+/* */
+/* SPDX-License-Identifier: MIT */
+/***************************************************************************/
+
/* This is a test of the NetX Duo PPP CHAP authentication protocol. ppp_1
has a different secret than ppp_0, therefore ppp_1 who is trying
to authenticate itself with ppp_0, needs to handle the NAK authentication failure.
diff --git a/test/regression/ppp_test/netx_ppp_chap_bad_secret_passed_on_retry_test.c b/test/regression/ppp_test/netx_ppp_chap_bad_secret_passed_on_retry_test.c
index 8cfc50e6..5c7f6314 100644
--- a/test/regression/ppp_test/netx_ppp_chap_bad_secret_passed_on_retry_test.c
+++ b/test/regression/ppp_test/netx_ppp_chap_bad_secret_passed_on_retry_test.c
@@ -1,3 +1,14 @@
+/***************************************************************************/
+/* Copyright (c) 2024 Microsoft Corporation */
+/* Copyright (c) 2026 Eclipse ThreadX contributors */
+/* */
+/* This program and the accompanying materials are made available under */
+/* the terms of the MIT License which is available at */
+/* https://opensource.org/licenses/MIT. */
+/* */
+/* SPDX-License-Identifier: MIT */
+/***************************************************************************/
+
/* This is a test of the NetX Duo PPP CHAP authentication protocol. ppp_1
has a different secret than ppp_0, therefore ppp_1 who is trying
to authenticate itself with ppp_0, needs to handle the NAK authentication failure.
diff --git a/test/regression/ppp_test/netx_ppp_check_boundary_test.c b/test/regression/ppp_test/netx_ppp_check_boundary_test.c
index ff806d55..e6e24168 100644
--- a/test/regression/ppp_test/netx_ppp_check_boundary_test.c
+++ b/test/regression/ppp_test/netx_ppp_check_boundary_test.c
@@ -1,3 +1,14 @@
+/***************************************************************************/
+/* Copyright (c) 2024 Microsoft Corporation */
+/* Copyright (c) 2026 Eclipse ThreadX contributors */
+/* */
+/* This program and the accompanying materials are made available under */
+/* the terms of the MIT License which is available at */
+/* https://opensource.org/licenses/MIT. */
+/* */
+/* SPDX-License-Identifier: MIT */
+/***************************************************************************/
+
/* This test should be done with the PACKET CHAIN option enabled. It tests that the PPP instance can
handle receiving chained packets, including when the data, CRC checksum and PPP frame closing sequence
occur on or around the packet buffer boundary. It should run to completion.
diff --git a/test/regression/ppp_test/netx_ppp_pap_basic_test.c b/test/regression/ppp_test/netx_ppp_pap_basic_test.c
index 51f3e5e7..9f713fa5 100644
--- a/test/regression/ppp_test/netx_ppp_pap_basic_test.c
+++ b/test/regression/ppp_test/netx_ppp_pap_basic_test.c
@@ -1,3 +1,14 @@
+/***************************************************************************/
+/* Copyright (c) 2024 Microsoft Corporation */
+/* Copyright (c) 2026 Eclipse ThreadX contributors */
+/* */
+/* This program and the accompanying materials are made available under */
+/* the terms of the MIT License which is available at */
+/* https://opensource.org/licenses/MIT. */
+/* */
+/* SPDX-License-Identifier: MIT */
+/***************************************************************************/
+
/* This tests the basic PPP logic with PAP authentication. */
#include "tx_api.h"
diff --git a/test/regression/ppp_test/netx_ppp_pap_null_name_password_test.c b/test/regression/ppp_test/netx_ppp_pap_null_name_password_test.c
index 41f74818..22bc5519 100644
--- a/test/regression/ppp_test/netx_ppp_pap_null_name_password_test.c
+++ b/test/regression/ppp_test/netx_ppp_pap_null_name_password_test.c
@@ -1,3 +1,14 @@
+/***************************************************************************/
+/* Copyright (c) 2024 Microsoft Corporation */
+/* Copyright (c) 2026 Eclipse ThreadX contributors */
+/* */
+/* This program and the accompanying materials are made available under */
+/* the terms of the MIT License which is available at */
+/* https://opensource.org/licenses/MIT. */
+/* */
+/* SPDX-License-Identifier: MIT */
+/***************************************************************************/
+
/* This tests that PPP PAP authentication with empty username and password. */
#include "tx_api.h"
diff --git a/test/regression/ppp_test/netx_ppp_pfc_option_test.c b/test/regression/ppp_test/netx_ppp_pfc_option_test.c
index 82209ae2..ba1a9b49 100644
--- a/test/regression/ppp_test/netx_ppp_pfc_option_test.c
+++ b/test/regression/ppp_test/netx_ppp_pfc_option_test.c
@@ -1,3 +1,14 @@
+/***************************************************************************/
+/* Copyright (c) 2024 Microsoft Corporation */
+/* Copyright (c) 2026 Eclipse ThreadX contributors */
+/* */
+/* This program and the accompanying materials are made available under */
+/* the terms of the MIT License which is available at */
+/* https://opensource.org/licenses/MIT. */
+/* */
+/* SPDX-License-Identifier: MIT */
+/***************************************************************************/
+
/* This tests the processing of compressed protocol field. */
#include "tx_api.h"
diff --git a/test/regression/ppp_test/netx_ppp_request_dns_server_test.c b/test/regression/ppp_test/netx_ppp_request_dns_server_test.c
index 18617479..90aebbb0 100644
--- a/test/regression/ppp_test/netx_ppp_request_dns_server_test.c
+++ b/test/regression/ppp_test/netx_ppp_request_dns_server_test.c
@@ -1,3 +1,14 @@
+/***************************************************************************/
+/* Copyright (c) 2024 Microsoft Corporation */
+/* Copyright (c) 2026 Eclipse ThreadX contributors */
+/* */
+/* This program and the accompanying materials are made available under */
+/* the terms of the MIT License which is available at */
+/* https://opensource.org/licenses/MIT. */
+/* */
+/* SPDX-License-Identifier: MIT */
+/***************************************************************************/
+
/* This tests the use of requesting and processing primary and secondary DNS servers
as part of the IPCP handshake. */