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";
7 package goby.acomms.protobuf;
9 message IPGatewayConfig
11 optional AppBaseConfig app = 1;
13 required string local_ipv4_address = 2;
14 required uint32 cidr_netmask_prefix = 3;
15 optional int32 tun_number = 4;
17 optional bool enable_broadcast_address = 10 [
19 ]; // use all ones address as broadcast (e.g. 192.168.1.255 in /24 subnet
20 optional uint32 dynamic_address_count = 11
22 0]; // number of dynamic addresses for use as reverse-NAT
23 // (starting at one less than broadcast and counting down).
28 AUTONOMY_COLLABORATION = 2;
31 optional ModelType model_type = 12 [default = UNIFORM];
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];
37 optional int32 total_ports = 20 [default = 1];
38 repeated uint32 static_udp_port = 21;
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;
45 optional int32 queue_size = 40 [default = 100];
47 optional int32 only_rate = 50;