Goby v2
route.proto
1 
2 import "goby/common/protobuf/option_extensions.proto";
3 import "dccl/option_extensions.proto";
4 
5 package goby.acomms.protobuf;
6 
7 message StaticRoute
8 {
9  repeated int32 hop = 1 [
10  (dccl.field).min = 0,
11  (dccl.field).max = 31,
12  (dccl.field).max_repeat = 31
13  ];
14 }
15 
16 message RouteManagerConfig
17 {
18  optional StaticRoute route = 1;
19  optional uint32 subnet_mask = 2 [default = 0xFFFFFF00]; // 255.255.255.0
20  optional uint32 default_gateway = 3;
21 }
22 
23 message RouteCommand
24 {
25  option (dccl.msg).id = 514;
26  option (dccl.msg).max_bytes = 64;
27  option (dccl.msg).codec_version = 3;
28 
29  optional int32 src = 1 [
30  (dccl.field).min = 0,
31  (dccl.field).max = 31,
32  (dccl.field).in_head = true
33  ];
34  optional int32 dest = 2 [
35  (dccl.field).min = 0,
36  (dccl.field).max = 31,
37  (dccl.field).in_head = true
38  ];
39  optional uint64 time = 3
40  [(dccl.field).in_head = true, (dccl.field).codec = "_time"];
41  optional StaticRoute new_route = 4;
42 }