Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 4 additions & 5 deletions scripts/baseboxd-knet-reset.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
#!/usr/bin/env python3

# SPDX-FileCopyrightText: © 2022 BISDN GmbH
#
# SPDX-License-Identifier: MPL-2.0-no-copyleft-exception

# Helper script for resetting KNET to its initial state by removing all
# added interfaces and filters, intended to be called after stopping
# baseboxd.
#
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/. */


from ctypes import *
import fcntl
Expand Down
6 changes: 3 additions & 3 deletions src/basebox_api.cc
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
// SPDX-FileCopyrightText: © 2017 BISDN GmbH
//
// SPDX-License-Identifier: MPL-2.0-no-copyleft-exception

#include "basebox_api.h"
#include "basebox_grpc_statistics.h"
Expand Down
6 changes: 3 additions & 3 deletions src/basebox_api.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
// SPDX-FileCopyrightText: © 2017 BISDN GmbH
//
// SPDX-License-Identifier: MPL-2.0-no-copyleft-exception

#pragma once

Expand Down
6 changes: 3 additions & 3 deletions src/basebox_grpc_statistics.cc
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
// SPDX-FileCopyrightText: © 2017 BISDN GmbH
//
// SPDX-License-Identifier: MPL-2.0-no-copyleft-exception

#include <glog/logging.h>
#include <utility>
Expand Down
6 changes: 3 additions & 3 deletions src/basebox_grpc_statistics.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
// SPDX-FileCopyrightText: © 2017 BISDN GmbH
//
// SPDX-License-Identifier: MPL-2.0-no-copyleft-exception

#pragma once

Expand Down
6 changes: 3 additions & 3 deletions src/baseboxd.cc
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
// SPDX-FileCopyrightText: © 2013 BISDN GmbH
//
// SPDX-License-Identifier: MPL-2.0-no-copyleft-exception

#include <gflags/gflags.h>
#include <glog/logging.h>
Expand Down
6 changes: 3 additions & 3 deletions src/netlink/cnetlink.cc
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
// SPDX-FileCopyrightText: © 2014 BISDN GmbH
//
// SPDX-License-Identifier: MPL-2.0-no-copyleft-exception

#include <cassert>
#include <cstring>
Expand Down
6 changes: 3 additions & 3 deletions src/netlink/cnetlink.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
// SPDX-FileCopyrightText: © 2013 BISDN GmbH
//
// SPDX-License-Identifier: MPL-2.0-no-copyleft-exception

#pragma once

Expand Down
6 changes: 3 additions & 3 deletions src/netlink/ctapdev.cc
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
// SPDX-FileCopyrightText: © 2013 BISDN GmbH
//
// SPDX-License-Identifier: MPL-2.0-no-copyleft-exception

#include <fcntl.h>
#include <net/if.h>
Expand Down
6 changes: 3 additions & 3 deletions src/netlink/ctapdev.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
// SPDX-FileCopyrightText: © 2013 BISDN GmbH
//
// SPDX-License-Identifier: MPL-2.0-no-copyleft-exception

#pragma once

Expand Down
6 changes: 3 additions & 3 deletions src/netlink/knet_manager.cc
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
// SPDX-FileCopyrightText: © 2022 BISDN GmbH
//
// SPDX-License-Identifier: MPL-2.0-no-copyleft-exception

#include <glog/logging.h>
#include <linux/sockios.h>
Expand Down
6 changes: 3 additions & 3 deletions src/netlink/knet_manager.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
// SPDX-FileCopyrightText: © 2022 BISDN GmbH
//
// SPDX-License-Identifier: MPL-2.0-no-copyleft-exception

#pragma once

Expand Down
6 changes: 3 additions & 3 deletions src/netlink/nbi_impl.cc
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
// SPDX-FileCopyrightText: © 2016 BISDN GmbH
//
// SPDX-License-Identifier: MPL-2.0-no-copyleft-exception

#include <glog/logging.h>

Expand Down
6 changes: 3 additions & 3 deletions src/netlink/nbi_impl.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
// SPDX-FileCopyrightText: © 2016 BISDN GmbH
//
// SPDX-License-Identifier: MPL-2.0-no-copyleft-exception

#pragma once

Expand Down
6 changes: 3 additions & 3 deletions src/netlink/netlink-utils.cc
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
// SPDX-FileCopyrightText: © 2018 BISDN GmbH
//
// SPDX-License-Identifier: MPL-2.0-no-copyleft-exception

#include <cassert>
#include <map>
Expand Down
6 changes: 3 additions & 3 deletions src/netlink/netlink-utils.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
// SPDX-FileCopyrightText: © 2018 BISDN GmbH
//
// SPDX-License-Identifier: MPL-2.0-no-copyleft-exception

#pragma once

Expand Down
6 changes: 3 additions & 3 deletions src/netlink/nl_bond.cc
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
// SPDX-FileCopyrightText: © 2018 BISDN GmbH
//
// SPDX-License-Identifier: MPL-2.0-no-copyleft-exception

#include "nl_bond.h"

Expand Down
6 changes: 3 additions & 3 deletions src/netlink/nl_bond.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
// SPDX-FileCopyrightText: © 2018 BISDN GmbH
//
// SPDX-License-Identifier: MPL-2.0-no-copyleft-exception

#pragma once

Expand Down
6 changes: 3 additions & 3 deletions src/netlink/nl_bridge.cc
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
// SPDX-FileCopyrightText: © 2015 BISDN GmbH
//
// SPDX-License-Identifier: MPL-2.0-no-copyleft-exception

