Skip to content

Commit 39ce811

Browse files
authored
[simulation] support simulating radio over IPv6 (openthread#10194)
This commit adds support to simulate Thread radio over IPv6. With this commit, a simulation will be simulated over either IPv6 or IPv4. If it's simulated on IPv6, it communicates with other simulation nodes in IPv6 group `ff02::116`. And if it's simulated on IPv4, it communicates with other simulation nodes in IPv4 group `224.0.0.116`. Note that simulating virtual time is not included in this commit.
1 parent 7cc636c commit 39ce811

File tree

7 files changed

+372
-116
lines changed

7 files changed

+372
-116
lines changed

.clang-format

+2-2
Original file line numberDiff line numberDiff line change
@@ -55,11 +55,11 @@ DerivePointerAlignment: false
5555
DisableFormat: false
5656
ExperimentalAutoDetectBinPacking: false
5757
FixNamespaceComments: true
58-
ForEachMacros:
58+
ForEachMacros:
5959
- foreach
6060
- Q_FOREACH
6161
- BOOST_FOREACH
62-
IncludeCategories:
62+
IncludeCategories:
6363
- Regex: '^<openthread/.*/'
6464
Priority: 4
6565
- Regex: '^<openthread/'

.github/workflows/simulation-1.1.yml

+28
Original file line numberDiff line numberDiff line change
@@ -364,6 +364,34 @@ jobs:
364364
path: tmp/coverage.info
365365
retention-days: 1
366366

367+
simulation-local-host:
368+
runs-on: ubuntu-20.04
369+
env:
370+
COVERAGE: 1
371+
steps:
372+
- name: Harden Runner
373+
uses: step-security/harden-runner@63c24ba6bd7ba022e95695ff85de572c04a18142 # v2.7.0
374+
with:
375+
egress-policy: audit # TODO: change to 'egress-policy: block' after couple of runs
376+
377+
- uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v4.1.2
378+
with:
379+
submodules: true
380+
- name: Bootstrap
381+
run: |
382+
sudo apt-get --no-install-recommends install -y expect ninja-build lcov
383+
- name: Run
384+
run: |
385+
./script/check-simulation-local-host
386+
- name: Generate Coverage
387+
run: |
388+
./script/test generate_coverage gcc
389+
- uses: actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3 # v4.3.1
390+
with:
391+
name: cov-simulation-local-host
392+
path: tmp/coverage.info
393+
retention-days: 1
394+
367395
upload-coverage:
368396
needs:
369397
- packet-verification

0 commit comments

Comments
 (0)