From 22b200ce96637da0b7970a8ed75f74eb515b8d69 Mon Sep 17 00:00:00 2001 From: Antonin Bas Date: Thu, 22 Oct 2015 16:08:11 -0700 Subject: [PATCH] added Apache header on P4 files --- examples/TLV_parsing/p4src/TLV_parsing.p4 | 16 ++++++++++++++++ examples/copy_to_cpu/p4src/copy_to_cpu.p4 | 16 ++++++++++++++++ examples/meter/p4src/meter.p4 | 16 ++++++++++++++++ 3 files changed, 48 insertions(+) diff --git a/examples/TLV_parsing/p4src/TLV_parsing.p4 b/examples/TLV_parsing/p4src/TLV_parsing.p4 index 525b2a3..02df510 100644 --- a/examples/TLV_parsing/p4src/TLV_parsing.p4 +++ b/examples/TLV_parsing/p4src/TLV_parsing.p4 @@ -1,3 +1,19 @@ +/* +Copyright 2013-present Barefoot Networks, Inc. + +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. +*/ + header_type ethernet_t { fields { dstAddr : 48; diff --git a/examples/copy_to_cpu/p4src/copy_to_cpu.p4 b/examples/copy_to_cpu/p4src/copy_to_cpu.p4 index bcc388c..1517ead 100644 --- a/examples/copy_to_cpu/p4src/copy_to_cpu.p4 +++ b/examples/copy_to_cpu/p4src/copy_to_cpu.p4 @@ -1,3 +1,19 @@ +/* +Copyright 2013-present Barefoot Networks, Inc. + +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. +*/ + header_type ethernet_t { fields { dstAddr : 48; diff --git a/examples/meter/p4src/meter.p4 b/examples/meter/p4src/meter.p4 index 66f115e..fb880f8 100644 --- a/examples/meter/p4src/meter.p4 +++ b/examples/meter/p4src/meter.p4 @@ -1,3 +1,19 @@ +/* +Copyright 2013-present Barefoot Networks, Inc. + +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. +*/ + header_type ethernet_t { fields { dstAddr : 48;