int quic_mbedtls_decode_frame(const u_char *data, uint32_t length, QUIC_FRAME *frame) {
int i, j = 0;
for (i = 0; i < length;) {
u_char d = data[i];
if (data[i] == QUIC_FRAME_PADDING) {
i += 1;
} else if (data[i] == QUIC_FRAME_CRYPTO) {
frame[j].frame = &data[i];
i += 1;
uint8_t o, l;
uint64_t ov, lv;
// get crypt frame offset
quic_mbedtls_conv_vlie(data + i, &o, &ov);
i += o;
// get crypt frame length
quic_mbedtls_conv_vlie(data + i, &l, &lv);
i += l;
i += lv;
frame[j].type = QUIC_FRAME_CRYPTO;
frame[j].length = 1 + o + l + lv;
j += 1;
} else if (data[i] == QUIC_FRAME_PING) {
// とりあえず無視
i += 1;
} else if (data[i] == QUIC_FRAME_ACK_2 || data[i] == QUIC_FRAME_ACK_3) {
frame[j].frame = &data[i];
i += 1;
uint8_t la, ad, arc, far, ar;
uint64_t lav, adv, arcv, farv, arv;
// get largetst ack
quic_mbedtls_conv_vlie(data + i, &la, &lav);
i += la;
// get ack delay
quic_mbedtls_conv_vlie(data + i, &ad, &adv);
i += ad;
// get ack range count
quic_mbedtls_conv_vlie(data + i, &arc, &arcv);
i += arc;
// get first ack range
quic_mbedtls_conv_vlie(data + i, &far, &farv);
i += far;
frame[j].type = QUIC_FRAME_ACK_2;
frame[j].length = 1 + la + ad + arc + far;
j += 1;
}
}
return j;
}
Reading package lists...
Building dependency tree...
Reading state information...
The following package was automatically installed and is no longer required:
libnvidia-common-460
Use 'apt autoremove' to remove it.
The following additional packages will be installed:
libcgroup1
The following NEW packages will be installed:
cgroup-tools libcgroup1
0 upgraded, 2 newly installed, 0 to remove and 62 not upgraded.
Need to get 108 kB of archives.
After this operation, 393 kB of additional disk space will be used.
Get:1 http://archive.ubuntu.com/ubuntu bionic/universe amd64 libcgroup1 amd64 0.41-8ubuntu2 [42.0 kB]
Get:2 http://archive.ubuntu.com/ubuntu bionic/universe amd64 cgroup-tools amd64 0.41-8ubuntu2 [66.2 kB]
Fetched 108 kB in 0s (1,138 kB/s)
Selecting previously unselected package libcgroup1:amd64.
(Reading database ... 155639 files and directories currently installed.)
Preparing to unpack .../libcgroup1_0.41-8ubuntu2_amd64.deb ...
Unpacking libcgroup1:amd64 (0.41-8ubuntu2) ...
Selecting previously unselected package cgroup-tools.
Preparing to unpack .../cgroup-tools_0.41-8ubuntu2_amd64.deb ...
Unpacking cgroup-tools (0.41-8ubuntu2) ...
Setting up libcgroup1:amd64 (0.41-8ubuntu2) ...
Setting up cgroup-tools (0.41-8ubuntu2) ...
Processing triggers for man-db (2.8.3-2ubuntu0.1) ...
Processing triggers for libc-bin (2.27-3ubuntu1.3) ...
/sbin/ldconfig.real: /usr/local/lib/python3.7/dist-packages/ideep4py/lib/libmkldnn.so.0 is not a symbolic link
WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
!/content/elasticsearch-8.3.1/bin/elasticsearch-setup-passwords auto -url "https://localhost:9200"
******************************************************************************
Note: The 'elasticsearch-setup-passwords' tool has been deprecated. This command will be removed in a future release.
******************************************************************************
Initiating the setup of passwords for reserved users elastic,apm_system,kibana,kibana_system,logstash_system,beats_system,remote_monitoring_user.
The passwords will be randomly generated and printed to the console.
Please confirm that you would like to continue [y/N]y
Changed password for user apm_system
PASSWORD apm_system = 5wJfMLTnkHwSY7lbpr6y
Changed password for user kibana_system
PASSWORD kibana_system = rE40UfIbndtwONL6q33D
Changed password for user kibana
PASSWORD kibana = rE40UfIbndtwONL6q33D
Changed password for user logstash_system
PASSWORD logstash_system = DOJfaIC9toV7tgJB33ON
Changed password for user beats_system
PASSWORD beats_system = iVpsYjuzPaL6wIOZQEKx
Changed password for user remote_monitoring_user
PASSWORD remote_monitoring_user = wsxURS5iLLi3hrSf8qw9
Changed password for user elastic
PASSWORD elastic = Uzv4aE6oFfpMrDVy1nql
check a elastic process, live page. “Enter host password for user ‘elastic’:” use above elastic user password.¶
Enter host password for user 'elastic':
{"_index":"playground","_id":"oLPQ-4EBI_biyaanZoqU","_version":1,"result":"created","_shards":{"total":2,"successful":1,"failed":0},"_seq_no":0,"_primary_term":1}
そしてビルドも同じくタスクのBuildから。esp-idfの環境を自分で作らなくてもPIO上がよろしくやってくれる。特にWindows環境下なら、VScode/PlatformIOの方がESP-IDFの環境を整備するのが、めちゃくちゃ簡単になると思う。 esp-idf直接の場合もVScodeを使うとは思うのだけど、要は自前で環境を用意する or PlatformIOに自動でやってもらう(ビルドも) という違いになる。