Skip to content

Commit

Permalink
License with Apache-2.0
Browse files Browse the repository at this point in the history
Signed-off-by: Martynas Pumputis <[email protected]>
  • Loading branch information
brb committed Jun 8, 2023
1 parent ce78405 commit 4839345
Show file tree
Hide file tree
Showing 15 changed files with 230 additions and 369 deletions.
541 changes: 201 additions & 340 deletions LICENSE

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ make release

## Contributing

`pwru` is an open source project licensed under [GPLv2](LICENSE). Everybody is
`pwru` is an open source project licensed under [Apache-2.0](LICENSE). Everybody is
welcome to contribute. Contributors are required to follow the
[Contributor Covenant Code of Conduct](https://www.contributor-covenant.org/version/1/4/code-of-conduct/)
and must adhere to the [Developer Certificate of Origin](https://developercertificate.org/)
Expand Down
6 changes: 3 additions & 3 deletions bpf/kprobe_pwru.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// SPDX-License-Identifier: GPL-2.0-only
/* Copyright (C) 2020-2021 Martynas Pumputis */
/* Copyright (C) 2021 Authors of Cilium */
// SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
/* Copyright Martynas Pumputis */
/* Copyright Authors of Cilium */

/*
* TODO: ipv6 l4 protocol
Expand Down
2 changes: 1 addition & 1 deletion internal/byteorder/byteorder_bigendian.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-License-Identifier: Apache-2.0
// SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
// Copyright 2021 Authors of Cilium

//go:build armbe || arm64be || mips || mips64 || ppc64
Expand Down
2 changes: 1 addition & 1 deletion internal/byteorder/byteorder_littleendian.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-License-Identifier: Apache-2.0
// SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
// Copyright 2021-2022 Authors of Cilium

//go:build 386 || amd64 || arm || arm64 || mips64le || ppc64le || riscv64 || wasm
Expand Down
2 changes: 1 addition & 1 deletion internal/byteorder/byteorder_test.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-License-Identifier: Apache-2.0
// SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
// Copyright 2017-2022 Authors of Cilium

package byteorder
Expand Down
4 changes: 2 additions & 2 deletions internal/pwru/config.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// SPDX-License-Identifier: GPL-2.0-only
/* Copyright (C) 2020-2021 Martynas Pumputis */
/* Copyright (C) 2021-2022 Authors of Cilium */
/* Copyright Martynas Pumputis */
/* Copyright Authors of Cilium */

package pwru

Expand Down
6 changes: 3 additions & 3 deletions internal/pwru/output.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// SPDX-License-Identifier: GPL-2.0-only
/* Copyright (C) 2020-2021 Martynas Pumputis */
/* Copyright (C) 2021 Authors of Cilium */
// SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
/* Copyright Martynas Pumputis */
/* Copyright Authors of Cilium */

package pwru

Expand Down
6 changes: 3 additions & 3 deletions internal/pwru/types.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// SPDX-License-Identifier: GPL-2.0-only
/* Copyright (C) 2020-2021 Martynas Pumputis */
/* Copyright (C) 2021-2022 Authors of Cilium */
// SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
/* Copyright Martynas Pumputis */
/* Copyright Authors of Cilium */

package pwru

Expand Down
6 changes: 3 additions & 3 deletions internal/pwru/utils.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// SPDX-License-Identifier: GPL-2.0-only
/* Copyright (C) 2020-2021 Martynas Pumputis */
/* Copyright (C) 2021 Authors of Cilium */
// SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
/* Copyright Martynas Pumputis */
/* Copyright Authors of Cilium */

package pwru

Expand Down
6 changes: 3 additions & 3 deletions main.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// SPDX-License-Identifier: GPL-2.0-only
/* Copyright (C) 2020-2021 Martynas Pumputis */
/* Copyright (C) 2021-2022 Authors of Cilium */
// SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
/* Copyright Martynas Pumputis */
/* Copyright Authors of Cilium */

package main

Expand Down
4 changes: 2 additions & 2 deletions main_amd64.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: GPL-2.0-only
// Copyright (C) 2021 Authors of Cilium */
// SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
// Copyright Authors of Cilium */

//go:generate sh -c "echo Generating for amd64"
//go:generate go run github.com/cilium/ebpf/cmd/bpf2go -cc clang KProbePWRU ./bpf/kprobe_pwru.c -- -DOUTPUT_SKB -D__TARGET_ARCH_x86 -I./bpf/headers -Wno-address-of-packed-member
Expand Down
4 changes: 2 additions & 2 deletions main_arm64.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: GPL-2.0-only
// Copyright (C) 2021 Authors of Cilium */
// SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
// Copyright Authors of Cilium */

//go:generate sh -c "echo Generating for arm64"
//go:generate go run github.com/cilium/ebpf/cmd/bpf2go -cc clang KProbePWRU ./bpf/kprobe_pwru.c -- -DOUTPUT_SKB -D__TARGET_ARCH_arm64 -I./bpf/headers -Wno-address-of-packed-member
Expand Down
4 changes: 2 additions & 2 deletions tools/getgetter.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: GPL-2.0-only
// Copyright (C) 2022 Authors of Cilium
// SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
// Copyright Authors of Cilium

// This tool parses the provided Go files to generate getters for any exported
// fields of each struct matching the struct regexp filter.
Expand Down
4 changes: 2 additions & 2 deletions tools/tools.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: GPL-2.0-only
// Copyright (C) 2021 Authors of Cilium
// SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
// Copyright Authors of Cilium

//go:build tools
// +build tools
Expand Down

0 comments on commit 4839345

Please sign in to comment.