Goby v2
ip_gateway_config.proto
1 
2 import "goby/common/protobuf/option_extensions.proto";
3 import "goby/common/protobuf/app_base_config.proto";
4 import "goby/acomms/protobuf/amac_config.proto";
5 import "goby/acomms/protobuf/modem_message.proto";
6 
7 package goby.acomms.protobuf;
8 
9 message IPGatewayConfig
10 {
11  optional AppBaseConfig app = 1;
12 
13  required string local_ipv4_address = 2;
14  required uint32 cidr_netmask_prefix = 3;
15  optional int32 tun_number = 4;
16 
17  optional bool enable_broadcast_address = 10 [
18  default = true
19  ]; // use all ones address as broadcast (e.g. 192.168.1.255 in /24 subnet
20  optional uint32 dynamic_address_count = 11
21  [default =
22  0]; // number of dynamic addresses for use as reverse-NAT
23  // (starting at one less than broadcast and counting down).
24 
25  enum ModelType
26  {
27  UNIFORM = 1;
28  AUTONOMY_COLLABORATION = 2;
29  }
30 
31  optional ModelType model_type = 12 [default = UNIFORM];
32 
33  optional double gamma_autonomy = 13 [default = 0.75];
34  optional double gamma_collaboration = 14 [default = 0.25];
35  optional int32 gateway_id = 15 [default = 1];
36 
37  optional int32 total_ports = 20 [default = 1];
38  repeated uint32 static_udp_port = 21;
39 
40  optional MACConfig mac_cfg = 30;
41  required uint32 mtu = 31;
42  optional bool bypass_mac = 32 [default = false];
43  optional ModemTransmission bypass_mac_slot = 33;
44 
45  optional int32 queue_size = 40 [default = 100];
46 
47  optional int32 only_rate = 50;
48 }