diff --git a/README.md b/README.md index 6a766db1..0ad14b22 100644 --- a/README.md +++ b/README.md @@ -51,5 +51,6 @@ This main repository of Alcor Control Agent is organized as follows: ## Notes * ovs_control.h and ovs_control.cpp is based on https://github.com/openvswitch/ovs/blob/master/utilities/ovs-ofctl.c +* libfluid-base/*.h(*.cpp) and libfluid-msg/*.h(*.cpp) are based on https://github.com/OpenNetworkingFoundation/libfluid, the usage of derived class is based on https://github.com/OpenNetworkingFoundation/libfluid/tree/master/examples/controller * aca_grpc.cpp is based on https://github.com/grpc/grpc/blob/v1.30.0/examples/cpp/route_guide/route_guide_server.cc * HashMap.h and HashNode.h is based on https://github.com/kshk123/hashMap diff --git a/include/libfluid-base/OFClient.hh b/include/libfluid-base/OFClient.hh index 2aaa89d0..1efa894d 100644 --- a/include/libfluid-base/OFClient.hh +++ b/include/libfluid-base/OFClient.hh @@ -1,3 +1,18 @@ +// Copyright (c) 2014 Open Networking Foundation +// Copyright 2021 The Alcor Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + #pragma once #include "base/BaseOFConnection.hh" diff --git a/include/libfluid-base/OFConnection.hh b/include/libfluid-base/OFConnection.hh index 49c32d4c..29761353 100644 --- a/include/libfluid-base/OFConnection.hh +++ b/include/libfluid-base/OFConnection.hh @@ -1,3 +1,18 @@ +// Copyright (c) 2014 Open Networking Foundation +// Copyright 2021 The Alcor Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + /** @file */ #ifndef __OFCONNECTION_HH__ #define __OFCONNECTION_HH__ diff --git a/include/libfluid-base/OFServer.hh b/include/libfluid-base/OFServer.hh index c38c0f41..a3ef3c54 100644 --- a/include/libfluid-base/OFServer.hh +++ b/include/libfluid-base/OFServer.hh @@ -1,3 +1,18 @@ +// Copyright (c) 2014 Open Networking Foundation +// Copyright 2021 The Alcor Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + /** @file */ #ifndef __OFSERVER_HH__ #define __OFSERVER_HH__ diff --git a/include/libfluid-base/OFServerSettings.hh b/include/libfluid-base/OFServerSettings.hh index f2158251..6dafe3e5 100644 --- a/include/libfluid-base/OFServerSettings.hh +++ b/include/libfluid-base/OFServerSettings.hh @@ -1,3 +1,18 @@ +// Copyright (c) 2014 Open Networking Foundation +// Copyright 2021 The Alcor Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + /** @file */ #ifndef __OFSERVERSETTINGS_HH__ #define __OFSERVERSETTINGS_HH__ diff --git a/include/libfluid-base/TLS.hh b/include/libfluid-base/TLS.hh index a09dab99..6c8b3029 100644 --- a/include/libfluid-base/TLS.hh +++ b/include/libfluid-base/TLS.hh @@ -1,3 +1,18 @@ +// Copyright (c) 2014 Open Networking Foundation +// Copyright 2021 The Alcor Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + /** @file Functions for secure communication using SSL */ #ifndef __SSL_IMPL_HH__ #define __SSL_IMPL_HH__ diff --git a/include/libfluid-base/base/BaseOFClient.hh b/include/libfluid-base/base/BaseOFClient.hh index 21356b01..05c249c3 100644 --- a/include/libfluid-base/base/BaseOFClient.hh +++ b/include/libfluid-base/base/BaseOFClient.hh @@ -1,3 +1,18 @@ +// Copyright (c) 2014 Open Networking Foundation +// Copyright 2021 The Alcor Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + #pragma once #include diff --git a/include/libfluid-base/base/BaseOFConnection.hh b/include/libfluid-base/base/BaseOFConnection.hh index 62e8130b..77e77963 100644 --- a/include/libfluid-base/base/BaseOFConnection.hh +++ b/include/libfluid-base/base/BaseOFConnection.hh @@ -1,3 +1,18 @@ +// Copyright (c) 2014 Open Networking Foundation +// Copyright 2021 The Alcor Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + /** @file */ #ifndef __BASEOFCONNECTION_HH__ #define __BASEOFCONNECTION_HH__ diff --git a/include/libfluid-base/base/BaseOFServer.hh b/include/libfluid-base/base/BaseOFServer.hh index 2eece696..8c2ae061 100644 --- a/include/libfluid-base/base/BaseOFServer.hh +++ b/include/libfluid-base/base/BaseOFServer.hh @@ -1,3 +1,18 @@ +// Copyright (c) 2014 Open Networking Foundation +// Copyright 2021 The Alcor Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + /** @file */ #ifndef __BASEOFSERVER_HH__ #define __BASEOFSERVER_HH__ diff --git a/include/libfluid-base/base/EventLoop.hh b/include/libfluid-base/base/EventLoop.hh index d6f53177..f4b0eb72 100644 --- a/include/libfluid-base/base/EventLoop.hh +++ b/include/libfluid-base/base/EventLoop.hh @@ -1,3 +1,18 @@ +// Copyright (c) 2014 Open Networking Foundation +// Copyright 2021 The Alcor Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + /** @file */ #ifndef __EVENTLOOP_HH__ #define __EVENTLOOP_HH__ diff --git a/include/libfluid-msg/of10/of10action.hh b/include/libfluid-msg/of10/of10action.hh index f6a3270b..9d9803d2 100644 --- a/include/libfluid-msg/of10/of10action.hh +++ b/include/libfluid-msg/of10/of10action.hh @@ -1,3 +1,18 @@ +// Copyright (c) 2014 Open Networking Foundation +// Copyright 2021 The Alcor Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + #ifndef OF10ACTION_H #define OF10ACTION_H diff --git a/include/libfluid-msg/of10/of10common.hh b/include/libfluid-msg/of10/of10common.hh index 1bfb6cd5..f6abd393 100644 --- a/include/libfluid-msg/of10/of10common.hh +++ b/include/libfluid-msg/of10/of10common.hh @@ -1,3 +1,18 @@ +// Copyright (c) 2014 Open Networking Foundation +// Copyright 2021 The Alcor Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + #ifndef OF10OPENFLOW_COMMON_H #define OF10OPENFLOW_COMMON_H 1 diff --git a/include/libfluid-msg/of10/of10match.hh b/include/libfluid-msg/of10/of10match.hh index 24f638d2..b259976c 100644 --- a/include/libfluid-msg/of10/of10match.hh +++ b/include/libfluid-msg/of10/of10match.hh @@ -1,3 +1,18 @@ +// Copyright (c) 2014 Open Networking Foundation +// Copyright 2021 The Alcor Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + #ifndef OF10OPENFLOW_MATCH_H #define OF10OPENFLOW_MATCH_H 1 diff --git a/include/libfluid-msg/of10msg.hh b/include/libfluid-msg/of10msg.hh index 2e26cc25..64518275 100644 --- a/include/libfluid-msg/of10msg.hh +++ b/include/libfluid-msg/of10msg.hh @@ -1,3 +1,18 @@ +// Copyright (c) 2014 Open Networking Foundation +// Copyright 2021 The Alcor Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + #ifndef OF10MSG_H #define OF10MSG_H 1 diff --git a/include/libfluid-msg/of13/of13action.hh b/include/libfluid-msg/of13/of13action.hh index c4a4540c..df3ffaec 100644 --- a/include/libfluid-msg/of13/of13action.hh +++ b/include/libfluid-msg/of13/of13action.hh @@ -1,3 +1,18 @@ +// Copyright (c) 2014 Open Networking Foundation +// Copyright 2021 The Alcor Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + #ifndef OF13ACTION_H #define OF13ACTION_H diff --git a/include/libfluid-msg/of13/of13common.hh b/include/libfluid-msg/of13/of13common.hh index 18f6ed45..da01a016 100644 --- a/include/libfluid-msg/of13/of13common.hh +++ b/include/libfluid-msg/of13/of13common.hh @@ -1,3 +1,18 @@ +// Copyright (c) 2014 Open Networking Foundation +// Copyright 2021 The Alcor Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + #ifndef OF13OPENFLOW_COMMON_H #define OF13OPENFLOW_COMMON_H 1 diff --git a/include/libfluid-msg/of13/of13instruction.hh b/include/libfluid-msg/of13/of13instruction.hh index 2ba37385..b875f9c9 100644 --- a/include/libfluid-msg/of13/of13instruction.hh +++ b/include/libfluid-msg/of13/of13instruction.hh @@ -1,3 +1,18 @@ +// Copyright (c) 2014 Open Networking Foundation +// Copyright 2021 The Alcor Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + #ifndef OPENFLOW_INSTRUCTION_H #define OPENFLOW_INSTRUCTION_H diff --git a/include/libfluid-msg/of13/of13match.hh b/include/libfluid-msg/of13/of13match.hh index 13b252af..2ce5e5d1 100644 --- a/include/libfluid-msg/of13/of13match.hh +++ b/include/libfluid-msg/of13/of13match.hh @@ -1,3 +1,18 @@ +// Copyright (c) 2014 Open Networking Foundation +// Copyright 2021 The Alcor Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + #ifndef OPENFLOW_MATCH_H #define OPENFLOW_MATCH_H 1 diff --git a/include/libfluid-msg/of13/of13meter.hh b/include/libfluid-msg/of13/of13meter.hh index 7c25843d..57f85310 100644 --- a/include/libfluid-msg/of13/of13meter.hh +++ b/include/libfluid-msg/of13/of13meter.hh @@ -1,3 +1,18 @@ +// Copyright (c) 2014 Open Networking Foundation +// Copyright 2021 The Alcor Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + #ifndef OPENFLOW_METER_H #define OPENFLOW_METER_H diff --git a/include/libfluid-msg/of13/openflow-13.h b/include/libfluid-msg/of13/openflow-13.h index b7e315b4..177b534e 100644 --- a/include/libfluid-msg/of13/openflow-13.h +++ b/include/libfluid-msg/of13/openflow-13.h @@ -1,3 +1,39 @@ +/* Copyright (c) 2008 The Board of Trustees of The Leland Stanford +* Junior University +* Copyright (c) 2011, 2012 Open Networking Foundation +* +* We are making the OpenFlow specification and associated documentation +* (Software) available for public use and benefit with the expectation +* that others will use, modify and enhance the Software and contribute +* those enhancements back to the community. However, since we would +* like to make the Software available for broadest use, with as few +* restrictions as possible permission is hereby granted, free of +* charge, to any person obtaining a copy of this Software to deal in +* the Software under the copyrights without restriction, including +* without limitation the rights to use, copy, modify, merge, publish, +* distribute, sublicense, and/or sell copies of the Software, and to +* permit persons to whom the Software is furnished to do so, subject to +* the following conditions: +* +* The above copyright notice and this permission notice shall be +* included in all copies or substantial portions of the Software. +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS +* BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN +* ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +* SOFTWARE. +* +* The name and trademarks of copyright holder(s) may NOT be used in +* advertising or publicity pertaining to the Software or any +* derivatives without specific, written prior permission. +*/ + +/* OpenFlow: protocol between controller and datapath. */ + #ifndef OPENFLOW_OPENFLOW13_H #define OPENFLOW_OPENFLOW13_H 1 diff --git a/include/libfluid-msg/of13msg.hh b/include/libfluid-msg/of13msg.hh index b56f8acd..d8aa47b3 100644 --- a/include/libfluid-msg/of13msg.hh +++ b/include/libfluid-msg/of13msg.hh @@ -1,3 +1,18 @@ +// Copyright (c) 2014 Open Networking Foundation +// Copyright 2021 The Alcor Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + #ifndef OF13MSG_H #define OF13MSG_H 1 diff --git a/include/libfluid-msg/ofcommon/action.hh b/include/libfluid-msg/ofcommon/action.hh index 5fb6376b..00fa0921 100644 --- a/include/libfluid-msg/ofcommon/action.hh +++ b/include/libfluid-msg/ofcommon/action.hh @@ -1,3 +1,18 @@ +// Copyright (c) 2014 Open Networking Foundation +// Copyright 2021 The Alcor Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + #ifndef ACTION_H #define ACTION_H diff --git a/include/libfluid-msg/ofcommon/common.hh b/include/libfluid-msg/ofcommon/common.hh index 0244bf75..86b67c6a 100644 --- a/include/libfluid-msg/ofcommon/common.hh +++ b/include/libfluid-msg/ofcommon/common.hh @@ -1,3 +1,18 @@ +// Copyright (c) 2014 Open Networking Foundation +// Copyright 2021 The Alcor Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + #pragma once #include diff --git a/include/libfluid-msg/ofcommon/msg.hh b/include/libfluid-msg/ofcommon/msg.hh index 071b3d8f..ba307dfc 100644 --- a/include/libfluid-msg/ofcommon/msg.hh +++ b/include/libfluid-msg/ofcommon/msg.hh @@ -1,3 +1,18 @@ +// Copyright (c) 2014 Open Networking Foundation +// Copyright 2021 The Alcor Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + #ifndef MSG_H #define MSG_H 1 diff --git a/include/libfluid-msg/ofcommon/openflow-common.hh b/include/libfluid-msg/ofcommon/openflow-common.hh index 30c4d132..7070517e 100644 --- a/include/libfluid-msg/ofcommon/openflow-common.hh +++ b/include/libfluid-msg/ofcommon/openflow-common.hh @@ -1,3 +1,18 @@ +// Copyright (c) 2014 Open Networking Foundation +// Copyright 2021 The Alcor Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + #ifndef OPENFLOW_OPENFLOWCOMMON_H #define OPENFLOW_OPENFLOWCOMMON_H 1 diff --git a/include/libfluid-msg/util/ethaddr.hh b/include/libfluid-msg/util/ethaddr.hh index 6a9c3052..ee0ab695 100644 --- a/include/libfluid-msg/util/ethaddr.hh +++ b/include/libfluid-msg/util/ethaddr.hh @@ -1,3 +1,18 @@ +// Copyright (c) 2014 Open Networking Foundation +// Copyright 2021 The Alcor Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + #ifndef __MACADDRESS_H__ #define __MACADDRESS_H__ diff --git a/include/libfluid-msg/util/ipaddr.hh b/include/libfluid-msg/util/ipaddr.hh index c2771615..2480dc58 100644 --- a/include/libfluid-msg/util/ipaddr.hh +++ b/include/libfluid-msg/util/ipaddr.hh @@ -1,3 +1,18 @@ +// Copyright (c) 2014 Open Networking Foundation +// Copyright 2021 The Alcor Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + #ifndef __IPADDRESS_H__ #define __IPADDRESS_H__ diff --git a/include/of_controller.h b/include/of_controller.h index 47dae1ea..21147d70 100644 --- a/include/of_controller.h +++ b/include/of_controller.h @@ -1,3 +1,17 @@ +// MIT License +// Copyright(c) 2020 Futurewei Cloud +// +// Permission is hereby granted, +// free of charge, to any person obtaining a copy of this software and associated documentation files(the "Software"), to deal in the Software without restriction, +// including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and / or sell copies of the Software, and to permit persons +// to whom the Software is furnished to do so, subject to the following conditions: +// +// The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, +// WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + #pragma once #include "of_message.h" diff --git a/include/of_message.h b/include/of_message.h index fcc07ce9..583e3bca 100644 --- a/include/of_message.h +++ b/include/of_message.h @@ -1,3 +1,17 @@ +// MIT License +// Copyright(c) 2020 Futurewei Cloud +// +// Permission is hereby granted, +// free of charge, to any person obtaining a copy of this software and associated documentation files(the "Software"), to deal in the Software without restriction, +// including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and / or sell copies of the Software, and to permit persons +// to whom the Software is furnished to do so, subject to the following conditions: +// +// The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, +// WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + #pragma once #include #include diff --git a/src/ovs/of_controller.cpp b/src/ovs/of_controller.cpp index 737fe919..e7f9a079 100644 --- a/src/ovs/of_controller.cpp +++ b/src/ovs/of_controller.cpp @@ -1,3 +1,17 @@ +// MIT License +// Copyright(c) 2020 Futurewei Cloud +// +// Permission is hereby granted, +// free of charge, to any person obtaining a copy of this software and associated documentation files(the "Software"), to deal in the Software without restriction, +// including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and / or sell copies of the Software, and to permit persons +// to whom the Software is furnished to do so, subject to the following conditions: +// +// The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, +// WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + #include #include "of_controller.h" diff --git a/src/ovs/of_message.cpp b/src/ovs/of_message.cpp index 267b86b4..408b739f 100644 --- a/src/ovs/of_message.cpp +++ b/src/ovs/of_message.cpp @@ -1,3 +1,17 @@ +// MIT License +// Copyright(c) 2020 Futurewei Cloud +// +// Permission is hereby granted, +// free of charge, to any person obtaining a copy of this software and associated documentation files(the "Software"), to deal in the Software without restriction, +// including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and / or sell copies of the Software, and to permit persons +// to whom the Software is furnished to do so, subject to the following conditions: +// +// The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, +// WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + #include "of_message.h" #include "aca_log.h" #include "aca_util.h"