summaryrefslogtreecommitdiff
path: root/test/regression/snmp_test/GetSet_OctetStrings.c
blob: 2f117ddbe981829232951917c549081b9d6915b8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
/***************************************************************************/
/* 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 */
const unsigned char set_request_octet_string_pkt[47] = {
0x30, 0x2d, 0x02, 0x01, 0x00, 0x04, /* .X0-.... */
0x07, 0x70, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, /* .private */
0xa3, 0x1f, 0x02, 0x01, 0x74, 0x02, 0x01, 0x00, /* ....t... */
0x02, 0x01, 0x00, 0x30, 0x14, 0x30, 0x12, 0x06, /* ...0.0.. */
0x0a, 0x2b, 0x06, 0x01, 0x02, 0x01, 0x03, 0x01, /* .+...... */
0x01, 0x02, 0x00, 0x04, 0x04, 0xff, 0x00, 0xf1, /* ........ */
0xf2                                            /* . */
};

int set_request_octet_string_size = 47;



/* Frame (258) */
const unsigned char get_request_octet_string_pkt[42] = {
0x30, 0x28, 0x02, 0x01, 0x00, 0x04, /* .S0(.... */
0x06, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0xa0, /* .public. */
0x1b, 0x02, 0x01, 0x75, 0x02, 0x01, 0x00, 0x02, /* ...u.... */
0x01, 0x00, 0x30, 0x10, 0x30, 0x0e, 0x06, 0x0a, /* ..0.0... */
0x2b, 0x06, 0x01, 0x02, 0x01, 0x03, 0x01, 0x01, /* +....... */
0x02, 0x00, 0x05, 0x00                          /* .... */
};

int get_request_octet_string_size = 42;



/* Frame 518 (88 bytes) */
const unsigned char set_request_octet_string_leading_zero_pkt[64] = {
0x30, 0x2c, 0x02, 0x01, 0x00, 0x04, /* .W0,.... */
0x07, 0x70, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, /* .private */
0xa3, 0x1e, 0x02, 0x01, 0x76, 0x02, 0x01, 0x00, /* ....v... */
0x02, 0x01, 0x00, 0x30, 0x13, 0x30, 0x11, 0x06, /* ...0.0.. */
0x0a, 0x2b, 0x06, 0x01, 0x02, 0x01, 0x03, 0x01, /* .+...... */
0x01, 0x02, 0x00, 0x04, 0x03, 0x00, 0xf1, 0xf2  /* ........ */
};


int set_request_octet_string_leading_zero_size = 46;



/* Frame  607(84 bytes) */
const unsigned char get_request_octet_string_leading_zero_pkt[42] = {
0x30, 0x28, 0x02, 0x01, 0x00, 0x04, /* .S0(.... */
0x06, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0xa0, /* .public. */
0x1b, 0x02, 0x01, 0x77, 0x02, 0x01, 0x00, 0x02, /* ...w.... */
0x01, 0x00, 0x30, 0x10, 0x30, 0x0e, 0x06, 0x0a, /* ..0.0... */
0x2b, 0x06, 0x01, 0x02, 0x01, 0x03, 0x01, 0x01, /* +....... */
0x02, 0x00, 0x05, 0x00                          /* .... */
};

int get_request_octet_string_leading_zero_size = 42;