Skip to content

Commit

Permalink
[simulation] support simulating radio over IPv6 (openthread#10194)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
bukepo authored May 13, 2024
1 parent 7cc636c commit 39ce811
Show file tree
Hide file tree
Showing 7 changed files with 372 additions and 116 deletions.
4 changes: 2 additions & 2 deletions .clang-format
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,11 @@ DerivePointerAlignment: false
DisableFormat: false
ExperimentalAutoDetectBinPacking: false
FixNamespaceComments: true
ForEachMacros:
ForEachMacros:
- foreach
- Q_FOREACH
- BOOST_FOREACH
IncludeCategories:
IncludeCategories:
- Regex: '^<openthread/.*/'
Priority: 4
- Regex: '^<openthread/'
Expand Down
28 changes: 28 additions & 0 deletions .github/workflows/simulation-1.1.yml
Original file line number Diff line number Diff line change
Expand Up @@ -364,6 +364,34 @@ jobs:
path: tmp/coverage.info
retention-days: 1

simulation-local-host:
runs-on: ubuntu-20.04
env:
COVERAGE: 1
steps:
- name: Harden Runner
uses: step-security/harden-runner@63c24ba6bd7ba022e95695ff85de572c04a18142 # v2.7.0
with:
egress-policy: audit # TODO: change to 'egress-policy: block' after couple of runs

- uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v4.1.2
with:
submodules: true
- name: Bootstrap
run: |
sudo apt-get --no-install-recommends install -y expect ninja-build lcov
- name: Run
run: |
./script/check-simulation-local-host
- name: Generate Coverage
run: |
./script/test generate_coverage gcc
- uses: actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3 # v4.3.1
with:
name: cov-simulation-local-host
path: tmp/coverage.info
retention-days: 1

upload-coverage:
needs:
- packet-verification
Expand Down
Loading

0 comments on commit 39ce811

Please sign in to comment.