diff options
Diffstat (limited to 'test/regression/snmp_test')
32 files changed, 356 insertions, 2 deletions
diff --git a/test/regression/snmp_test/GetSet_IPv4v6Address.c b/test/regression/snmp_test/GetSet_IPv4v6Address.c index 3ce585e4..a67bf7d9 100644 --- a/test/regression/snmp_test/GetSet_IPv4v6Address.c +++ b/test/regression/snmp_test/GetSet_IPv4v6Address.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 */ +/***************************************************************************/ + /* SNMP_TESTING_GetSet_IPv4Addresses_LargeIntegers.pcap */ /* Frame 420 Set IPv4 address request 241.254.3.129 (89 bytes) */ diff --git a/test/regression/snmp_test/GetSet_Integers_Large_and_Neg_Numbers.c b/test/regression/snmp_test/GetSet_Integers_Large_and_Neg_Numbers.c index 281e1d67..d006c5fd 100644 --- a/test/regression/snmp_test/GetSet_Integers_Large_and_Neg_Numbers.c +++ b/test/regression/snmp_test/GetSet_Integers_Large_and_Neg_Numbers.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 */ +/***************************************************************************/ + /* Get_Integers_Large_and_Neg_Numbers.c */ /* Set 255 1.3.6.1.2.1.4.1.0 Frame 28223 (85 bytes) */ diff --git a/test/regression/snmp_test/GetSet_OctetStrings.c b/test/regression/snmp_test/GetSet_OctetStrings.c index 9ccdcd94..2f117ddb 100644 --- a/test/regression/snmp_test/GetSet_OctetStrings.c +++ b/test/regression/snmp_test/GetSet_OctetStrings.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 */ +/***************************************************************************/ + /* SNMP_Testing_GET_SET_OctetStrings.pcap */ /* Frame 162 */ diff --git a/test/regression/snmp_test/Get_Miscellaneous_Data_type.c b/test/regression/snmp_test/Get_Miscellaneous_Data_type.c index 5137cd82..9d10f620 100644 --- a/test/regression/snmp_test/Get_Miscellaneous_Data_type.c +++ b/test/regression/snmp_test/Get_Miscellaneous_Data_type.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 */ +/***************************************************************************/ + /* SNMP_TEsting_getset_counter32.pcapng */ /* set request counter 32 Frame 50 (89 bytes) */ diff --git a/test/regression/snmp_test/get_snmp_v3_request.c b/test/regression/snmp_test/get_snmp_v3_request.c index db685cab..58485c49 100644 --- a/test/regression/snmp_test/get_snmp_v3_request.c +++ b/test/regression/snmp_test/get_snmp_v3_request.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 */ +/***************************************************************************/ + /* Frame (101 bytes) */ const unsigned char get_v3_request_packet[101] = { 0x00, 0xcf, 0x54, 0x85, 0xc3, 0x01, 0xe0, 0x69, /* ..T....i */ diff --git a/test/regression/snmp_test/netx_snmp_abnormal_packet_test.c b/test/regression/snmp_test/netx_snmp_abnormal_packet_test.c index c0d9f9d4..8a159343 100644 --- a/test/regression/snmp_test/netx_snmp_abnormal_packet_test.c +++ b/test/regression/snmp_test/netx_snmp_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 tests processing abornal packet. */ diff --git a/test/regression/snmp_test/netx_snmp_basic_v2_test.c b/test/regression/snmp_test/netx_snmp_basic_v2_test.c index 199473ea..6ef9a481 100644 --- a/test/regression/snmp_test/netx_snmp_basic_v2_test.c +++ b/test/regression/snmp_test/netx_snmp_basic_v2_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 NetX test concentrates on the basic SNMPv2 operation. The 'manager' sends three requests, Get, Get Next, and Get Bulk, and the SNMP agent responds. A successful result means the Agent received and sent the expected number of messages, and no diff --git a/test/regression/snmp_test/netx_snmp_no_security_function_test.c b/test/regression/snmp_test/netx_snmp_no_security_function_test.c index 22b0b4fd..16d01082 100644 --- a/test/regression/snmp_test/netx_snmp_no_security_function_test.c +++ b/test/regression/snmp_test/netx_snmp_no_security_function_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 NetX test is a simple contact between agent and browser with no security. Note that NX_SNMP_FUNCTION_TESTING must be defined in nxd_snmp.c or else timer tick data (boot time, SysTimerTick, will not match the 'pre-recorded' data that the NetX SNMP Agent responses re compared with, and the test will fail. diff --git a/test/regression/snmp_test/netx_snmp_setget_integers_test.c b/test/regression/snmp_test/netx_snmp_setget_integers_test.c index 0d573ba5..f4e5eb09 100644 --- a/test/regression/snmp_test/netx_snmp_setget_integers_test.c +++ b/test/regression/snmp_test/netx_snmp_setget_integers_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 NetX test concentrates on the basic SNMPv2 operation. The 'manager' sends a set request for an OID that specifies an IPv4 address. Then it sends a GET request for the same OID and compares it to what it just set it to. It sends another SET diff --git a/test/regression/snmp_test/netx_snmp_setget_ip_address_test.c b/test/regression/snmp_test/netx_snmp_setget_ip_address_test.c index 856e45f7..129b6c97 100644 --- a/test/regression/snmp_test/netx_snmp_setget_ip_address_test.c +++ b/test/regression/snmp_test/netx_snmp_setget_ip_address_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 NetX test concentrates on the basic SNMPv2 operation. The 'manager' sends a set request for an OID that specifies an IPv4 address. Then it sends a GET request for the same OID and compares it to what it just set it to. It sends another SET diff --git a/test/regression/snmp_test/netx_snmp_setget_misc_test.c b/test/regression/snmp_test/netx_snmp_setget_misc_test.c index 8b69f074..83477e6d 100644 --- a/test/regression/snmp_test/netx_snmp_setget_misc_test.c +++ b/test/regression/snmp_test/netx_snmp_setget_misc_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 NetX test concentrates on the basic SNMPv2 operation. The 'manager' sends a set request for an OID that specifies an IPv4 address. Then it sends a GET request for the same OID and compares it to what it just set it to. It sends another SET diff --git a/test/regression/snmp_test/netx_snmp_setget_octet_strings_test.c b/test/regression/snmp_test/netx_snmp_setget_octet_strings_test.c index 9508c730..cf2be57e 100644 --- a/test/regression/snmp_test/netx_snmp_setget_octet_strings_test.c +++ b/test/regression/snmp_test/netx_snmp_setget_octet_strings_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 NetX test concentrates on the basic SNMPv2 operation. The 'manager' sends a set request for an OID that specifies an IPv4 address. Then it sends a GET request for the same OID and compares it to what it just set it to. It sends another SET diff --git a/test/regression/snmp_test/netx_snmp_v1_buffer_overwrite_test.c b/test/regression/snmp_test/netx_snmp_v1_buffer_overwrite_test.c index feadded4..e2d8330d 100644 --- a/test/regression/snmp_test/netx_snmp_v1_buffer_overwrite_test.c +++ b/test/regression/snmp_test/netx_snmp_v1_buffer_overwrite_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 NetX test concentrates on the basic SNMPv1 operation. The 'manager' sends a request for an unknown item ("oid"). The SNMP agent should not responds, but set an internal error and be able to respond to the next request. diff --git a/test/regression/snmp_test/netx_snmp_v1_object_id_buffer_overwrite_test.c b/test/regression/snmp_test/netx_snmp_v1_object_id_buffer_overwrite_test.c index 7b90a3e7..43d2124b 100644 --- a/test/regression/snmp_test/netx_snmp_v1_object_id_buffer_overwrite_test.c +++ b/test/regression/snmp_test/netx_snmp_v1_object_id_buffer_overwrite_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 NetX test concentrates on the basic SNMPv1 operation. The 'manager' sends a request for an unknown item ("oid"). The SNMP agent should not responds, but set an internal error and be able to respond to the next request. diff --git a/test/regression/snmp_test/netx_snmp_v1_packet_double_release_test.c b/test/regression/snmp_test/netx_snmp_v1_packet_double_release_test.c index 84c8c71f..e5f5885d 100644 --- a/test/regression/snmp_test/netx_snmp_v1_packet_double_release_test.c +++ b/test/regression/snmp_test/netx_snmp_v1_packet_double_release_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 NetX test concentrates on the basic SNMPv1 operation. The 'manager' sends a request for an unknown item ("oid"). The SNMP agent should not responds, but set an internal error and be able to respond to the next request. diff --git a/test/regression/snmp_test/netx_snmp_v2_buffer_overwrite_test.c b/test/regression/snmp_test/netx_snmp_v2_buffer_overwrite_test.c index 0dc88f99..08529273 100644 --- a/test/regression/snmp_test/netx_snmp_v2_buffer_overwrite_test.c +++ b/test/regression/snmp_test/netx_snmp_v2_buffer_overwrite_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 NetX test concentrates on the basic SNMPv2 operation. The 'manager' sends a request for an unknown item ("oid"). The SNMP agent should not responds, but set an internal error and be able to respond to the next request. diff --git a/test/regression/snmp_test/netx_snmp_v2_get_bulk_request_test.c b/test/regression/snmp_test/netx_snmp_v2_get_bulk_request_test.c index fb541d69..ab164e60 100644 --- a/test/regression/snmp_test/netx_snmp_v2_get_bulk_request_test.c +++ b/test/regression/snmp_test/netx_snmp_v2_get_bulk_request_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 NetX test concentrates on the SNMPv2 get bulk request. The first exchange is to 'contact' the SNMP agent. Then the manager makes a bulk request. The test is successful if the internal statistics show the correct number of variables requested, requests received, and bulk responses diff --git a/test/regression/snmp_test/netx_snmp_v2_send_trap_test.c b/test/regression/snmp_test/netx_snmp_v2_send_trap_test.c index 131049ac..ccf1f13e 100644 --- a/test/regression/snmp_test/netx_snmp_v2_send_trap_test.c +++ b/test/regression/snmp_test/netx_snmp_v2_send_trap_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 SNMP Agent test sends a V2 trap with a non null trap list. A successful result is the correction number of messages/packets sent and no internal errors. */ diff --git a/test/regression/snmp_test/netx_snmp_v2_unknown_oid_test.c b/test/regression/snmp_test/netx_snmp_v2_unknown_oid_test.c index e89e0a00..8b8691cd 100644 --- a/test/regression/snmp_test/netx_snmp_v2_unknown_oid_test.c +++ b/test/regression/snmp_test/netx_snmp_v2_unknown_oid_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 NetX test concentrates on the basic SNMPv2 operation. The 'manager' sends a request for an unknown item ("oid"). The SNMP agent should not responds, but set an internal error and be able to respond to the next request. diff --git a/test/regression/snmp_test/netx_snmp_v3_buffer_overwrite_test.c b/test/regression/snmp_test/netx_snmp_v3_buffer_overwrite_test.c index 122882cc..15b684c7 100644 --- a/test/regression/snmp_test/netx_snmp_v3_buffer_overwrite_test.c +++ b/test/regression/snmp_test/netx_snmp_v3_buffer_overwrite_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 NetX test concentrates on the basic SNMPv2 operation. The 'manager' sends a request for an unknown item ("oid"). The SNMP agent should not responds, but set an internal error and be able to respond to the next request. diff --git a/test/regression/snmp_test/netx_snmp_v3_decrypt_pdu_buffer_overwrite_test.c b/test/regression/snmp_test/netx_snmp_v3_decrypt_pdu_buffer_overwrite_test.c index fb6dcc50..ba0b067b 100644 --- a/test/regression/snmp_test/netx_snmp_v3_decrypt_pdu_buffer_overwrite_test.c +++ b/test/regression/snmp_test/netx_snmp_v3_decrypt_pdu_buffer_overwrite_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 NetX test concentrates on the basic SNMPv2 operation. The 'manager' sends a request for an unknown item ("oid"). The SNMP agent should not responds, but set an internal error and be able to respond to the next request. diff --git a/test/regression/snmp_test/netx_snmp_v3_encrypt_pdu_buffer_overwrite_test.c b/test/regression/snmp_test/netx_snmp_v3_encrypt_pdu_buffer_overwrite_test.c index d5e7fe16..4ee4def4 100644 --- a/test/regression/snmp_test/netx_snmp_v3_encrypt_pdu_buffer_overwrite_test.c +++ b/test/regression/snmp_test/netx_snmp_v3_encrypt_pdu_buffer_overwrite_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 NetX test concentrates on the basic SNMPv2 operation. The 'manager' sends a request for an unknown item ("oid"). The SNMP agent should not responds, but set an internal error and be able to respond to the next request. @@ -18,7 +29,8 @@ extern void test_control_return(UINT); #define DEMO_STACK_SIZE 4096 extern MIB_ENTRY mib2_mib[]; -
//NX_SNMP_SECURITY_KEY my_authentication_key; + +//NX_SNMP_SECURITY_KEY my_authentication_key; NX_SNMP_SECURITY_KEY my_privacy_key; diff --git a/test/regression/snmp_test/netx_snmp_v3_encrypt_pdu_padding_buffer_overwrite_test.c b/test/regression/snmp_test/netx_snmp_v3_encrypt_pdu_padding_buffer_overwrite_test.c index afd0c4ff..37144256 100644 --- a/test/regression/snmp_test/netx_snmp_v3_encrypt_pdu_padding_buffer_overwrite_test.c +++ b/test/regression/snmp_test/netx_snmp_v3_encrypt_pdu_padding_buffer_overwrite_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 NetX test concentrates on the basic SNMPv2 operation. The 'manager' sends a request for an unknown item ("oid"). The SNMP agent should not responds, but set an internal error and be able to respond to the next request. diff --git a/test/regression/snmp_test/netx_snmp_v3_md5_failed_security_test.c b/test/regression/snmp_test/netx_snmp_v3_md5_failed_security_test.c index 1eec2315..e51d74fd 100644 --- a/test/regression/snmp_test/netx_snmp_v3_md5_failed_security_test.c +++ b/test/regression/snmp_test/netx_snmp_v3_md5_failed_security_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 NetX test concentrates on the SNMPv3 operation with MD5 security. The test uses a different authentiation and encryption password than is received from the SNMP Manager. The test is successful if the SNMP Agent rejects the SNMP manager response, sets an authentication error to notify the calling application authentication failed, and does not send a diff --git a/test/regression/snmp_test/netx_snmp_v3_md5_security_extended_test.c b/test/regression/snmp_test/netx_snmp_v3_md5_security_extended_test.c index faff02da..44ba8cfc 100644 --- a/test/regression/snmp_test/netx_snmp_v3_md5_security_extended_test.c +++ b/test/regression/snmp_test/netx_snmp_v3_md5_security_extended_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 NetX test concentrates on the SNMPv3 operation with MD5 security. The test examines the response packet length and internal statistics of processing a v3 response to pass the test. */ diff --git a/test/regression/snmp_test/netx_snmp_v3_md5_security_test.c b/test/regression/snmp_test/netx_snmp_v3_md5_security_test.c index d363128a..5ad685a3 100644 --- a/test/regression/snmp_test/netx_snmp_v3_md5_security_test.c +++ b/test/regression/snmp_test/netx_snmp_v3_md5_security_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 NetX test concentrates on the SNMPv3 operation with MD5 security. The test examines the response packet length and internal statistics of processing a v3 response to pass the test. */ diff --git a/test/regression/snmp_test/netx_snmp_v3_no_security_function_test.c b/test/regression/snmp_test/netx_snmp_v3_no_security_function_test.c index 2ab73018..802c0afb 100644 --- a/test/regression/snmp_test/netx_snmp_v3_no_security_function_test.c +++ b/test/regression/snmp_test/netx_snmp_v3_no_security_function_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 NetX test concentrates on the SNMPv3 operation with no security. The test examines the response packet length and internal statistics of processing a v3 response to pass the test. */ diff --git a/test/regression/snmp_test/netx_snmp_v3_nosec_traplist_test.c b/test/regression/snmp_test/netx_snmp_v3_nosec_traplist_test.c index d7a5dc90..f1e326c0 100644 --- a/test/regression/snmp_test/netx_snmp_v3_nosec_traplist_test.c +++ b/test/regression/snmp_test/netx_snmp_v3_nosec_traplist_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 SNMP Agent test sends a V3 trap with a non null trap list. A successful result is the correction number of messages/packets sent, no internal errors and successful search of all the items in the trap list sent to the SNMP Agent. */ diff --git a/test/regression/snmp_test/netx_snmp_v3_object_id_buffer_overwrite_test.c b/test/regression/snmp_test/netx_snmp_v3_object_id_buffer_overwrite_test.c index 6040e297..21b802b7 100644 --- a/test/regression/snmp_test/netx_snmp_v3_object_id_buffer_overwrite_test.c +++ b/test/regression/snmp_test/netx_snmp_v3_object_id_buffer_overwrite_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 NetX test concentrates on the basic SNMPv2 operation. The 'manager' sends a request for an unknown item ("oid"). The SNMP agent should not responds, but set an internal error and be able to respond to the next request. @@ -18,7 +29,8 @@ extern void test_control_return(UINT); #define DEMO_STACK_SIZE 4096 extern MIB_ENTRY mib2_mib[]; -
//NX_SNMP_SECURITY_KEY my_authentication_key; + +//NX_SNMP_SECURITY_KEY my_authentication_key; NX_SNMP_SECURITY_KEY my_privacy_key; diff --git a/test/regression/snmp_test/small_mib_helper.c b/test/regression/snmp_test/small_mib_helper.c index 66ceb1c7..0bd84ccf 100644 --- a/test/regression/snmp_test/small_mib_helper.c +++ b/test/regression/snmp_test/small_mib_helper.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 */ +/***************************************************************************/ + /* Determine if a C++ compiler is being used. If so, ensure that standard C is used to process the API information. */ diff --git a/test/regression/snmp_test/small_mib_helper.h b/test/regression/snmp_test/small_mib_helper.h index bcced00c..bd76f50c 100644 --- a/test/regression/snmp_test/small_mib_helper.h +++ b/test/regression/snmp_test/small_mib_helper.h @@ -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 an include file for the NetX SNMP demo programs for setting up the MIB for user callback functions. It is not part of the official release of NetX SNMP Agent. */ diff --git a/test/regression/snmp_test/snmp_manager_packets.c b/test/regression/snmp_test/snmp_manager_packets.c index 5a5ce9a9..41d68471 100644 --- a/test/regression/snmp_test/snmp_manager_packets.c +++ b/test/regression/snmp_test/snmp_manager_packets.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 */ +/***************************************************************************/ + /* Frame (83 bytes) SNMPv2 GET REQUEST community: public data: get-request (0) |
