Skip to content

Commit

Permalink
Align copyright/license header with latest reuse version(s) (#52)
Browse files Browse the repository at this point in the history
  • Loading branch information
gab-arrobo authored Mar 11, 2024
1 parent ac7232d commit e609681
Show file tree
Hide file tree
Showing 55 changed files with 221 additions and 12 deletions.
4 changes: 4 additions & 0 deletions .clang-format
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# SPDX-FileCopyrightText: 2016-2017, Nefeli Networks, Inc.
# SPDX-FileCopyrightText: 2017, The Regents of the University of California.
# SPDX-License-Identifier: BSD-3-Clause

---
# BasedOnStyle: Google
AccessModifierOffset: -1
Expand Down
4 changes: 4 additions & 0 deletions .codecov.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# SPDX-FileCopyrightText: 2016-2017, Nefeli Networks, Inc.
# SPDX-FileCopyrightText: 2017, The Regents of the University of California.
# SPDX-License-Identifier: BSD-3-Clause

codecov:
branch: master # base branch for delta computation

Expand Down
4 changes: 4 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
# SPDX-FileCopyrightText: 2016-2017, Nefeli Networks, Inc.
# SPDX-FileCopyrightText: 2017, The Regents of the University of California.
# SPDX-License-Identifier: BSD-3-Clause

*.bess linguist-language=Python
2 changes: 1 addition & 1 deletion .github/workflows/master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ jobs:
- uses: actions/checkout@v4

- name: reuse lint
uses: fsfe/reuse-action@v1
uses: fsfe/reuse-action@v3

fossa-check:
runs-on: ubuntu-latest
Expand Down
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# SPDX-FileCopyrightText: 2016-2017, Nefeli Networks, Inc.
# SPDX-FileCopyrightText: 2017, The Regents of the University of California.
# SPDX-License-Identifier: BSD-3-Clause

# Temporary/hidden files
.*
*.dump
Expand Down
4 changes: 4 additions & 0 deletions .hooks/pre-commit
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
#!/bin/bash

# SPDX-FileCopyrightText: 2016-2017, Nefeli Networks, Inc.
# SPDX-FileCopyrightText: 2017, The Regents of the University of California.
# SPDX-License-Identifier: BSD-3-Clause

: ${CXX_FORMAT:=clang-format}
: ${PY_FORMAT:=autopep8}

Expand Down
9 changes: 0 additions & 9 deletions .reuse/dep5

This file was deleted.

6 changes: 6 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
<!--
SPDX-FileCopyrightText: 2016-2017, Nefeli Networks, Inc.
SPDX-FileCopyrightText: 2017, The Regents of the University of California.
SPDX-License-Identifier: BSD-3-Clause
-->

# How To Contribute
Thank you for your interest in BESS! We welcome new contributions.

Expand Down
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
<!--
SPDX-FileCopyrightText: 2016-2017, Nefeli Networks, Inc.
SPDX-FileCopyrightText: 2017, The Regents of the University of California.
SPDX-License-Identifier: BSD-3-Clause
-->

## BESS (Berkeley Extensible Software Switch)

BESS (formerly known as [SoftNIC](https://www2.eecs.berkeley.edu/Pubs/TechRpts/2015/EECS-2015-155.html)) is a modular framework for software switches. BESS itself is *not* a virtual switch; it is neither pre-configured nor hard-coded to provide particular functionality, such as Ethernet bridging or OpenFlow-driven switching. Instead, you (or an external controller) can *configure* your own packet processing datapath by composing small "modules". While the basic concept is similar to [Click](http://read.cs.ucla.edu/click/click), BESS does not sacrifice performance for programmability.
Expand Down
6 changes: 6 additions & 0 deletions bessctl/conf/port/vhost/README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
<!--
SPDX-FileCopyrightText: 2016-2017, Nefeli Networks, Inc.
SPDX-FileCopyrightText: 2017, The Regents of the University of California.
SPDX-License-Identifier: BSD-3-Clause
-->

This example is to demonstrate how to connect BESS to VMs or containers.

### Requirements
Expand Down
1 change: 1 addition & 0 deletions bessctl/conf/port/vhost/launch_container.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#!/usr/bin/env python3

# Copyright (c) 2017, Nefeli Networks, Inc.
# SPDX-FileCopyrightText: 2024, Intel Corporation
# All rights reserved.
#
# SPDX-License-Identifier: BSD-3-Clause
Expand Down
1 change: 1 addition & 0 deletions bessctl/conf/port/vhost/launch_vm.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#!/usr/bin/env python3

# Copyright (c) 2017, Nefeli Networks, Inc.
# SPDX-FileCopyrightText: 2024, Intel Corporation
# All rights reserved.
#
# SPDX-License-Identifier: BSD-3-Clause
Expand Down
8 changes: 6 additions & 2 deletions bessctl/conf/samples/mpls_test.bess
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# SPDX-FileCopyrightText: 2016-2017, Nefeli Networks, Inc.
# SPDX-FileCopyrightText: 2017, The Regents of the University of California.
# SPDX-License-Identifier: BSD-3-Clause

import scapy.all as scapy

# MPLS layer addition to scapy
Expand All @@ -9,11 +13,11 @@ class MPLS(scapy.Packet):
scapy.BitField("bottom_of_label_stack", 1, 1),
scapy.ByteField("TTL", 255)
]

scapy.bind_layers(scapy.Ether, MPLS, type = 0x8847)
scapy.bind_layers(MPLS, MPLS, bottom_of_label_stack = 0)
scapy.bind_layers(MPLS, scapy.IP)

eth = scapy.Ether(src='02:1e:67:9f:4d:ae', dst='06:16:3e:1b:72:32')
mpls = MPLS(label = 0xFFFFF, TTL = 255, bottom_of_label_stack=1)
ip = scapy.IP(src='192.168.0.1', dst='10.0.0.1')
Expand Down
4 changes: 4 additions & 0 deletions bessctl/conf/samples/tc/wfs_double.bess
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# SPDX-FileCopyrightText: 2016-2017, Nefeli Networks, Inc.
# SPDX-FileCopyrightText: 2017, The Regents of the University of California.
# SPDX-License-Identifier: BSD-3-Clause

# Test WeightedFairscheduler's accuracy on a simple tree pipeline
# Works correctly, if internal variables of WFS are represented as
# doubles.
Expand Down
3 changes: 3 additions & 0 deletions bessctl/module_tests/ipv4frags.pcap.license
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
SPDX-FileCopyrightText: 2016-2017, Nefeli Networks, Inc.
SPDX-FileCopyrightText: 2017, The Regents of the University of California.
SPDX-License-Identifier: BSD-3-Clause
4 changes: 4 additions & 0 deletions bessctl/server.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# SPDX-FileCopyrightText: 2016-2017, Nefeli Networks, Inc.
# SPDX-FileCopyrightText: 2017, The Regents of the University of California.
# SPDX-License-Identifier: BSD-3-Clause

import json

from flask import Flask, jsonify
Expand Down
6 changes: 6 additions & 0 deletions bessctl/static/graph.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
<!--
SPDX-FileCopyrightText: 2016-2017, Nefeli Networks, Inc.
SPDX-FileCopyrightText: 2017, The Regents of the University of California.
SPDX-License-Identifier: BSD-3-Clause
-->

<!DOCTYPE html>
<html lang="en">
<head>
Expand Down
4 changes: 4 additions & 0 deletions bessctl/static/pipeline.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// SPDX-FileCopyrightText: 2016-2017, Nefeli Networks, Inc.
// SPDX-FileCopyrightText: 2017, The Regents of the University of California.
// SPDX-License-Identifier: BSD-3-Clause

// colorscheme:
// #01295f cool black
// #437f97 queen blue
Expand Down
1 change: 1 addition & 0 deletions build.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

# Copyright (c) 2014-2017, The Regents of the University of California.
# Copyright (c) 2016-2017, Nefeli Networks, Inc.
# SPDX-FileCopyrightText: 2024, Intel Corporation
# All rights reserved.
#
# SPDX-License-Identifier: BSD-3-Clause
Expand Down
1 change: 1 addition & 0 deletions container_build.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

# Copyright (c) 2014-2016, The Regents of the University of California.
# Copyright (c) 2016-2017, Nefeli Networks, Inc.
# SPDX-FileCopyrightText: 2024, Intel Corporation
# Copyright (c) 2017, Cloudigo.
# All rights reserved.
#
Expand Down
4 changes: 4 additions & 0 deletions core/.gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# SPDX-FileCopyrightText: 2016-2017, Nefeli Networks, Inc.
# SPDX-FileCopyrightText: 2017, The Regents of the University of California.
# SPDX-License-Identifier: BSD-3-Clause

extra*.mk

# Executables
Expand Down
4 changes: 4 additions & 0 deletions core/coverage
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
#!/bin/sh -e

# SPDX-FileCopyrightText: 2016-2017, Nefeli Networks, Inc.
# SPDX-FileCopyrightText: 2017, The Regents of the University of California.
# SPDX-License-Identifier: BSD-3-Clause

args=${1:-"run serve"}

for arg in $args;
Expand Down
4 changes: 4 additions & 0 deletions core/kmod/.clang-format
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# SPDX-FileCopyrightText: 2016-2017, Nefeli Networks, Inc.
# SPDX-FileCopyrightText: 2017, The Regents of the University of California.
# SPDX-License-Identifier: BSD-3-Clause

# Linux kernel style for C
BasedOnStyle: LLVM
IndentWidth: 8
Expand Down
4 changes: 4 additions & 0 deletions core/kmod/.gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,6 @@
# SPDX-FileCopyrightText: 2016-2017, Nefeli Networks, Inc.
# SPDX-FileCopyrightText: 2017, The Regents of the University of California.
# SPDX-License-Identifier: BSD-3-Clause

.*.cmd
.tmp_versions
4 changes: 4 additions & 0 deletions core/kmod/install
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
#!/bin/sh

# SPDX-FileCopyrightText: 2016-2017, Nefeli Networks, Inc.
# SPDX-FileCopyrightText: 2017, The Regents of the University of California.
# SPDX-License-Identifier: BSD-3-Clause

sudo killall -q bessd
sleep 1
if lsmod | grep -q bess; then
Expand Down
4 changes: 4 additions & 0 deletions core/lsan.suppress
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# SPDX-FileCopyrightText: 2016-2017, Nefeli Networks, Inc.
# SPDX-FileCopyrightText: 2017, The Regents of the University of California.
# SPDX-License-Identifier: BSD-3-Clause

# This file contains a list of functions/files that should be ignored by
# clang's LeakSanitizer. For more details, see:
# https://github.com/google/sanitizers/wiki/AddressSanitizerLeakSanitizer
Expand Down
4 changes: 4 additions & 0 deletions core/memory.cc
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// SPDX-FileCopyrightText: 2016-2017, Nefeli Networks, Inc.
// SPDX-FileCopyrightText: 2017, The Regents of the University of California.
// SPDX-License-Identifier: BSD-3-Clause

#include "memory.h"

#include <fcntl.h>
Expand Down
4 changes: 4 additions & 0 deletions core/memory.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// SPDX-FileCopyrightText: 2016-2017, Nefeli Networks, Inc.
// SPDX-FileCopyrightText: 2017, The Regents of the University of California.
// SPDX-License-Identifier: BSD-3-Clause

#ifndef BESS_MEMORY_H_
#define BESS_MEMORY_H_

Expand Down
4 changes: 4 additions & 0 deletions core/memory_test.cc
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// SPDX-FileCopyrightText: 2016-2017, Nefeli Networks, Inc.
// SPDX-FileCopyrightText: 2017, The Regents of the University of California.
// SPDX-License-Identifier: BSD-3-Clause

#include "memory.h"

#include <glog/logging.h>
Expand Down
4 changes: 4 additions & 0 deletions core/packet_pool.cc
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// SPDX-FileCopyrightText: 2016-2017, Nefeli Networks, Inc.
// SPDX-FileCopyrightText: 2017, The Regents of the University of California.
// SPDX-License-Identifier: BSD-3-Clause

#include "packet_pool.h"

#include <sys/mman.h>
Expand Down
4 changes: 4 additions & 0 deletions core/packet_pool.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// SPDX-FileCopyrightText: 2016-2017, Nefeli Networks, Inc.
// SPDX-FileCopyrightText: 2017, The Regents of the University of California.
// SPDX-License-Identifier: BSD-3-Clause

#ifndef BESS_PACKET_POOL_H_
#define BESS_PACKET_POOL_H_

Expand Down
4 changes: 4 additions & 0 deletions core/pb/.gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,6 @@
# SPDX-FileCopyrightText: 2016-2017, Nefeli Networks, Inc.
# SPDX-FileCopyrightText: 2017, The Regents of the University of California.
# SPDX-License-Identifier: BSD-3-Clause

*
!.gitignore
6 changes: 6 additions & 0 deletions core/resume_hooks/README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
<!--
SPDX-FileCopyrightText: 2016-2017, Nefeli Networks, Inc.
SPDX-FileCopyrightText: 2017, The Regents of the University of California.
SPDX-License-Identifier: BSD-3-Clause
-->

# Resume Hooks
Resume hooks allow you to run arbitrary code immediately before a worker is
resumed. They can be configured with the `ConfigureResumeHook()` RPC.
Expand Down
3 changes: 3 additions & 0 deletions core/testdata/test-pktcaptures/tcpflow-http-3.bytes.license
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
SPDX-FileCopyrightText: 2016-2017, Nefeli Networks, Inc.
SPDX-FileCopyrightText: 2017, The Regents of the University of California.
SPDX-License-Identifier: BSD-3-Clause
3 changes: 3 additions & 0 deletions core/testdata/test-pktcaptures/tcpflow-http-3.pcap.license
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
SPDX-FileCopyrightText: 2016-2017, Nefeli Networks, Inc.
SPDX-FileCopyrightText: 2017, The Regents of the University of California.
SPDX-License-Identifier: BSD-3-Clause
4 changes: 4 additions & 0 deletions core/ubsan.suppress
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# SPDX-FileCopyrightText: 2016-2017, Nefeli Networks, Inc.
# SPDX-FileCopyrightText: 2017, The Regents of the University of California.
# SPDX-License-Identifier: BSD-3-Clause

# This file contains a list of functions/files that should be ignored by
# clang's UndefinedBehaviorSanitizer. For more details, see:
# https://clang.llvm.org/docs/UndefinedBehaviorSanitizer.html
Expand Down
4 changes: 4 additions & 0 deletions deps/bpf_validate.patch.license
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
SPDX-FileCopyrightText: 2016-2017, Nefeli Networks, Inc.
SPDX-FileCopyrightText: 2017, The Regents of the University of California.
SPDX-FileCopyrightText: 2024, Intel Corporation
SPDX-License-Identifier: BSD-3-Clause
6 changes: 6 additions & 0 deletions doxygen/README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
<!--
SPDX-FileCopyrightText: 2016-2017, Nefeli Networks, Inc.
SPDX-FileCopyrightText: 2017, The Regents of the University of California.
SPDX-License-Identifier: BSD-3-Clause
-->

### How to generate BESS code documentation

* Install doxygen (sudo apt-get install doxygen)
Expand Down
4 changes: 4 additions & 0 deletions doxygen/bess.dox
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# SPDX-FileCopyrightText: 2016-2017, Nefeli Networks, Inc.
# SPDX-FileCopyrightText: 2017, The Regents of the University of California.
# SPDX-License-Identifier: BSD-3-Clause

# Doxyfile 1.8.12

# This file describes the settings to be used by the documentation system
Expand Down
7 changes: 7 additions & 0 deletions env/README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
<!--
SPDX-FileCopyrightText: 2016-2017, Nefeli Networks, Inc.
SPDX-FileCopyrightText: 2017, The Regents of the University of California.
SPDX-FileCopyrightText: 2024, Intel Corporation
SPDX-License-Identifier: BSD-3-Clause
-->

This directory contains various scripts to help users start trying BESS without
much pain. There is a Vagrant script that allows you to bring up a VM that is
pre-configured with all required dependencies. There are also Ansible scripts in
Expand Down
5 changes: 5 additions & 0 deletions env/Vagrantfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# -*- mode: ruby -*-
# vi: set ft=ruby :

# SPDX-FileCopyrightText: 2016-2017, Nefeli Networks, Inc.
# SPDX-FileCopyrightText: 2017, The Regents of the University of California.
# SPDX-License-Identifier: BSD-3-Clause

[
{ :name => "vagrant-reload", :version => ">= 0.0.1" },
{ :name => "vagrant-cachier", :version => ">= 1.2.1"}
Expand Down
5 changes: 5 additions & 0 deletions env/build-dep.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# SPDX-FileCopyrightText: 2016-2017, Nefeli Networks, Inc.
# SPDX-FileCopyrightText: 2017, The Regents of the University of California.
# SPDX-FileCopyrightText: 2024, Intel Corporation
# SPDX-License-Identifier: BSD-3-Clause

- hosts: all
tags: build-dep
tasks:
Expand Down
5 changes: 5 additions & 0 deletions env/ci.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# SPDX-FileCopyrightText: 2016-2017, Nefeli Networks, Inc.
# SPDX-FileCopyrightText: 2017, The Regents of the University of California.
# SPDX-FileCopyrightText: 2024, Intel Corporation
# SPDX-License-Identifier: BSD-3-Clause

# Container provisioning for building BESS on Travis CI,
# with various compilers and configurations

Expand Down
5 changes: 5 additions & 0 deletions env/dev.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# SPDX-FileCopyrightText: 2016-2017, Nefeli Networks, Inc.
# SPDX-FileCopyrightText: 2017, The Regents of the University of California.
# SPDX-FileCopyrightText: 2024, Intel Corporation
# SPDX-License-Identifier: BSD-3-Clause

- import_playbook: ci.yml
- import_playbook: docker.yml
- import_playbook: runtime.yml
Expand Down
5 changes: 5 additions & 0 deletions env/docker.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# SPDX-FileCopyrightText: 2016-2017, Nefeli Networks, Inc.
# SPDX-FileCopyrightText: 2017, The Regents of the University of California.
# SPDX-FileCopyrightText: 2024, Intel Corporation
# SPDX-License-Identifier: BSD-3-Clause

# Docker is an optional package.
# Some BESS examples make use of Docker to demonstrate container networking.
- hosts: all
Expand Down
5 changes: 5 additions & 0 deletions env/kmod.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# SPDX-FileCopyrightText: 2016-2017, Nefeli Networks, Inc.
# SPDX-FileCopyrightText: 2017, The Regents of the University of California.
# SPDX-FileCopyrightText: 2024, Intel Corporation
# SPDX-License-Identifier: BSD-3-Clause

- hosts: all
tags: kmod
tasks:
Expand Down
Loading

0 comments on commit e609681

Please sign in to comment.