4 * @copyright Copyright (C) 2016 Sproute Networks, Inc.
6 * @author Avneesh Sachdev <avneesh@sproute.com>
8 * Permission to use, copy, modify, and/or distribute this software
9 * for any purpose with or without fee is hereby granted, provided
10 * that the above copyright notice and this permission notice appear
13 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
14 * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
15 * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE
16 * AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR
17 * CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS
18 * OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
19 * NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
20 * CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
26 * Protobuf definitions pertaining to the Quagga/FRR Protobuf component.
32 IPV4 = 1; // IP version 4
33 IPV6 = 2; // IP version 6
36 enum SubAddressFamily {
43 // An IP version 4 address, such as 10.1.1.1.
46 required fixed32 value = 1 ;
52 required bytes bytes = 1;
56 // An IP version 4 or IP version 6 address.
59 optional Ipv4Address v4 = 1;
60 optional Ipv6Address v6 = 2;
64 // An IP prefix, such as 10.1/16.
65 // We use the message below to represent both IPv4 and IPv6 prefixes.
67 required uint32 length = 1;
68 required bytes bytes = 2;
72 // Something that identifies an interface on a machine. It can either
73 // be a name (for instance, 'eth0') or a number currently.
75 message IfIdentifier {
76 optional uint32 index = 1;
77 optional string name = 2;