diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS new file mode 100644 index 00000000..01cf933b --- /dev/null +++ b/.github/CODEOWNERS @@ -0,0 +1 @@ +* @linouxis9 \ No newline at end of file diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md new file mode 100644 index 00000000..e3cd277f --- /dev/null +++ b/.github/ISSUE_TEMPLATE/bug_report.md @@ -0,0 +1,39 @@ +--- +name: Bug report +about: Create a report to help us improve +title: "[BUG] " +labels: bug +assignees: '' + +--- + +**Describe the bug** +A clear and concise description of what the bug is. + +**To Reproduce** +Steps to reproduce the behavior: +1. Go to '...' +2. Click on '....' +3. Scroll down to '....' +4. See error + +**Expected behavior** +A clear and concise description of what you expected to happen. If applicable, inform the sections and specifications that defines the expected behavior. + +**Screenshots** +If applicable, add screenshots to help explain your problem. + +**Architecture (please complete the following information):** +- OS: [e.g. Linux] +- Platform [e.g. x86_64, ...] +- Version [e.g. 22] +- Kernel [e.g. 5.0.0.23-generic] + +**Log:** +If applicable, add log files to help understand your problem. + +**Pcap:** +If applicable, add pcap files to help understand your problem. + +**Additional context** +Add any other context about the problem here. \ No newline at end of file diff --git a/.github/ISSUE_TEMPLATE/feature_request.md b/.github/ISSUE_TEMPLATE/feature_request.md new file mode 100644 index 00000000..6536ce65 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/feature_request.md @@ -0,0 +1,20 @@ +--- +name: Feature request +about: Suggest an idea for this project +title: "[FEATURE] " +labels: enhancement +assignees: '' + +--- + +**Is your feature request related to a problem? Please describe.** +A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] + +**Describe the solution you'd like** +A clear and concise description of what you want to happen. If applicable, inform the specifications and sections the defines the behavior. + +**Describe alternatives you've considered** +A clear and concise description of any alternative solutions or features you've considered. + +**Additional context** +Add any other context or screenshots about the feature request here. \ No newline at end of file diff --git a/.github/PULL_REQUEST_TEMPLATE/pull_request.md b/.github/PULL_REQUEST_TEMPLATE/pull_request.md new file mode 100644 index 00000000..5d78d980 --- /dev/null +++ b/.github/PULL_REQUEST_TEMPLATE/pull_request.md @@ -0,0 +1,14 @@ +## Types of changes + +- [ ] Bug fix (non-breaking change which fixes an issue) +- [ ] New feature (non-breaking change which adds functionality) +- [ ] Breaking change (fix or feature that would cause existing functionality to change) + + +- [ ] I have updated the documentation accordingly. +- [ ] I have added tests to cover my changes. +- [ ] All new and existing tests passed. + + +- [ ] I have read the **CONTRIBUTING** document. +- [ ] Each of my commits messages include `Signed-off-by: Author Name ` to accept the DCO. \ No newline at end of file diff --git a/.github/workflows/ci-workflow.yml b/.github/workflows/ci-workflow.yml index 7300e2b0..30896efd 100644 --- a/.github/workflows/ci-workflow.yml +++ b/.github/workflows/ci-workflow.yml @@ -1,10 +1,9 @@ -name: My5G-RANTester Workflow +name: PacketRusher Workflow on: pull_request: push: branches: - master - - develop jobs: test: name: build and test @@ -16,7 +15,7 @@ jobs: - name: Setup Go uses: actions/setup-go@v2 with: - go-version: 1.14.10 + go-version: 1.21.0 - name: Check Versions run: | @@ -34,3 +33,6 @@ jobs: - name: Install Go Deps run: go mod download + + - name: Launch tests + run: go test -v ./test/amf \ No newline at end of file diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md new file mode 100644 index 00000000..f036e777 --- /dev/null +++ b/CONTRIBUTING.md @@ -0,0 +1,91 @@ +## HPE Contribution Guide + +Hi there! We're thrilled that you'd like to contribute to this project. Your help is essential for keeping it great. + +Contributing +------------ +You are invited to contribute new features, fixes, or updates, large or small; we are always thrilled to receive pull requests, and do our best to process them as fast as we can. + +Before you start to code, we recommend discussing your plans through a GitHub issue, especially for more ambitious contributions. This gives other contributors a chance to point you in the right direction, give you feedback on your design, and help you find out if someone else is working on the same thing. + +* If you want to raise an issue such as a defect or an enhancement request, please open a GitHub issue for the appropriate project. Please keep the following in mind: + + * Try to reduce your code to the bare minimum required to reproduce the issue. + * If we can't reproduce the issue, we can't fix it. Please list the exact steps required to reproduce the issue. + +## Issues + +If you have suggestions for how this project could be improved, or want to report a bug, open an issue! We'd love all and any contributions. If you have questions, too, we'd love to hear them. + +It is a great way to contribute to PacketRusher by reporting an issue. Well-written and complete bug reports are always welcome! Please open an issue on GitHub and follow the template to fill in required information. + +Before opening any issue, please look up the existing [issues](https://github.com/HewlettPackard/PacketRusher/issues) to avoid submitting a duplication. +If you find a match, you can "subscribe" to it to get notified on updates. If you have additional helpful information about the issue, please leave a comment. + +When reporting issues include details but, because the issues are open to the public, when submitting the log and configuration files, be sure to remove any sensitive information, e.g. user name, password, IP address, and company name. You can replace those parts with "REDACTED" or other strings like "****". + +Be sure to include the steps to reproduce the problem if applicable. It can help us understand and fix your issue faster. + +Submitting Code Pull Requests +----------------------------- +We encourage and support contributions from the community. No fix is too small. We strive to process all pull requests as soon as possible and with constructive feedback. If your pull request is not accepted at first, please try again after addressing the feedback you received. + +To make a pull request, you will need a GitHub account. For help, see GitHub's documentation on forking and pull requests. + +All pull requests with code should include tests that validate your change. + +Developer's Certificate of Origin +--------------------------------- +All contributions must include acceptance of the DCO: + +> Developer Certificate of Origin Version 1.1 +> +> Copyright (C) 2004, 2006 The Linux Foundation and its contributors. 660 +> York Street, Suite 102, San Francisco, CA 94110 USA +> +> Everyone is permitted to copy and distribute verbatim copies of this +> license document, but changing it is not allowed. +> +> Developer's Certificate of Origin 1.1 +> +> By making a contribution to this project, I certify that: +> +> \(a) The contribution was created in whole or in part by me and I have +> the right to submit it under the open source license indicated in the +> file; or +> +> \(b) The contribution is based upon previous work that, to the best of my +> knowledge, is covered under an appropriate open source license and I +> have the right under that license to submit that work with +> modifications, whether created in whole or in part by me, under the same +> open source license (unless I am permitted to submit under a different +> license), as indicated in the file; or +> +> \(c) The contribution was provided directly to me by some other person +> who certified (a), (b) or (c) and I have not modified it. +> +> \(d) I understand and agree that this project and the contribution are +> public and that a record of the contribution (including all personal +> information I submit with it, including my sign-off) is maintained +> indefinitely and may be redistributed consistent with this project or +> the open source license(s) involved. + +Sign your work +-------------- +To accept the DCO, simply add this line to each commit message with your name and email address (*git commit -s* will do this for you): + + Signed-off-by: Jane Example + +For legal reasons, no anonymous or pseudonymous contributions are accepted. + +Other Ways to Contribute +------------------------ +If you don't feel like writing code, you can still contribute! + +1. You may submit updates and improvements to the documentation. +2. Submit articles and guides which are also part of the documentation. +3. Help answer questions on StackOverflow, Slack and GitHub. + +References +---------- +This contribution guide was inspired by the contribution guides for [Grommet](https://github.com/grommet/grommet/blob/master/CONTRIBUTING.md) and [CloudSlang](http://www.cloudslang.io/#/docs#contributing-code). \ No newline at end of file diff --git a/DCO.md b/DCO.md new file mode 100644 index 00000000..ef826db6 --- /dev/null +++ b/DCO.md @@ -0,0 +1,44 @@ +Developer's Certificate of Origin +--------------------------------- +All contributions must include acceptance of the DCO: + +> Developer Certificate of Origin Version 1.1 +> +> Copyright (C) 2004, 2006 The Linux Foundation and its contributors. 660 +> York Street, Suite 102, San Francisco, CA 94110 USA +> +> Everyone is permitted to copy and distribute verbatim copies of this +> license document, but changing it is not allowed. +> +> Developer's Certificate of Origin 1.1 +> +> By making a contribution to this project, I certify that: +> +> \(a) The contribution was created in whole or in part by me and I have +> the right to submit it under the open source license indicated in the +> file; or +> +> \(b) The contribution is based upon previous work that, to the best of my +> knowledge, is covered under an appropriate open source license and I +> have the right under that license to submit that work with +> modifications, whether created in whole or in part by me, under the same +> open source license (unless I am permitted to submit under a different +> license), as indicated in the file; or +> +> \(c) The contribution was provided directly to me by some other person +> who certified (a), (b) or (c) and I have not modified it. +> +> \(d) I understand and agree that this project and the contribution are +> public and that a record of the contribution (including all personal +> information I submit with it, including my sign-off) is maintained +> indefinitely and may be redistributed consistent with this project or +> the open source license(s) involved. + + +Sign your work +-------------- +To accept the DCO, simply add this line to each commit message with your name and email address (*git commit -s* will do this for you): + + Signed-off-by: Jane Example + +For legal reasons, no anonymous or pseudonymous contributions are accepted. \ No newline at end of file diff --git a/MAINTAINERS.md b/MAINTAINERS.md new file mode 100644 index 00000000..197baa5a --- /dev/null +++ b/MAINTAINERS.md @@ -0,0 +1,11 @@ +## Overview + +This document contains a list of maintainers in this repo. + +## Current Maintainers + +| Name | Github ID | +|-----------|-------------------------------------------| +| Valentin | [linouxis9](https://github.com/linouxis9) | +| Akiya | [Raguideau](https://github.com/Raguideau) | +| Francesco | [frossq](https://github.com/frossq) | \ No newline at end of file diff --git a/README.md b/README.md index 6a89d3c2..873fceb5 100644 --- a/README.md +++ b/README.md @@ -4,28 +4,30 @@ ---- ## Description - PacketRusher is a tool, based upon [my5G-RANTester](https://github.com/my5G/my5G-RANTester), dedicated to the performance testing and automatic validation of 5G Core Networks using simulated UE (user equipment) and gNodeB (5G base station). -If you have questions or comments, please email us: [PacketRusher team](mailto:packetrusher@hpe.com). +If you have questions or comments, feel free to open an issue. PacketRusher borrows libraries and data structures from the [free5gc project](https://github.com/free5gc/free5gc). ## Installation ### Requirements -- Ubuntu 20.04 or RHEL 8 +- Ubuntu 20.04 or RHEL + - /!\ gtp5g kernel module does not work on Ubuntu 22.04 / RHEL 9, work is under way to fix that. - Windows is not supported (Windows does not support SCTP) - Go 1.21.0 or more recent - Root privilege - Secure boot disabled (for custom kernel module) +PacketRusher is not yet supported on Docker. + ### Dependencies ```bash $ sudo apt install build-essentials linux-headers-generic make git wget tar # Warning this command will remove your existing local Go installation if you have one $ wget https://go.dev/dl/go1.21.3.linux-amd64.tar.gz && sudo rm -rf /usr/local/go && sudo tar -C /usr/local -xzf go1.21.3.linux-amd64.tar.gz # Download PacketRusher source code -$ git clone https://github.hpe.com/valentin-demmanuele/PacketRusher # or download the ZIP from https://github.hpe.com/valentin-demmanuele/PacketRusher/archive/refs/heads/master.zip and upload it to your Linux server +$ git clone https://github.com/HewlettPackard/PacketRusher # or download the ZIP from https://github.com/HewlettPackard/PacketRusher/archive/refs/heads/master.zip and upload it to your Linux server $ cd PacketRusher && export PACKETRUSHER=$PWD ``` @@ -33,6 +35,7 @@ $ cd PacketRusher && export PACKETRUSHER=$PWD ```bash $ cd $PACKETRUSHER/lib/gtp5g $ make clean && make && sudo make install +# Make sure you have Secure boot disabled if you are unable to install the custom Kernel module ``` ### Build PacketRusher CLI @@ -43,4 +46,28 @@ $ go build cmd/packetrusher.go $ ./packetrusher --help ``` -You can edit the configuration in $PACKETRUSHER/config/config.yml, and then run a basic scenario using `./packetrusher multi-ue -n 1` while in the $PACKETRUSHER folder. \ No newline at end of file +You can edit the configuration in $PACKETRUSHER/config/config.yml, and then run a basic scenario using `sudo ./packetrusher ue` while in the $PACKETRUSHER folder. +More complex scenarios are possible using `sudo ./packetrusher multi-ue`, see `./packetrusher multi-ue --help` for more details. + +## Contributing +We're thrilled that you'd like to contribute to this project. Your help is essential for keeping it great! +You can review our [contributing guide](CONTRIBUTING.md). + +### Developer's Certificate of Origin +All contributions must include acceptance of the [DCO](DCO.md). + +#### Sign your work +To accept the DCO, simply add this line to each commit message with your name and email address (*git commit -s* will do this for you): + + Signed-off-by: Jane Example + +For legal reasons, no anonymous or pseudonymous contributions are accepted. + +## License +© Copyright 2023 Hewlett Packard Enterprise Development LP + +This project is under the [Apache 2.0 License](LICENSE) license. + +By contributing here, [you agree](DCO.md) to license your contribution under the terms of the Apache 2.0 License. All files are released with the Apache License 2.0. + +PacketRusher borrows libraries and data structures from the [free5gc project](https://github.com/free5gc/free5gc), and is originally based upon [my5G-RANTester](https://github.com/my5G/my5G-RANTester). \ No newline at end of file diff --git a/app.sh b/app.sh deleted file mode 100755 index 26d2bcc6..00000000 --- a/app.sh +++ /dev/null @@ -1,4 +0,0 @@ -sudo rm /tmp/9*.sock -go mod download -go build cmd/app.go && sudo ./app multi-ue -n 1000 --loop -tr 5 -td 5000 - diff --git a/config/back.yml b/config/back.yml deleted file mode 100644 index 4a0a04e1..00000000 --- a/config/back.yml +++ /dev/null @@ -1,43 +0,0 @@ -gnodeb: - controlif: - ip: "192.168.11.13" - port: 9487 - dataif: - ip: "192.168.11.13" - port: 2152 - plmnlist: - mcc: "999" - mnc: "27" - tac: "000001" - gnbid: "000008" - slicesupportlist: - sst: "01" - sd: "000001" - -ue: - msin: "0000000120" - key: "00112233445566778899AABBCCDDEEFF" - opc: "00112233445566778899AABBCCDDEEFF" - amf: "8000" - sqn: "0000000" - dnn: "data1" - routingindicator: "4567" - hplmn: - mcc: "999" - mnc: "27" - snssai: - sst: 01 - sd: "000001" - integrity: - nia0: false - nia1: false - nia2: true - ciphering: - nea0: true - nea1: false - nea2: true -amfif: - ip: "192.168.11.10" - port: 38412 -logs: - level: 4 diff --git a/config/config.go b/config/config.go index 68344091..36eae800 100644 --- a/config/config.go +++ b/config/config.go @@ -1,3 +1,7 @@ +/** + * SPDX-License-Identifier: Apache-2.0 + * © Copyright 2023 Hewlett Packard Enterprise Development LP + */ package config import ( diff --git a/docker/Dockerfile b/docker/Dockerfile index d6bd4308..d2aee7d8 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -6,15 +6,15 @@ FROM $BASE_IMAGE as builder RUN apt-get update && apt install wget -y -RUN wget https://dl.google.com/go/go1.14.4.linux-amd64.tar.gz && tar -xvf go1.14.4.linux-amd64.tar.gz && mv go /usr/local +RUN wget https://go.dev/dl/go1.21.3.linux-amd64.tar.gz && sudo tar -C /usr/local -xzf go1.21.3.linux-amd64.tar.gz ENV GOROOT=/usr/local/go RUN mkdir goproject ENV GOPATH=/goproject ENV PATH=$GOPATH/bin:$GOROOT/bin:$PATH -COPY . /my5G-RANTester +COPY . /packetrusher -RUN cd /my5G-RANTester \ +RUN cd /packetrusher \ && go mod download \ && cd cmd && go build -o app @@ -22,7 +22,7 @@ RUN cd /my5G-RANTester \ # TARGET IMAGE #--------------------------------------------------------------------- ARG BASE_IMAGE=ubuntu:focal -FROM $BASE_IMAGE AS my5grantester +FROM $BASE_IMAGE AS packetrusher RUN apt update && apt install iproute2 iputils-ping iperf3 -y @@ -33,11 +33,11 @@ RUN mkdir goproject ENV GOPATH=/goproject ENV PATH=$GOPATH/bin:$GOROOT/bin:$PATH -WORKDIR /my5G-RANTester/config/ -COPY --from=builder /my5G-RANTester/docker/config.yml . +WORKDIR /packetrusher/config/ +COPY --from=builder /packetrusher/docker/config.yml . -WORKDIR /my5G-RANTester/cmd -COPY --from=builder /my5G-RANTester/cmd/app . -COPY --from=builder /my5G-RANTester/docker/entrypoint.sh . +WORKDIR /packetrusher/cmd +COPY --from=builder /packetrusher/cmd/app . +COPY --from=builder /packetrusher/docker/entrypoint.sh . -ENTRYPOINT ["/my5G-RANTester/cmd/entrypoint.sh"] +ENTRYPOINT ["/packetrusher/cmd/entrypoint.sh"] diff --git a/docker/README.md b/docker/README.md index 0b6bbd5c..4051c7d9 100644 --- a/docker/README.md +++ b/docker/README.md @@ -1,11 +1,7 @@ ### Step 1. Build Docker Image ### ```bash -docker build -f docker/Dockerfile --target my5grantester --tag my5grantester:latest . -``` -[OPTIONAL] By defalut ubuntu focal is used as base image. We can also pass BASE_IMAGE as argument -
e.g. to build with ubuntu jammy -```bash -docker build --build-arg BASE_IMAGE=ubuntu:jammy -f docker/Dockerfile --target my5grantester --tag my5grantester:latest . +docker build -f docker/Dockerfile --target packetrusher --tag packetrusher:latest . ``` ### Step 2. Launch Tester ### Make sure you have set up core-network already since we will reuse docker network) @@ -13,5 +9,3 @@ Make sure you have set up core-network already since we will reuse docker networ ```bash docker-compose -f docker/docker-compose.yaml up -d ``` - - diff --git a/docker/config.yml b/docker/config.yml index b1acc5c4..9a933f1a 100644 --- a/docker/config.yml +++ b/docker/config.yml @@ -27,6 +27,16 @@ ue: snssai: sst: @SST_UE@ sd: "@SD@" + integrity: + nia0: false + nia1: false + nia2: true + nia3: false + ciphering: + nea0: false + nea1: false + nea2: true + nea3: false amfif: ip: "@NGAP_REMOTE_ADDR@" diff --git a/docker/docker-compose.yml b/docker/docker-compose.yml index 3044e58e..4996d7bc 100644 --- a/docker/docker-compose.yml +++ b/docker/docker-compose.yml @@ -1,8 +1,8 @@ version: '3.8' services: - my5grantester: - image: my5grantester:latest - container_name: my5grantester + packetrusher: + image: packetrusher:latest + container_name: packetrusher privileged: true entrypoint: /bin/bash -c "sleep infinity" environment: diff --git a/docker/entrypoint.sh b/docker/entrypoint.sh index 9bf184ca..15fcb8a7 100755 --- a/docker/entrypoint.sh +++ b/docker/entrypoint.sh @@ -2,7 +2,7 @@ set -euo pipefail -CONFIG_DIR="/my5G-RANTester/config" +CONFIG_DIR="/packetrusher/config" DEREG_AFTER=${DEREG_AFTER:-3600} diff --git a/internal/common/auth/auth.go b/internal/common/auth/auth.go index 512969a0..c87a33b1 100644 --- a/internal/common/auth/auth.go +++ b/internal/common/auth/auth.go @@ -1,3 +1,7 @@ +/** + * SPDX-License-Identifier: Apache-2.0 + * © Copyright 2023 Hewlett Packard Enterprise Development LP + */ package auth import ( diff --git a/internal/common/tools/tools.go b/internal/common/tools/tools.go index 6342b66d..ef9eb8f4 100644 --- a/internal/common/tools/tools.go +++ b/internal/common/tools/tools.go @@ -1,3 +1,7 @@ +/** + * SPDX-License-Identifier: Apache-2.0 + * © Copyright 2023 Hewlett Packard Enterprise Development LP + */ package tools import ( diff --git a/internal/control_test_engine/gnb/context/amf.go b/internal/control_test_engine/gnb/context/amf.go index 5b634498..6adbad66 100644 --- a/internal/control_test_engine/gnb/context/amf.go +++ b/internal/control_test_engine/gnb/context/amf.go @@ -1,3 +1,7 @@ +/** + * SPDX-License-Identifier: Apache-2.0 + * © Copyright 2023 Hewlett Packard Enterprise Development LP + */ package context import ( diff --git a/internal/control_test_engine/gnb/context/context.go b/internal/control_test_engine/gnb/context/context.go index 9576c633..1881a637 100644 --- a/internal/control_test_engine/gnb/context/context.go +++ b/internal/control_test_engine/gnb/context/context.go @@ -1,3 +1,7 @@ +/** + * SPDX-License-Identifier: Apache-2.0 + * © Copyright 2023 Hewlett Packard Enterprise Development LP + */ package context import ( diff --git a/internal/control_test_engine/gnb/context/msg.go b/internal/control_test_engine/gnb/context/msg.go index 09152c7d..12063d4e 100644 --- a/internal/control_test_engine/gnb/context/msg.go +++ b/internal/control_test_engine/gnb/context/msg.go @@ -1,3 +1,7 @@ +/** + * SPDX-License-Identifier: Apache-2.0 + * © Copyright 2023 Hewlett Packard Enterprise Development LP + */ package context type UEMessage struct { diff --git a/internal/control_test_engine/gnb/context/ue.go b/internal/control_test_engine/gnb/context/ue.go index 119fecf1..13241f87 100644 --- a/internal/control_test_engine/gnb/context/ue.go +++ b/internal/control_test_engine/gnb/context/ue.go @@ -1,3 +1,7 @@ +/** + * SPDX-License-Identifier: Apache-2.0 + * © Copyright 2023 Hewlett Packard Enterprise Development LP + */ package context import ( diff --git a/internal/control_test_engine/gnb/data/service/service.go b/internal/control_test_engine/gnb/data/service/service.go index 49158461..68cfb70b 100644 --- a/internal/control_test_engine/gnb/data/service/service.go +++ b/internal/control_test_engine/gnb/data/service/service.go @@ -1,3 +1,7 @@ +/** + * SPDX-License-Identifier: Apache-2.0 + * © Copyright 2023 Hewlett Packard Enterprise Development LP + */ package service import ( diff --git a/internal/control_test_engine/gnb/gnb.go b/internal/control_test_engine/gnb/gnb.go index a286099b..3f30c6d0 100644 --- a/internal/control_test_engine/gnb/gnb.go +++ b/internal/control_test_engine/gnb/gnb.go @@ -1,3 +1,7 @@ +/** + * SPDX-License-Identifier: Apache-2.0 + * © Copyright 2023 Hewlett Packard Enterprise Development LP + */ package gnb import ( diff --git a/internal/control_test_engine/gnb/nas/dispatcher.go b/internal/control_test_engine/gnb/nas/dispatcher.go index 9f39d281..55060e53 100644 --- a/internal/control_test_engine/gnb/nas/dispatcher.go +++ b/internal/control_test_engine/gnb/nas/dispatcher.go @@ -1,3 +1,7 @@ +/** + * SPDX-License-Identifier: Apache-2.0 + * © Copyright 2023 Hewlett Packard Enterprise Development LP + */ package nas import ( diff --git a/internal/control_test_engine/gnb/nas/handler/handler.go b/internal/control_test_engine/gnb/nas/handler/handler.go index 03e05b51..cdf47adc 100644 --- a/internal/control_test_engine/gnb/nas/handler/handler.go +++ b/internal/control_test_engine/gnb/nas/handler/handler.go @@ -1,3 +1,7 @@ +/** + * SPDX-License-Identifier: Apache-2.0 + * © Copyright 2023 Hewlett Packard Enterprise Development LP + */ package handler import ( diff --git a/internal/control_test_engine/gnb/nas/message/sender/send.go b/internal/control_test_engine/gnb/nas/message/sender/send.go index a15a6dad..2e93e277 100644 --- a/internal/control_test_engine/gnb/nas/message/sender/send.go +++ b/internal/control_test_engine/gnb/nas/message/sender/send.go @@ -1,3 +1,7 @@ +/** + * SPDX-License-Identifier: Apache-2.0 + * © Copyright 2023 Hewlett Packard Enterprise Development LP + */ package sender import ( diff --git a/internal/control_test_engine/gnb/nas/service/service.go b/internal/control_test_engine/gnb/nas/service/service.go index a8af396e..7cf0db4e 100644 --- a/internal/control_test_engine/gnb/nas/service/service.go +++ b/internal/control_test_engine/gnb/nas/service/service.go @@ -1,3 +1,7 @@ +/** + * SPDX-License-Identifier: Apache-2.0 + * © Copyright 2023 Hewlett Packard Enterprise Development LP + */ package service import ( diff --git a/internal/control_test_engine/gnb/ngap/dispatcher.go b/internal/control_test_engine/gnb/ngap/dispatcher.go index bb3603c4..719212fe 100644 --- a/internal/control_test_engine/gnb/ngap/dispatcher.go +++ b/internal/control_test_engine/gnb/ngap/dispatcher.go @@ -1,3 +1,7 @@ +/** + * SPDX-License-Identifier: Apache-2.0 + * © Copyright 2023 Hewlett Packard Enterprise Development LP + */ package ngap import ( diff --git a/internal/control_test_engine/gnb/ngap/handler/handler.go b/internal/control_test_engine/gnb/ngap/handler/handler.go index 5895515f..d78b2d76 100644 --- a/internal/control_test_engine/gnb/ngap/handler/handler.go +++ b/internal/control_test_engine/gnb/ngap/handler/handler.go @@ -1,3 +1,7 @@ +/** + * SPDX-License-Identifier: Apache-2.0 + * © Copyright 2023 Hewlett Packard Enterprise Development LP + */ package handler import ( diff --git a/internal/control_test_engine/gnb/ngap/message/ngap_control/interface_management/amf-configuration-update.go b/internal/control_test_engine/gnb/ngap/message/ngap_control/interface_management/amf-configuration-update.go index b4031927..a3320b41 100644 --- a/internal/control_test_engine/gnb/ngap/message/ngap_control/interface_management/amf-configuration-update.go +++ b/internal/control_test_engine/gnb/ngap/message/ngap_control/interface_management/amf-configuration-update.go @@ -1,3 +1,7 @@ +/** + * SPDX-License-Identifier: Apache-2.0 + * © Copyright 2023 Hewlett Packard Enterprise Development LP + */ package interface_management import ( diff --git a/internal/control_test_engine/gnb/ngap/message/ngap_control/interface_management/ng-setup-request.go b/internal/control_test_engine/gnb/ngap/message/ngap_control/interface_management/ng-setup-request.go index 26d566f3..1a4e52d0 100644 --- a/internal/control_test_engine/gnb/ngap/message/ngap_control/interface_management/ng-setup-request.go +++ b/internal/control_test_engine/gnb/ngap/message/ngap_control/interface_management/ng-setup-request.go @@ -1,3 +1,7 @@ +/** + * SPDX-License-Identifier: Apache-2.0 + * © Copyright 2023 Hewlett Packard Enterprise Development LP + */ package interface_management import ( diff --git a/internal/control_test_engine/gnb/ngap/message/ngap_control/interface_management/ng-setup-response.go b/internal/control_test_engine/gnb/ngap/message/ngap_control/interface_management/ng-setup-response.go index 859e4864..b9257861 100644 --- a/internal/control_test_engine/gnb/ngap/message/ngap_control/interface_management/ng-setup-response.go +++ b/internal/control_test_engine/gnb/ngap/message/ngap_control/interface_management/ng-setup-response.go @@ -1,3 +1,7 @@ +/** + * SPDX-License-Identifier: Apache-2.0 + * © Copyright 2023 Hewlett Packard Enterprise Development LP + */ package interface_management import ( diff --git a/internal/control_test_engine/gnb/ngap/message/ngap_control/nas_transport/downlink-nas-transport.go b/internal/control_test_engine/gnb/ngap/message/ngap_control/nas_transport/downlink-nas-transport.go index d921f844..f470bf9d 100644 --- a/internal/control_test_engine/gnb/ngap/message/ngap_control/nas_transport/downlink-nas-transport.go +++ b/internal/control_test_engine/gnb/ngap/message/ngap_control/nas_transport/downlink-nas-transport.go @@ -1,3 +1,7 @@ +/** + * SPDX-License-Identifier: Apache-2.0 + * © Copyright 2023 Hewlett Packard Enterprise Development LP + */ package nas_transport import ( diff --git a/internal/control_test_engine/gnb/ngap/message/ngap_control/nas_transport/initial-ue-message.go b/internal/control_test_engine/gnb/ngap/message/ngap_control/nas_transport/initial-ue-message.go index dfbeddca..2247e6ee 100644 --- a/internal/control_test_engine/gnb/ngap/message/ngap_control/nas_transport/initial-ue-message.go +++ b/internal/control_test_engine/gnb/ngap/message/ngap_control/nas_transport/initial-ue-message.go @@ -1,3 +1,7 @@ +/** + * SPDX-License-Identifier: Apache-2.0 + * © Copyright 2023 Hewlett Packard Enterprise Development LP + */ package nas_transport import ( diff --git a/internal/control_test_engine/gnb/ngap/message/ngap_control/nas_transport/uplink-nas-transport.go b/internal/control_test_engine/gnb/ngap/message/ngap_control/nas_transport/uplink-nas-transport.go index 9fbd72a8..29da1481 100644 --- a/internal/control_test_engine/gnb/ngap/message/ngap_control/nas_transport/uplink-nas-transport.go +++ b/internal/control_test_engine/gnb/ngap/message/ngap_control/nas_transport/uplink-nas-transport.go @@ -1,3 +1,7 @@ +/** + * SPDX-License-Identifier: Apache-2.0 + * © Copyright 2023 Hewlett Packard Enterprise Development LP + */ package nas_transport import ( diff --git a/internal/control_test_engine/gnb/ngap/message/ngap_control/pdu_session_management/decode-pdu-session-resource.go b/internal/control_test_engine/gnb/ngap/message/ngap_control/pdu_session_management/decode-pdu-session-resource.go index 8af8f1ac..06470851 100644 --- a/internal/control_test_engine/gnb/ngap/message/ngap_control/pdu_session_management/decode-pdu-session-resource.go +++ b/internal/control_test_engine/gnb/ngap/message/ngap_control/pdu_session_management/decode-pdu-session-resource.go @@ -1,3 +1,7 @@ +/** + * SPDX-License-Identifier: Apache-2.0 + * © Copyright 2023 Hewlett Packard Enterprise Development LP + */ package pdu_session_management import ( diff --git a/internal/control_test_engine/gnb/ngap/message/ngap_control/pdu_session_management/pdu-session-release-response.go b/internal/control_test_engine/gnb/ngap/message/ngap_control/pdu_session_management/pdu-session-release-response.go index 39835a1e..1af135e8 100644 --- a/internal/control_test_engine/gnb/ngap/message/ngap_control/pdu_session_management/pdu-session-release-response.go +++ b/internal/control_test_engine/gnb/ngap/message/ngap_control/pdu_session_management/pdu-session-release-response.go @@ -1,3 +1,7 @@ +/** + * SPDX-License-Identifier: Apache-2.0 + * © Copyright 2023 Hewlett Packard Enterprise Development LP + */ package pdu_session_management import ( diff --git a/internal/control_test_engine/gnb/ngap/message/ngap_control/pdu_session_management/pdu-session-resource-setup-response.go b/internal/control_test_engine/gnb/ngap/message/ngap_control/pdu_session_management/pdu-session-resource-setup-response.go index a9876320..ecdf95fa 100644 --- a/internal/control_test_engine/gnb/ngap/message/ngap_control/pdu_session_management/pdu-session-resource-setup-response.go +++ b/internal/control_test_engine/gnb/ngap/message/ngap_control/pdu_session_management/pdu-session-resource-setup-response.go @@ -1,3 +1,7 @@ +/** + * SPDX-License-Identifier: Apache-2.0 + * © Copyright 2023 Hewlett Packard Enterprise Development LP + */ package pdu_session_management import ( diff --git a/internal/control_test_engine/gnb/ngap/message/ngap_control/ue_context_management/initial-context-setup-response.go b/internal/control_test_engine/gnb/ngap/message/ngap_control/ue_context_management/initial-context-setup-response.go index 566918e4..e4ffeb29 100644 --- a/internal/control_test_engine/gnb/ngap/message/ngap_control/ue_context_management/initial-context-setup-response.go +++ b/internal/control_test_engine/gnb/ngap/message/ngap_control/ue_context_management/initial-context-setup-response.go @@ -1,3 +1,7 @@ +/** + * SPDX-License-Identifier: Apache-2.0 + * © Copyright 2023 Hewlett Packard Enterprise Development LP + */ package ue_context_management import ( diff --git a/internal/control_test_engine/gnb/ngap/message/ngap_control/ue_context_management/ue-context-release-complete.go b/internal/control_test_engine/gnb/ngap/message/ngap_control/ue_context_management/ue-context-release-complete.go index 12118076..1281b7f8 100644 --- a/internal/control_test_engine/gnb/ngap/message/ngap_control/ue_context_management/ue-context-release-complete.go +++ b/internal/control_test_engine/gnb/ngap/message/ngap_control/ue_context_management/ue-context-release-complete.go @@ -1,3 +1,7 @@ +/** + * SPDX-License-Identifier: Apache-2.0 + * © Copyright 2023 Hewlett Packard Enterprise Development LP + */ package ue_context_management import ( diff --git a/internal/control_test_engine/gnb/ngap/message/ngap_control/ue_mobility_management/path-switch-request.go b/internal/control_test_engine/gnb/ngap/message/ngap_control/ue_mobility_management/path-switch-request.go index 832decc8..8170dbce 100644 --- a/internal/control_test_engine/gnb/ngap/message/ngap_control/ue_mobility_management/path-switch-request.go +++ b/internal/control_test_engine/gnb/ngap/message/ngap_control/ue_mobility_management/path-switch-request.go @@ -1,3 +1,7 @@ +/** + * SPDX-License-Identifier: Apache-2.0 + * © Copyright 2023 Hewlett Packard Enterprise Development LP + */ package ue_mobility_management import ( diff --git a/internal/control_test_engine/gnb/ngap/message/sender/send.go b/internal/control_test_engine/gnb/ngap/message/sender/send.go index d8d0ed44..10dba8d9 100644 --- a/internal/control_test_engine/gnb/ngap/message/sender/send.go +++ b/internal/control_test_engine/gnb/ngap/message/sender/send.go @@ -1,3 +1,7 @@ +/** + * SPDX-License-Identifier: Apache-2.0 + * © Copyright 2023 Hewlett Packard Enterprise Development LP + */ package sender import ( diff --git a/internal/control_test_engine/gnb/ngap/service/service.go b/internal/control_test_engine/gnb/ngap/service/service.go index 64a9d751..95b2f691 100644 --- a/internal/control_test_engine/gnb/ngap/service/service.go +++ b/internal/control_test_engine/gnb/ngap/service/service.go @@ -1,3 +1,7 @@ +/** + * SPDX-License-Identifier: Apache-2.0 + * © Copyright 2023 Hewlett Packard Enterprise Development LP + */ package service import ( diff --git a/internal/control_test_engine/gnb/ngap/trigger/trigger.go b/internal/control_test_engine/gnb/ngap/trigger/trigger.go index 8b46ccf4..2812ed9e 100644 --- a/internal/control_test_engine/gnb/ngap/trigger/trigger.go +++ b/internal/control_test_engine/gnb/ngap/trigger/trigger.go @@ -1,3 +1,7 @@ +/** + * SPDX-License-Identifier: Apache-2.0 + * © Copyright 2023 Hewlett Packard Enterprise Development LP + */ package trigger import ( diff --git a/internal/control_test_engine/procedures/UeTesterMessage.go b/internal/control_test_engine/procedures/UeTesterMessage.go index 12656e2e..897350d1 100644 --- a/internal/control_test_engine/procedures/UeTesterMessage.go +++ b/internal/control_test_engine/procedures/UeTesterMessage.go @@ -1,3 +1,7 @@ +/** + * SPDX-License-Identifier: Apache-2.0 + * © Copyright 2023 Hewlett Packard Enterprise Development LP + */ package procedures import "my5G-RANTester/internal/control_test_engine/gnb/context" diff --git a/internal/control_test_engine/ue/gtp/service/service.go b/internal/control_test_engine/ue/gtp/service/service.go index bd904b5d..c7df8609 100644 --- a/internal/control_test_engine/ue/gtp/service/service.go +++ b/internal/control_test_engine/ue/gtp/service/service.go @@ -1,3 +1,7 @@ +/** + * SPDX-License-Identifier: Apache-2.0 + * © Copyright 2023 Hewlett Packard Enterprise Development LP + */ package service import ( diff --git a/internal/control_test_engine/ue/nas/dispatcher.go b/internal/control_test_engine/ue/nas/dispatcher.go index fa7f21a1..a3c89165 100644 --- a/internal/control_test_engine/ue/nas/dispatcher.go +++ b/internal/control_test_engine/ue/nas/dispatcher.go @@ -1,3 +1,7 @@ +/** + * SPDX-License-Identifier: Apache-2.0 + * © Copyright 2023 Hewlett Packard Enterprise Development LP + */ package nas import ( diff --git a/internal/control_test_engine/ue/nas/handler/handler.go b/internal/control_test_engine/ue/nas/handler/handler.go index 1b310d8c..d1bb9338 100644 --- a/internal/control_test_engine/ue/nas/handler/handler.go +++ b/internal/control_test_engine/ue/nas/handler/handler.go @@ -1,3 +1,7 @@ +/** + * SPDX-License-Identifier: Apache-2.0 + * © Copyright 2023 Hewlett Packard Enterprise Development LP + */ package handler import ( diff --git a/internal/control_test_engine/ue/nas/message/nas_control/decode-nas-pdu.go b/internal/control_test_engine/ue/nas/message/nas_control/decode-nas-pdu.go index 84ff1769..26f78e1d 100644 --- a/internal/control_test_engine/ue/nas/message/nas_control/decode-nas-pdu.go +++ b/internal/control_test_engine/ue/nas/message/nas_control/decode-nas-pdu.go @@ -1,3 +1,7 @@ +/** + * SPDX-License-Identifier: Apache-2.0 + * © Copyright 2023 Hewlett Packard Enterprise Development LP + */ package nas_control import ( diff --git a/internal/control_test_engine/ue/nas/message/nas_control/integrity-ciphering-nas.go b/internal/control_test_engine/ue/nas/message/nas_control/integrity-ciphering-nas.go index e831b577..b503fc79 100644 --- a/internal/control_test_engine/ue/nas/message/nas_control/integrity-ciphering-nas.go +++ b/internal/control_test_engine/ue/nas/message/nas_control/integrity-ciphering-nas.go @@ -1,3 +1,7 @@ +/** + * SPDX-License-Identifier: Apache-2.0 + * © Copyright 2023 Hewlett Packard Enterprise Development LP + */ package nas_control import ( diff --git a/internal/control_test_engine/ue/nas/message/nas_control/mm_5gs/authentication-failure.go b/internal/control_test_engine/ue/nas/message/nas_control/mm_5gs/authentication-failure.go index 88a212c6..0f343a8e 100644 --- a/internal/control_test_engine/ue/nas/message/nas_control/mm_5gs/authentication-failure.go +++ b/internal/control_test_engine/ue/nas/message/nas_control/mm_5gs/authentication-failure.go @@ -1,3 +1,7 @@ +/** + * SPDX-License-Identifier: Apache-2.0 + * © Copyright 2023 Hewlett Packard Enterprise Development LP + */ package mm_5gs import ( diff --git a/internal/control_test_engine/ue/nas/message/nas_control/mm_5gs/authentication-response.go b/internal/control_test_engine/ue/nas/message/nas_control/mm_5gs/authentication-response.go index 70cd33eb..5c976d93 100644 --- a/internal/control_test_engine/ue/nas/message/nas_control/mm_5gs/authentication-response.go +++ b/internal/control_test_engine/ue/nas/message/nas_control/mm_5gs/authentication-response.go @@ -1,3 +1,7 @@ +/** + * SPDX-License-Identifier: Apache-2.0 + * © Copyright 2023 Hewlett Packard Enterprise Development LP + */ package mm_5gs import ( diff --git a/internal/control_test_engine/ue/nas/message/nas_control/mm_5gs/deregistration-request.go b/internal/control_test_engine/ue/nas/message/nas_control/mm_5gs/deregistration-request.go index 45de6f58..6011eca1 100644 --- a/internal/control_test_engine/ue/nas/message/nas_control/mm_5gs/deregistration-request.go +++ b/internal/control_test_engine/ue/nas/message/nas_control/mm_5gs/deregistration-request.go @@ -1,3 +1,7 @@ +/** + * SPDX-License-Identifier: Apache-2.0 + * © Copyright 2023 Hewlett Packard Enterprise Development LP + */ package mm_5gs import ( diff --git a/internal/control_test_engine/ue/nas/message/nas_control/mm_5gs/registration-complete.go b/internal/control_test_engine/ue/nas/message/nas_control/mm_5gs/registration-complete.go index a3ec4e8b..824fa6db 100644 --- a/internal/control_test_engine/ue/nas/message/nas_control/mm_5gs/registration-complete.go +++ b/internal/control_test_engine/ue/nas/message/nas_control/mm_5gs/registration-complete.go @@ -1,3 +1,7 @@ +/** + * SPDX-License-Identifier: Apache-2.0 + * © Copyright 2023 Hewlett Packard Enterprise Development LP + */ package mm_5gs import ( diff --git a/internal/control_test_engine/ue/nas/message/nas_control/mm_5gs/registration-request.go b/internal/control_test_engine/ue/nas/message/nas_control/mm_5gs/registration-request.go index 33ae7b4a..9ebe0350 100644 --- a/internal/control_test_engine/ue/nas/message/nas_control/mm_5gs/registration-request.go +++ b/internal/control_test_engine/ue/nas/message/nas_control/mm_5gs/registration-request.go @@ -1,3 +1,7 @@ +/** + * SPDX-License-Identifier: Apache-2.0 + * © Copyright 2023 Hewlett Packard Enterprise Development LP + */ package mm_5gs import ( diff --git a/internal/control_test_engine/ue/nas/message/nas_control/mm_5gs/security-mode-complete.go b/internal/control_test_engine/ue/nas/message/nas_control/mm_5gs/security-mode-complete.go index 029d5780..7dc5c8d6 100644 --- a/internal/control_test_engine/ue/nas/message/nas_control/mm_5gs/security-mode-complete.go +++ b/internal/control_test_engine/ue/nas/message/nas_control/mm_5gs/security-mode-complete.go @@ -1,3 +1,7 @@ +/** + * SPDX-License-Identifier: Apache-2.0 + * © Copyright 2023 Hewlett Packard Enterprise Development LP + */ package mm_5gs import ( diff --git a/internal/control_test_engine/ue/nas/message/nas_control/mm_5gs/ul-nas-transport.go b/internal/control_test_engine/ue/nas/message/nas_control/mm_5gs/ul-nas-transport.go index fb7519e1..f6cb6a2a 100644 --- a/internal/control_test_engine/ue/nas/message/nas_control/mm_5gs/ul-nas-transport.go +++ b/internal/control_test_engine/ue/nas/message/nas_control/mm_5gs/ul-nas-transport.go @@ -1,3 +1,7 @@ +/** + * SPDX-License-Identifier: Apache-2.0 + * © Copyright 2023 Hewlett Packard Enterprise Development LP + */ package mm_5gs import ( diff --git a/internal/control_test_engine/ue/nas/message/nas_control/sm_5gs/pdu-session-establishment-accept.go b/internal/control_test_engine/ue/nas/message/nas_control/sm_5gs/pdu-session-establishment-accept.go index 16ba74ca..346a9f51 100644 --- a/internal/control_test_engine/ue/nas/message/nas_control/sm_5gs/pdu-session-establishment-accept.go +++ b/internal/control_test_engine/ue/nas/message/nas_control/sm_5gs/pdu-session-establishment-accept.go @@ -1,3 +1,7 @@ +/** + * SPDX-License-Identifier: Apache-2.0 + * © Copyright 2023 Hewlett Packard Enterprise Development LP + */ package sm_5gs import ( diff --git a/internal/control_test_engine/ue/nas/message/nas_control/sm_5gs/pdu-session-establishment-request.go b/internal/control_test_engine/ue/nas/message/nas_control/sm_5gs/pdu-session-establishment-request.go index c4bfb053..0c53875b 100644 --- a/internal/control_test_engine/ue/nas/message/nas_control/sm_5gs/pdu-session-establishment-request.go +++ b/internal/control_test_engine/ue/nas/message/nas_control/sm_5gs/pdu-session-establishment-request.go @@ -1,3 +1,7 @@ +/** + * SPDX-License-Identifier: Apache-2.0 + * © Copyright 2023 Hewlett Packard Enterprise Development LP + */ package sm_5gs import ( diff --git a/internal/control_test_engine/ue/nas/message/sender/send.go b/internal/control_test_engine/ue/nas/message/sender/send.go index dad4457b..725e685f 100644 --- a/internal/control_test_engine/ue/nas/message/sender/send.go +++ b/internal/control_test_engine/ue/nas/message/sender/send.go @@ -1,3 +1,7 @@ +/** + * SPDX-License-Identifier: Apache-2.0 + * © Copyright 2023 Hewlett Packard Enterprise Development LP + */ package sender import ( diff --git a/internal/control_test_engine/ue/nas/service/service.go b/internal/control_test_engine/ue/nas/service/service.go index fc33628f..57d84f87 100644 --- a/internal/control_test_engine/ue/nas/service/service.go +++ b/internal/control_test_engine/ue/nas/service/service.go @@ -1,3 +1,8 @@ +/** + * SPDX-License-Identifier: Apache-2.0 + * © Copyright 2023 Hewlett Packard Enterprise Development LP + */ + // Package service package service diff --git a/internal/control_test_engine/ue/nas/trigger/trigger.go b/internal/control_test_engine/ue/nas/trigger/trigger.go index dd7f02f3..c626ef19 100644 --- a/internal/control_test_engine/ue/nas/trigger/trigger.go +++ b/internal/control_test_engine/ue/nas/trigger/trigger.go @@ -1,3 +1,8 @@ +/** + * SPDX-License-Identifier: Apache-2.0 + * © Copyright 2023 Hewlett Packard Enterprise Development LP + */ + // Package trigger // Triggers are the basic building block of test scenarios. // They allow to trigger NAS procedures by the UE, eg: registration, PDU Session creation... diff --git a/internal/control_test_engine/ue/scenario/scenario-ue-message.go b/internal/control_test_engine/ue/scenario/scenario-ue-message.go index c9308cd4..1257a7e1 100644 --- a/internal/control_test_engine/ue/scenario/scenario-ue-message.go +++ b/internal/control_test_engine/ue/scenario/scenario-ue-message.go @@ -1,3 +1,7 @@ +/** + * SPDX-License-Identifier: Apache-2.0 + * © Copyright 2023 Hewlett Packard Enterprise Development LP + */ package scenario type ScenarioMessage struct { diff --git a/internal/control_test_engine/ue/state/dispatch.go b/internal/control_test_engine/ue/state/dispatch.go index aa78149d..27d5d229 100644 --- a/internal/control_test_engine/ue/state/dispatch.go +++ b/internal/control_test_engine/ue/state/dispatch.go @@ -1,3 +1,7 @@ +/** + * SPDX-License-Identifier: Apache-2.0 + * © Copyright 2023 Hewlett Packard Enterprise Development LP + */ package state import ( diff --git a/internal/control_test_engine/ue/ue.go b/internal/control_test_engine/ue/ue.go index 31136ceb..e4b4076c 100644 --- a/internal/control_test_engine/ue/ue.go +++ b/internal/control_test_engine/ue/ue.go @@ -1,3 +1,7 @@ +/** + * SPDX-License-Identifier: Apache-2.0 + * © Copyright 2023 Hewlett Packard Enterprise Development LP + */ package ue import ( diff --git a/internal/external_work_load/test.go b/internal/external_work_load/test.go index cd343830..2d5aeb7e 100644 --- a/internal/external_work_load/test.go +++ b/internal/external_work_load/test.go @@ -1 +1 @@ - package external_work_load +package external_work_load diff --git a/internal/script/script.go b/internal/script/script.go index 5935ef1f..672d31cb 100644 --- a/internal/script/script.go +++ b/internal/script/script.go @@ -1,3 +1,7 @@ +/** + * SPDX-License-Identifier: Apache-2.0 + * © Copyright 2023 Hewlett Packard Enterprise Development LP + */ package script import ( diff --git a/internal/templates/test-amf-availability.go b/internal/templates/test-amf-availability.go index 43b915c2..c6c68a77 100644 --- a/internal/templates/test-amf-availability.go +++ b/internal/templates/test-amf-availability.go @@ -1,3 +1,7 @@ +/** + * SPDX-License-Identifier: Apache-2.0 + * © Copyright 2023 Hewlett Packard Enterprise Development LP + */ package templates import ( diff --git a/internal/templates/test-amf-requests-per-second.go b/internal/templates/test-amf-requests-per-second.go index 49708aa7..8a4e3c7b 100644 --- a/internal/templates/test-amf-requests-per-second.go +++ b/internal/templates/test-amf-requests-per-second.go @@ -1,3 +1,7 @@ +/** + * SPDX-License-Identifier: Apache-2.0 + * © Copyright 2023 Hewlett Packard Enterprise Development LP + */ package templates import ( diff --git a/internal/templates/test-attach-gnb-with-configuration.go b/internal/templates/test-attach-gnb-with-configuration.go index c8ccd372..dc9ecc2e 100644 --- a/internal/templates/test-attach-gnb-with-configuration.go +++ b/internal/templates/test-attach-gnb-with-configuration.go @@ -1,3 +1,7 @@ +/** + * SPDX-License-Identifier: Apache-2.0 + * © Copyright 2023 Hewlett Packard Enterprise Development LP + */ package templates import ( diff --git a/internal/templates/test-attach-ue-with-configuration.go b/internal/templates/test-attach-ue-with-configuration.go index 1b0e3218..0c1c5966 100644 --- a/internal/templates/test-attach-ue-with-configuration.go +++ b/internal/templates/test-attach-ue-with-configuration.go @@ -1,3 +1,7 @@ +/** + * SPDX-License-Identifier: Apache-2.0 + * © Copyright 2023 Hewlett Packard Enterprise Development LP + */ package templates func TestAttachUeWithConfiguration(tunnelEnabled bool) { diff --git a/internal/templates/test-custom-scenario.go b/internal/templates/test-custom-scenario.go index e9557dd2..54886490 100644 --- a/internal/templates/test-custom-scenario.go +++ b/internal/templates/test-custom-scenario.go @@ -1,3 +1,7 @@ +/** + * SPDX-License-Identifier: Apache-2.0 + * © Copyright 2023 Hewlett Packard Enterprise Development LP + */ package templates import ( diff --git a/internal/templates/test-multi-ues-in-queue.go b/internal/templates/test-multi-ues-in-queue.go index aa9bbab2..8d7b2661 100644 --- a/internal/templates/test-multi-ues-in-queue.go +++ b/internal/templates/test-multi-ues-in-queue.go @@ -1,3 +1,7 @@ +/** + * SPDX-License-Identifier: Apache-2.0 + * © Copyright 2023 Hewlett Packard Enterprise Development LP + */ package templates import ( diff --git a/internal/utils/pcap.go b/internal/utils/pcap.go index 67857391..cdc19465 100644 --- a/internal/utils/pcap.go +++ b/internal/utils/pcap.go @@ -1,3 +1,7 @@ +/** + * SPDX-License-Identifier: Apache-2.0 + * © Copyright 2023 Hewlett Packard Enterprise Development LP + */ package pcap import ( diff --git a/scenarios/sample/sample.go b/scenarios/sample/sample.go index 6f74080c..9a02a5bb 100644 --- a/scenarios/sample/sample.go +++ b/scenarios/sample/sample.go @@ -1,3 +1,7 @@ +/** + * SPDX-License-Identifier: Apache-2.0 + * © Copyright 2023 Hewlett Packard Enterprise Development LP + */ package main import "fmt" diff --git a/script.sh b/script.sh deleted file mode 100755 index 5fc61ed3..00000000 --- a/script.sh +++ /dev/null @@ -1,3 +0,0 @@ -sudo rm /tmp/9*.sock -go mod download -go build cmd/app.go && sudo ./app c --scenario /home/athomgmt/my5G-RANTester/scenarios/scenario1/scenario1.wasm diff --git a/test/amf/amf.go b/test/amf/amf.go index 254abacd..0fd55ee4 100644 --- a/test/amf/amf.go +++ b/test/amf/amf.go @@ -1,3 +1,8 @@ +/** + * SPDX-License-Identifier: Apache-2.0 + * © Copyright 2023 Hewlett Packard Enterprise Development LP + */ + package amf import ( diff --git a/test/amf/context/context.go b/test/amf/context/context.go index 3bab72d1..333d3b82 100644 --- a/test/amf/context/context.go +++ b/test/amf/context/context.go @@ -1,3 +1,7 @@ +/** + * SPDX-License-Identifier: Apache-2.0 + * © Copyright 2023 Hewlett Packard Enterprise Development LP + */ package context import ( diff --git a/test/amf/context/gnb.go b/test/amf/context/gnb.go index b67b2c04..bd608523 100644 --- a/test/amf/context/gnb.go +++ b/test/amf/context/gnb.go @@ -1,3 +1,7 @@ +/** + * SPDX-License-Identifier: Apache-2.0 + * © Copyright 2023 Hewlett Packard Enterprise Development LP + */ package context import ( diff --git a/test/amf/context/securityContext.go b/test/amf/context/securityContext.go index 26e40e49..cd4f9062 100644 --- a/test/amf/context/securityContext.go +++ b/test/amf/context/securityContext.go @@ -1,3 +1,7 @@ +/** + * SPDX-License-Identifier: Apache-2.0 + * © Copyright 2023 Hewlett Packard Enterprise Development LP + */ package context import ( diff --git a/test/amf/context/ue.go b/test/amf/context/ue.go index 5b22c7f5..9bf6fc92 100644 --- a/test/amf/context/ue.go +++ b/test/amf/context/ue.go @@ -1,3 +1,7 @@ +/** + * SPDX-License-Identifier: Apache-2.0 + * © Copyright 2023 Hewlett Packard Enterprise Development LP + */ package context import ( diff --git a/test/amf/lib/convert/location.go b/test/amf/lib/convert/location.go index 9a672c24..481d23d6 100644 --- a/test/amf/lib/convert/location.go +++ b/test/amf/lib/convert/location.go @@ -1,3 +1,7 @@ +/** + * SPDX-License-Identifier: Apache-2.0 + * © Copyright 2023 Hewlett Packard Enterprise Development LP + */ package convert import ( diff --git a/test/amf/lib/msgHandler/nasMsgHandler/authenticationRequest.go b/test/amf/lib/msgHandler/nasMsgHandler/authenticationRequest.go index fcbdf17f..51d9e845 100644 --- a/test/amf/lib/msgHandler/nasMsgHandler/authenticationRequest.go +++ b/test/amf/lib/msgHandler/nasMsgHandler/authenticationRequest.go @@ -1,3 +1,7 @@ +/** + * SPDX-License-Identifier: Apache-2.0 + * © Copyright 2023 Hewlett Packard Enterprise Development LP + */ package nasMsgHandler import ( diff --git a/test/amf/lib/msgHandler/nasMsgHandler/authenticationResponse.go b/test/amf/lib/msgHandler/nasMsgHandler/authenticationResponse.go index cf777ca8..a3f4c215 100644 --- a/test/amf/lib/msgHandler/nasMsgHandler/authenticationResponse.go +++ b/test/amf/lib/msgHandler/nasMsgHandler/authenticationResponse.go @@ -1,3 +1,7 @@ +/** + * SPDX-License-Identifier: Apache-2.0 + * © Copyright 2023 Hewlett Packard Enterprise Development LP + */ package nasMsgHandler import ( diff --git a/test/amf/lib/msgHandler/nasMsgHandler/registrationAccept.go b/test/amf/lib/msgHandler/nasMsgHandler/registrationAccept.go index 110aa842..d6713fca 100644 --- a/test/amf/lib/msgHandler/nasMsgHandler/registrationAccept.go +++ b/test/amf/lib/msgHandler/nasMsgHandler/registrationAccept.go @@ -1,3 +1,7 @@ +/** + * SPDX-License-Identifier: Apache-2.0 + * © Copyright 2023 Hewlett Packard Enterprise Development LP + */ package nasMsgHandler import ( diff --git a/test/amf/lib/msgHandler/nasMsgHandler/registrationRequest.go b/test/amf/lib/msgHandler/nasMsgHandler/registrationRequest.go index dd669309..050eca8c 100644 --- a/test/amf/lib/msgHandler/nasMsgHandler/registrationRequest.go +++ b/test/amf/lib/msgHandler/nasMsgHandler/registrationRequest.go @@ -1,3 +1,7 @@ +/** + * SPDX-License-Identifier: Apache-2.0 + * © Copyright 2023 Hewlett Packard Enterprise Development LP + */ package nasMsgHandler import ( diff --git a/test/amf/lib/msgHandler/nasMsgHandler/securityModeCommand.go b/test/amf/lib/msgHandler/nasMsgHandler/securityModeCommand.go index ff8c9a6c..76c32cb9 100644 --- a/test/amf/lib/msgHandler/nasMsgHandler/securityModeCommand.go +++ b/test/amf/lib/msgHandler/nasMsgHandler/securityModeCommand.go @@ -1,3 +1,7 @@ +/** + * SPDX-License-Identifier: Apache-2.0 + * © Copyright 2023 Hewlett Packard Enterprise Development LP + */ package nasMsgHandler import ( diff --git a/test/amf/lib/msgHandler/nasMsgHandler/securityModeComplete.go b/test/amf/lib/msgHandler/nasMsgHandler/securityModeComplete.go index e34a4499..2685ee5f 100644 --- a/test/amf/lib/msgHandler/nasMsgHandler/securityModeComplete.go +++ b/test/amf/lib/msgHandler/nasMsgHandler/securityModeComplete.go @@ -1,3 +1,7 @@ +/** + * SPDX-License-Identifier: Apache-2.0 + * © Copyright 2023 Hewlett Packard Enterprise Development LP + */ package nasMsgHandler import ( diff --git a/test/amf/lib/msgHandler/ngapMsgHandler/downlinkNASTransport.go b/test/amf/lib/msgHandler/ngapMsgHandler/downlinkNASTransport.go index c4eb1ec5..5351f801 100644 --- a/test/amf/lib/msgHandler/ngapMsgHandler/downlinkNASTransport.go +++ b/test/amf/lib/msgHandler/ngapMsgHandler/downlinkNASTransport.go @@ -1,3 +1,7 @@ +/** + * SPDX-License-Identifier: Apache-2.0 + * © Copyright 2023 Hewlett Packard Enterprise Development LP + */ package ngapMsgHandler import ( diff --git a/test/amf/lib/msgHandler/ngapMsgHandler/initialContextSetupRequest.go b/test/amf/lib/msgHandler/ngapMsgHandler/initialContextSetupRequest.go index 32c3f072..c2b012f9 100644 --- a/test/amf/lib/msgHandler/ngapMsgHandler/initialContextSetupRequest.go +++ b/test/amf/lib/msgHandler/ngapMsgHandler/initialContextSetupRequest.go @@ -1,3 +1,7 @@ +/** + * SPDX-License-Identifier: Apache-2.0 + * © Copyright 2023 Hewlett Packard Enterprise Development LP + */ package ngapMsgHandler import ( diff --git a/test/amf/lib/msgHandler/ngapMsgHandler/initialEUMessage.go b/test/amf/lib/msgHandler/ngapMsgHandler/initialEUMessage.go index 87640353..786ef8d6 100644 --- a/test/amf/lib/msgHandler/ngapMsgHandler/initialEUMessage.go +++ b/test/amf/lib/msgHandler/ngapMsgHandler/initialEUMessage.go @@ -1,3 +1,7 @@ +/** + * SPDX-License-Identifier: Apache-2.0 + * © Copyright 2023 Hewlett Packard Enterprise Development LP + */ package ngapMsgHandler import ( diff --git a/test/amf/lib/msgHandler/ngapMsgHandler/ngSetup.go b/test/amf/lib/msgHandler/ngapMsgHandler/ngSetup.go index 52fb5a51..0b8dab77 100644 --- a/test/amf/lib/msgHandler/ngapMsgHandler/ngSetup.go +++ b/test/amf/lib/msgHandler/ngapMsgHandler/ngSetup.go @@ -1,3 +1,7 @@ +/** + * SPDX-License-Identifier: Apache-2.0 + * © Copyright 2023 Hewlett Packard Enterprise Development LP + */ package ngapMsgHandler import ( diff --git a/test/amf/lib/msgHandler/ngapMsgHandler/uplinkNASTransport.go b/test/amf/lib/msgHandler/ngapMsgHandler/uplinkNASTransport.go index cdfc1eab..1bec8627 100644 --- a/test/amf/lib/msgHandler/ngapMsgHandler/uplinkNASTransport.go +++ b/test/amf/lib/msgHandler/ngapMsgHandler/uplinkNASTransport.go @@ -1,3 +1,7 @@ +/** + * SPDX-License-Identifier: Apache-2.0 + * © Copyright 2023 Hewlett Packard Enterprise Development LP + */ package ngapMsgHandler import ( diff --git a/test/amf/lib/tools/authBlackBox.go b/test/amf/lib/tools/authBlackBox.go index 5d546445..2af62362 100644 --- a/test/amf/lib/tools/authBlackBox.go +++ b/test/amf/lib/tools/authBlackBox.go @@ -1,3 +1,7 @@ +/** + * SPDX-License-Identifier: Apache-2.0 + * © Copyright 2023 Hewlett Packard Enterprise Development LP + */ package tools import ( diff --git a/test/amf/lib/tools/nasCoder.go b/test/amf/lib/tools/nasCoder.go index 2e8d7d1d..b4f923ab 100644 --- a/test/amf/lib/tools/nasCoder.go +++ b/test/amf/lib/tools/nasCoder.go @@ -1,3 +1,7 @@ +/** + * SPDX-License-Identifier: Apache-2.0 + * © Copyright 2023 Hewlett Packard Enterprise Development LP + */ package tools import ( diff --git a/test/amf/lib/tools/tools.go b/test/amf/lib/tools/tools.go index 50581a82..2609fb1c 100644 --- a/test/amf/lib/tools/tools.go +++ b/test/amf/lib/tools/tools.go @@ -1,3 +1,7 @@ +/** + * SPDX-License-Identifier: Apache-2.0 + * © Copyright 2023 Hewlett Packard Enterprise Development LP + */ package tools import ( diff --git a/test/amf/lib/types/tai.go b/test/amf/lib/types/tai.go index dad6e039..7c60252b 100644 --- a/test/amf/lib/types/tai.go +++ b/test/amf/lib/types/tai.go @@ -1,3 +1,7 @@ +/** + * SPDX-License-Identifier: Apache-2.0 + * © Copyright 2023 Hewlett Packard Enterprise Development LP + */ package types import ( diff --git a/test/amf/pr_test.go b/test/amf/pr_test.go index 4641c30d..51526cd6 100644 --- a/test/amf/pr_test.go +++ b/test/amf/pr_test.go @@ -1,3 +1,8 @@ +/** + * SPDX-License-Identifier: Apache-2.0 + * © Copyright 2023 Hewlett Packard Enterprise Development LP + */ + package amf import ( diff --git a/test/amf/service.go b/test/amf/service.go index 7cfd6c1b..4b9ca499 100644 --- a/test/amf/service.go +++ b/test/amf/service.go @@ -1,3 +1,8 @@ +/** + * SPDX-License-Identifier: Apache-2.0 + * © Copyright 2023 Hewlett Packard Enterprise Development LP + */ + package amf import ( diff --git a/ue.sh b/ue.sh deleted file mode 100755 index 48bca52b..00000000 --- a/ue.sh +++ /dev/null @@ -1,19 +0,0 @@ -#!/bin/bash - -sudo ip link delete gtp0 -sudo ip link delete gtp5g1 -#sudo killall -9 gogtp5g-link -sudo gogtp5g-link add gtp5g1 30.103.11.21 --ran & -sleep 1 -echo "1" -sudo gogtp5g-tunnel add far gtp5g1 1 --action 2 -echo 2 -sudo gogtp5g-tunnel add far gtp5g1 2 --action 2 --hdr-creation 0 1978933400 30.103.11.22 2152 -echo 3 -sudo gogtp5g-tunnel add pdr gtp5g1 1 --pcd 1 --hdr-rm 1 --ue-ipv4 30.103.12.23 --f-teid 1 30.103.11.21 --far-id 1 -echo 4 -sudo gogtp5g-tunnel add pdr gtp5g1 2 --pcd 2 --ue-ipv4 30.103.12.23 --far-id 2 - -echo 5 -sudo ip r add 30.103.12.3/32 dev gtp5g1 -sudo ip a add 30.103.12.23/32 dev gtp5g1