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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
|
/***************************************************************************/
/* 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) */
const unsigned char set_request_integer_255_pkt[43] = {
0x30, 0x29, 0x02, 0x01, 0x00, 0x04, /* .T0).... */
0x07, 0x70, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, /* .private */
0xa3, 0x1b, 0x02, 0x01, 0x69, 0x02, 0x01, 0x00, /* ....i... */
0x02, 0x01, 0x00, 0x30, 0x10, 0x30, 0x0e, 0x06, /* ...0.0.. */
0x08, 0x2b, 0x06, 0x01, 0x02, 0x01, 0x04, 0x01, /* .+...... */
0x00, 0x02, 0x02, 0x00, 0xff /* ..... */
};
int set_request_integer_255_size = 43;
/* /* Get request 1.3.6.1.2.1.4.1.0 Frame 28256 Frame(82 bytes) */
const unsigned char get_request_integer_255_pkt[40] = {
0x30, 0x26, 0x02, 0x01, 0x00, 0x04, /* .Q0&.... */
0x06, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0xa0, /* .public. */
0x19, 0x02, 0x01, 0x6a, 0x02, 0x01, 0x00, 0x02, /* ...j.... */
0x01, 0x00, 0x30, 0x0e, 0x30, 0x0c, 0x06, 0x08, /* ..0.0... */
0x2b, 0x06, 0x01, 0x02, 0x01, 0x04, 0x01, 0x00, /* +....... */
0x05, 0x00 /* .. */
};
int get_request_integer_255_size = 40;
/* Set request neg 255 1.3.6.1.2.1.4.1.0 Frame 29094(85 bytes) */
const unsigned char set_request_integer_neg255_pkt[43] = {
0x30, 0x29, 0x02, 0x01, 0x00, 0x04, /* .T0).... */
0x07, 0x70, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, /* .private */
0xa3, 0x1b, 0x02, 0x01, 0x70, 0x02, 0x01, 0x00, /* ....p... */
0x02, 0x01, 0x00, 0x30, 0x10, 0x30, 0x0e, 0x06, /* ...0.0.. */
0x08, 0x2b, 0x06, 0x01, 0x02, 0x01, 0x04, 0x01, /* .+...... */
0x00, 0x02, 0x02, 0xff, 0x01 /* ..... */
};
int set_request_integer_neg255_size = 43;
/* Get request 1.3.6.1.2.1.4.1.0 Frame 29127 (82 bytes) */
const unsigned char get_request_integer_neg255_pkt[40] = {
0x30, 0x26, 0x02, 0x01, 0x00, 0x04, /* .Q0&.... */
0x06, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0xa0, /* .public. */
0x19, 0x02, 0x01, 0x71, 0x02, 0x01, 0x00, 0x02, /* ...q.... */
0x01, 0x00, 0x30, 0x0e, 0x30, 0x0c, 0x06, 0x08, /* ..0.0... */
0x2b, 0x06, 0x01, 0x02, 0x01, 0x04, 0x01, 0x00, /* +....... */
0x05, 0x00 /* .. */
};
int get_request_integer_neg255_size = 40;
/* Set request -2345325 1.3.6.1.2.1.4.1.0 Frame 29488 (86 bytes) */
unsigned char set_request_integer_neg2345345_pkt[44] = {
0x30, 0x2a, 0x02, 0x01, 0x00, 0x04, /* .U0*.... */
0x07, 0x70, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, /* .private */
0xa3, 0x1c, 0x02, 0x01, 0x72, 0x02, 0x01, 0x00, /* ....r... */
0x02, 0x01, 0x00, 0x30, 0x11, 0x30, 0x0f, 0x06, /* ...0.0.. */
0x08, 0x2b, 0x06, 0x01, 0x02, 0x01, 0x04, 0x01, /* .+...... */
0x00, 0x02, 0x03, 0xdc, 0x36, 0x7f /* ....6. */
};
int set_request_integer_neg2345345_size = 44;
/* Get request -2345325 1.3.6.1.2.1.4.1.0 Frame 29567 (82 bytes) */
const unsigned char get_request_integer_neg2345345_pkt[40] = {
0x30, 0x26, 0x02, 0x01, 0x00, 0x04, /* .Q0&.... */
0x06, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0xa0, /* .public. */
0x19, 0x02, 0x01, 0x73, 0x02, 0x01, 0x00, 0x02, /* ...s.... */
0x01, 0x00, 0x30, 0x0e, 0x30, 0x0c, 0x06, 0x08, /* ..0.0... */
0x2b, 0x06, 0x01, 0x02, 0x01, 0x04, 0x01, 0x00, /* +....... */
0x05, 0x00 /* .. */
};
int get_request_integer_neg2345345_size = 40;
|