From 4861d2ce080edb4137054d97eb1d7f3ec8bc16da Mon Sep 17 00:00:00 2001 From: Andrea Barberio Date: Wed, 18 Sep 2019 13:19:37 +0100 Subject: [PATCH] Added license headers Signed-off-by: Andrea Barberio --- cmds/client/main.go | 4 ++++ cmds/coredhcp/main.go | 4 ++++ config/config.go | 4 ++++ config/errors.go | 4 ++++ coredhcp.go | 4 ++++ handler/handler.go | 4 ++++ logger/logger.go | 4 ++++ plugins/dns/plugin.go | 4 ++++ plugins/dns/plugin_test.go | 4 ++++ plugins/example/plugin.go | 4 ++++ plugins/file/plugin.go | 4 ++++ plugins/netmask/plugin.go | 4 ++++ plugins/plugin.go | 4 ++++ plugins/range/plugin.go | 4 ++++ plugins/router/plugin.go | 4 ++++ plugins/server_id/plugin.go | 4 ++++ plugins/server_id/plugin_test.go | 4 ++++ 17 files changed, 68 insertions(+) diff --git a/cmds/client/main.go b/cmds/client/main.go index 90740d0..cafcbdf 100644 --- a/cmds/client/main.go +++ b/cmds/client/main.go @@ -1,3 +1,7 @@ +// Copyright 2018-present the CoreDHCP Authors. All rights reserved +// This source code is licensed under the MIT license found in the +// LICENSE file in the root directory of this source tree. + package main /* diff --git a/cmds/coredhcp/main.go b/cmds/coredhcp/main.go index e8feff7..64a5a91 100644 --- a/cmds/coredhcp/main.go +++ b/cmds/coredhcp/main.go @@ -1,3 +1,7 @@ +// Copyright 2018-present the CoreDHCP Authors. All rights reserved +// This source code is licensed under the MIT license found in the +// LICENSE file in the root directory of this source tree. + package main import ( diff --git a/config/config.go b/config/config.go index 7191eba..0f5cee2 100644 --- a/config/config.go +++ b/config/config.go @@ -1,3 +1,7 @@ +// Copyright 2018-present the CoreDHCP Authors. All rights reserved +// This source code is licensed under the MIT license found in the +// LICENSE file in the root directory of this source tree. + package config import ( diff --git a/config/errors.go b/config/errors.go index df1cd65..91072ba 100644 --- a/config/errors.go +++ b/config/errors.go @@ -1,3 +1,7 @@ +// Copyright 2018-present the CoreDHCP Authors. All rights reserved +// This source code is licensed under the MIT license found in the +// LICENSE file in the root directory of this source tree. + package config import ( diff --git a/coredhcp.go b/coredhcp.go index 66399b3..ff0f114 100644 --- a/coredhcp.go +++ b/coredhcp.go @@ -1,3 +1,7 @@ +// Copyright 2018-present the CoreDHCP Authors. All rights reserved +// This source code is licensed under the MIT license found in the +// LICENSE file in the root directory of this source tree. + package coredhcp import ( diff --git a/handler/handler.go b/handler/handler.go index 2f5e8f0..52e67a9 100644 --- a/handler/handler.go +++ b/handler/handler.go @@ -1,3 +1,7 @@ +// Copyright 2018-present the CoreDHCP Authors. All rights reserved +// This source code is licensed under the MIT license found in the +// LICENSE file in the root directory of this source tree. + package handler import ( diff --git a/logger/logger.go b/logger/logger.go index 0c12a33..f77f4cb 100644 --- a/logger/logger.go +++ b/logger/logger.go @@ -1,3 +1,7 @@ +// Copyright 2018-present the CoreDHCP Authors. All rights reserved +// This source code is licensed under the MIT license found in the +// LICENSE file in the root directory of this source tree. + package logger import ( diff --git a/plugins/dns/plugin.go b/plugins/dns/plugin.go index c083ed6..b375639 100644 --- a/plugins/dns/plugin.go +++ b/plugins/dns/plugin.go @@ -1,3 +1,7 @@ +// Copyright 2018-present the CoreDHCP Authors. All rights reserved +// This source code is licensed under the MIT license found in the +// LICENSE file in the root directory of this source tree. + package dns import ( diff --git a/plugins/dns/plugin_test.go b/plugins/dns/plugin_test.go index 6ea839b..a48f8b0 100644 --- a/plugins/dns/plugin_test.go +++ b/plugins/dns/plugin_test.go @@ -1,3 +1,7 @@ +// Copyright 2018-present the CoreDHCP Authors. All rights reserved +// This source code is licensed under the MIT license found in the +// LICENSE file in the root directory of this source tree. + package dns import ( diff --git a/plugins/example/plugin.go b/plugins/example/plugin.go index 6de4737..29c6a15 100644 --- a/plugins/example/plugin.go +++ b/plugins/example/plugin.go @@ -1,3 +1,7 @@ +// Copyright 2018-present the CoreDHCP Authors. All rights reserved +// This source code is licensed under the MIT license found in the +// LICENSE file in the root directory of this source tree. + package example // This is an example plugin that inspects a packet and prints it out. The code diff --git a/plugins/file/plugin.go b/plugins/file/plugin.go index 6efd616..300ef75 100644 --- a/plugins/file/plugin.go +++ b/plugins/file/plugin.go @@ -1,3 +1,7 @@ +// Copyright 2018-present the CoreDHCP Authors. All rights reserved +// This source code is licensed under the MIT license found in the +// LICENSE file in the root directory of this source tree. + // Package file enables static mapping of MAC <--> IP addresses. // The mapping is stored in a text file, where each mapping is described by one line containing // two fields separated by spaces: MAC address, and IP address. For example: diff --git a/plugins/netmask/plugin.go b/plugins/netmask/plugin.go index e74658b..b8091b9 100644 --- a/plugins/netmask/plugin.go +++ b/plugins/netmask/plugin.go @@ -1,3 +1,7 @@ +// Copyright 2018-present the CoreDHCP Authors. All rights reserved +// This source code is licensed under the MIT license found in the +// LICENSE file in the root directory of this source tree. + package netmask import ( diff --git a/plugins/plugin.go b/plugins/plugin.go index 10e7ec5..d1ba62c 100644 --- a/plugins/plugin.go +++ b/plugins/plugin.go @@ -1,3 +1,7 @@ +// Copyright 2018-present the CoreDHCP Authors. All rights reserved +// This source code is licensed under the MIT license found in the +// LICENSE file in the root directory of this source tree. + package plugins import ( diff --git a/plugins/range/plugin.go b/plugins/range/plugin.go index 391a286..99eb218 100644 --- a/plugins/range/plugin.go +++ b/plugins/range/plugin.go @@ -1,3 +1,7 @@ +// Copyright 2018-present the CoreDHCP Authors. All rights reserved +// This source code is licensed under the MIT license found in the +// LICENSE file in the root directory of this source tree. + package rangeplugin import ( diff --git a/plugins/router/plugin.go b/plugins/router/plugin.go index 25c6185..8792545 100644 --- a/plugins/router/plugin.go +++ b/plugins/router/plugin.go @@ -1,3 +1,7 @@ +// Copyright 2018-present the CoreDHCP Authors. All rights reserved +// This source code is licensed under the MIT license found in the +// LICENSE file in the root directory of this source tree. + package router import ( diff --git a/plugins/server_id/plugin.go b/plugins/server_id/plugin.go index caa989e..1aaa4d8 100644 --- a/plugins/server_id/plugin.go +++ b/plugins/server_id/plugin.go @@ -1,3 +1,7 @@ +// Copyright 2018-present the CoreDHCP Authors. All rights reserved +// This source code is licensed under the MIT license found in the +// LICENSE file in the root directory of this source tree. + package serverid import ( diff --git a/plugins/server_id/plugin_test.go b/plugins/server_id/plugin_test.go index 5497a0e..790e923 100644 --- a/plugins/server_id/plugin_test.go +++ b/plugins/server_id/plugin_test.go @@ -1,3 +1,7 @@ +// Copyright 2018-present the CoreDHCP Authors. All rights reserved +// This source code is licensed under the MIT license found in the +// LICENSE file in the root directory of this source tree. + package serverid import (