#include <cassert>
#include <cstring>
Expand Down
6 changes: 3 additions & 3 deletions src/netlink/nl_bridge.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
// SPDX-FileCopyrightText: © 2015 BISDN GmbH
//
// SPDX-License-Identifier: MPL-2.0-no-copyleft-exception

#pragma once

Expand Down
6 changes: 3 additions & 3 deletions src/netlink/nl_fdb_flush.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
// SPDX-FileCopyrightText: © 2024 BISDN GmbH
//
// SPDX-License-Identifier: MPL-2.0-no-copyleft-exception

#pragma once

Expand Down
6 changes: 3 additions & 3 deletions src/netlink/nl_hashing.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
// SPDX-FileCopyrightText: © 2018 BISDN GmbH
//
// SPDX-License-Identifier: MPL-2.0-no-copyleft-exception

#pragma once

Expand Down
6 changes: 3 additions & 3 deletions src/netlink/nl_interface.cc
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
// SPDX-FileCopyrightText: © 2019 BISDN GmbH
//
// SPDX-License-Identifier: MPL-2.0-no-copyleft-exception

#include <netlink/route/link.h>

Expand Down
6 changes: 3 additions & 3 deletions src/netlink/nl_interface.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
// SPDX-FileCopyrightText: © 2019 BISDN GmbH
//
// SPDX-License-Identifier: MPL-2.0-no-copyleft-exception

#pragma once

Expand Down
6 changes: 3 additions & 3 deletions src/netlink/nl_l3.cc
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
// SPDX-FileCopyrightText: © 2016 BISDN GmbH
//
// SPDX-License-Identifier: MPL-2.0-no-copyleft-exception

#include <net/if.h>
#include <memory>
Expand Down
6 changes: 3 additions & 3 deletions src/netlink/nl_l3.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
// SPDX-FileCopyrightText: © 2016 BISDN GmbH
//
// SPDX-License-Identifier: MPL-2.0-no-copyleft-exception

#pragma once

Expand Down
6 changes: 3 additions & 3 deletions src/netlink/nl_l3_interfaces.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
// SPDX-FileCopyrightText: © 2019 BISDN GmbH
//
// SPDX-License-Identifier: MPL-2.0-no-copyleft-exception

#pragma once

Expand Down
6 changes: 3 additions & 3 deletions src/netlink/nl_obj.cc
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
// SPDX-FileCopyrightText: © 2016 BISDN GmbH
//
// SPDX-License-Identifier: MPL-2.0-no-copyleft-exception

#include "nl_obj.h"
#include <glog/logging.h>
Expand Down
6 changes: 3 additions & 3 deletions src/netlink/nl_obj.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
// SPDX-FileCopyrightText: © 2016 BISDN GmbH
//
// SPDX-License-Identifier: MPL-2.0-no-copyleft-exception

#pragma once

Expand Down
6 changes: 3 additions & 3 deletions src/netlink/nl_output.cc
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
// SPDX-FileCopyrightText: © 2018 BISDN GmbH
//
// SPDX-License-Identifier: MPL-2.0-no-copyleft-exception

#include <cassert>
#include <vector>
Expand Down
6 changes: 3 additions & 3 deletions src/netlink/nl_output.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
// SPDX-FileCopyrightText: © 2018 BISDN GmbH
//
// SPDX-License-Identifier: MPL-2.0-no-copyleft-exception

#pragma once

Expand Down
6 changes: 3 additions & 3 deletions src/netlink/nl_route_query.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
// SPDX-FileCopyrightText: © 2019 BISDN GmbH
//
// SPDX-License-Identifier: MPL-2.0-no-copyleft-exception

#pragma once

Expand Down
6 changes: 3 additions & 3 deletions src/netlink/nl_vlan.cc
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
// SPDX-FileCopyrightText: © 2018 BISDN GmbH
//
// SPDX-License-Identifier: MPL-2.0-no-copyleft-exception

#include <cassert>

Expand Down
6 changes: 3 additions & 3 deletions src/netlink/nl_vlan.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
// SPDX-FileCopyrightText: © 2018 BISDN GmbH
//
// SPDX-License-Identifier: MPL-2.0-no-copyleft-exception

#include <cstdint>
#include <map>
Expand Down
6 changes: 3 additions & 3 deletions src/netlink/nl_vxlan.cc
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
// SPDX-FileCopyrightText: © 2019 BISDN GmbH
//
// SPDX-License-Identifier: MPL-2.0-no-copyleft-exception

#include <cassert>
#include <chrono>
Expand Down
6 changes: 3 additions & 3 deletions src/netlink/nl_vxlan.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
// SPDX-FileCopyrightText: © 2019 BISDN GmbH
//
// SPDX-License-Identifier: MPL-2.0-no-copyleft-exception

#pragma once

Expand Down
6 changes: 3 additions & 3 deletions src/netlink/port_manager.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
// SPDX-FileCopyrightText: © 2022 BISDN GmbH
//
// SPDX-License-Identifier: MPL-2.0-no-copyleft-exception

#pragma once

Expand Down
6 changes: 3 additions & 3 deletions src/netlink/tap_io.cc
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
// SPDX-FileCopyrightText: © 2018 BISDN GmbH
//
// SPDX-License-Identifier: MPL-2.0-no-copyleft-exception

#include <cerrno>
#include <glog/logging.h>
Expand Down
6 changes: 3 additions & 3 deletions src/netlink/tap_io.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
// SPDX-FileCopyrightText: © 2018 BISDN GmbH
//
// SPDX-License-Identifier: MPL-2.0-no-copyleft-exception

#include <rofl/common/cthread.hpp>

Expand Down
Loading