From 16ea9e2e883cc219d15fa57e34a4e1d31f3ea6af Mon Sep 17 00:00:00 2001 From: Sander Vrijders Date: Tue, 22 Nov 2016 10:54:53 +0100 Subject: ipcpd, lib: Add syntax version to protobuf files This adds a syntax version to the protobuf files. The latest version of protobuf otherwise complains that it is missing. The GPL license is also added on files where it was missing. --- src/ipcpd/normal/flow_alloc.proto | 25 ++++++++++++++++++++++ src/ipcpd/normal/ro.proto | 25 ++++++++++++++++++++++ src/ipcpd/normal/static_info.proto | 25 ++++++++++++++++++++++ src/ipcpd/shim-eth-llc/shim_eth_llc_messages.proto | 25 ++++++++++++++++++++++ src/ipcpd/shim-udp/shim_udp_messages.proto | 25 ++++++++++++++++++++++ 5 files changed, 125 insertions(+) (limited to 'src/ipcpd') diff --git a/src/ipcpd/normal/flow_alloc.proto b/src/ipcpd/normal/flow_alloc.proto index b1ca7cb8..9443e7c3 100644 --- a/src/ipcpd/normal/flow_alloc.proto +++ b/src/ipcpd/normal/flow_alloc.proto @@ -1,3 +1,28 @@ +/* + * Ouroboros - Copyright (C) 2016 + * + * Flow allocation message + * + * Dimitri Staessens + * Sander Vrijders + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. + */ + +syntax = "proto2"; + enum flow_alloc_code { FLOW_REQ = 1; FLOW_REPLY = 2; diff --git a/src/ipcpd/normal/ro.proto b/src/ipcpd/normal/ro.proto index c5062468..f967b968 100644 --- a/src/ipcpd/normal/ro.proto +++ b/src/ipcpd/normal/ro.proto @@ -1,3 +1,28 @@ +/* + * Ouroboros - Copyright (C) 2016 + * + * RIB object message + * + * Dimitri Staessens + * Sander Vrijders + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. + */ + +syntax = "proto2"; + message ro_msg { required uint64 address = 1; required uint64 seqno = 2; diff --git a/src/ipcpd/normal/static_info.proto b/src/ipcpd/normal/static_info.proto index 65a53377..02dc0a3d 100644 --- a/src/ipcpd/normal/static_info.proto +++ b/src/ipcpd/normal/static_info.proto @@ -1,3 +1,28 @@ +/* + * Ouroboros - Copyright (C) 2016 + * + * Static information message + * + * Dimitri Staessens + * Sander Vrijders + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. + */ + +syntax = "proto2"; + message static_info_msg { required uint32 addr_size = 1; required uint32 cep_id_size = 2; diff --git a/src/ipcpd/shim-eth-llc/shim_eth_llc_messages.proto b/src/ipcpd/shim-eth-llc/shim_eth_llc_messages.proto index 045db5c2..7a8d3861 100644 --- a/src/ipcpd/shim-eth-llc/shim_eth_llc_messages.proto +++ b/src/ipcpd/shim-eth-llc/shim_eth_llc_messages.proto @@ -1,3 +1,28 @@ +/* + * Ouroboros - Copyright (C) 2016 + * + * Shim Ethernet with LLC message + * + * Dimitri Staessens + * Sander Vrijders + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. + */ + +syntax = "proto2"; + enum shim_eth_llc_msg_code { FLOW_REQ = 1; FLOW_REPLY = 2; diff --git a/src/ipcpd/shim-udp/shim_udp_messages.proto b/src/ipcpd/shim-udp/shim_udp_messages.proto index bd23f8eb..8a221968 100644 --- a/src/ipcpd/shim-udp/shim_udp_messages.proto +++ b/src/ipcpd/shim-udp/shim_udp_messages.proto @@ -1,3 +1,28 @@ +/* + * Ouroboros - Copyright (C) 2016 + * + * Shim UDP message + * + * Dimitri Staessens + * Sander Vrijders + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. + */ + +syntax = "proto2"; + enum shim_udp_msg_code { FLOW_REQ = 1; FLOW_REPLY = 2; -- cgit v1.2.3