4 * @copyright Copyright (C) 2016 Sproute Networks, Inc.
6 * @author Avneesh Sachdev <avneesh@sproute.com>
8 * Permission is granted to use, copy, modify and/or distribute this
9 * software under either one of the licenses below.
11 * Note that if you use other files from the Quagga tree directly or
12 * indirectly, then the licenses in those files still apply.
14 * Please retain both licenses below when modifying this code in the
19 * License Option 1: GPL
21 * This program is free software; you can redistribute it and/or modify it
22 * under the terms of the GNU General Public License as published by the Free
23 * Software Foundation; either version 2 of the License, or (at your option)
26 * This program is distributed in the hope that it will be useful,but WITHOUT
27 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
28 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
31 * You should have received a copy of the GNU General Public License along
32 * with this program; if not, write to the Free Software Foundation, Inc.,
33 * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
37 * License Option 2: ISC License
39 * Permission to use, copy, modify, and/or distribute this software
40 * for any purpose with or without fee is hereby granted, provided
41 * that the above copyright notice and this permission notice appear
44 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
45 * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
46 * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE
47 * AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR
48 * CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS
49 * OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
50 * NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
51 * CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
55 * Protobuf definitions pertaining to the Quagga Protobuf component.
61 IPV4 = 1; // IP version 4
62 IPV6 = 2; // IP version 6
65 enum SubAddressFamily {
72 // An IP version 4 address, such as 10.1.1.1.
75 required fixed32 value = 1 ;
81 required bytes bytes = 1;
85 // An IP version 4 or IP version 6 address.
88 optional Ipv4Address v4 = 1;
89 optional Ipv6Address v6 = 2;
93 // An IP prefix, such as 10.1/16.
94 // We use the message below to represent both IPv4 and IPv6 prefixes.
96 required uint32 length = 1;
97 required bytes bytes = 2;
101 // Something that identifies an interface on a machine. It can either
102 // be a name (for instance, 'eth0') or a number currently.
104 message IfIdentifier {
105 optional uint32 index = 1;
106 optional string name = 2;