config.pb.go 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // versions:
  3. // protoc-gen-go v1.30.0
  4. // protoc v4.24.4
  5. // source: app/tun/config.proto
  6. package tun
  7. import (
  8. proxyman "github.com/v2fly/v2ray-core/v5/app/proxyman"
  9. routercommon "github.com/v2fly/v2ray-core/v5/app/router/routercommon"
  10. packetaddr "github.com/v2fly/v2ray-core/v5/common/net/packetaddr"
  11. _ "github.com/v2fly/v2ray-core/v5/common/protoext"
  12. internet "github.com/v2fly/v2ray-core/v5/transport/internet"
  13. protoreflect "google.golang.org/protobuf/reflect/protoreflect"
  14. protoimpl "google.golang.org/protobuf/runtime/protoimpl"
  15. reflect "reflect"
  16. sync "sync"
  17. )
  18. const (
  19. // Verify that this generated code is sufficiently up-to-date.
  20. _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
  21. // Verify that runtime/protoimpl is sufficiently up-to-date.
  22. _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
  23. )
  24. type Config struct {
  25. state protoimpl.MessageState
  26. sizeCache protoimpl.SizeCache
  27. unknownFields protoimpl.UnknownFields
  28. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
  29. Mtu uint32 `protobuf:"varint,2,opt,name=mtu,proto3" json:"mtu,omitempty"`
  30. UserLevel uint32 `protobuf:"varint,3,opt,name=user_level,json=userLevel,proto3" json:"user_level,omitempty"`
  31. PacketEncoding packetaddr.PacketAddrType `protobuf:"varint,4,opt,name=packet_encoding,json=packetEncoding,proto3,enum=v2ray.core.net.packetaddr.PacketAddrType" json:"packet_encoding,omitempty"`
  32. Tag string `protobuf:"bytes,5,opt,name=tag,proto3" json:"tag,omitempty"`
  33. Ips []*routercommon.CIDR `protobuf:"bytes,6,rep,name=ips,proto3" json:"ips,omitempty"`
  34. Routes []*routercommon.CIDR `protobuf:"bytes,7,rep,name=routes,proto3" json:"routes,omitempty"`
  35. EnablePromiscuousMode bool `protobuf:"varint,8,opt,name=enable_promiscuous_mode,json=enablePromiscuousMode,proto3" json:"enable_promiscuous_mode,omitempty"`
  36. EnableSpoofing bool `protobuf:"varint,9,opt,name=enable_spoofing,json=enableSpoofing,proto3" json:"enable_spoofing,omitempty"`
  37. SocketSettings *internet.SocketConfig `protobuf:"bytes,10,opt,name=socket_settings,json=socketSettings,proto3" json:"socket_settings,omitempty"`
  38. SniffingSettings *proxyman.SniffingConfig `protobuf:"bytes,11,opt,name=sniffing_settings,json=sniffingSettings,proto3" json:"sniffing_settings,omitempty"`
  39. }
  40. func (x *Config) Reset() {
  41. *x = Config{}
  42. if protoimpl.UnsafeEnabled {
  43. mi := &file_app_tun_config_proto_msgTypes[0]
  44. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  45. ms.StoreMessageInfo(mi)
  46. }
  47. }
  48. func (x *Config) String() string {
  49. return protoimpl.X.MessageStringOf(x)
  50. }
  51. func (*Config) ProtoMessage() {}
  52. func (x *Config) ProtoReflect() protoreflect.Message {
  53. mi := &file_app_tun_config_proto_msgTypes[0]
  54. if protoimpl.UnsafeEnabled && x != nil {
  55. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  56. if ms.LoadMessageInfo() == nil {
  57. ms.StoreMessageInfo(mi)
  58. }
  59. return ms
  60. }
  61. return mi.MessageOf(x)
  62. }
  63. // Deprecated: Use Config.ProtoReflect.Descriptor instead.
  64. func (*Config) Descriptor() ([]byte, []int) {
  65. return file_app_tun_config_proto_rawDescGZIP(), []int{0}
  66. }
  67. func (x *Config) GetName() string {
  68. if x != nil {
  69. return x.Name
  70. }
  71. return ""
  72. }
  73. func (x *Config) GetMtu() uint32 {
  74. if x != nil {
  75. return x.Mtu
  76. }
  77. return 0
  78. }
  79. func (x *Config) GetUserLevel() uint32 {
  80. if x != nil {
  81. return x.UserLevel
  82. }
  83. return 0
  84. }
  85. func (x *Config) GetPacketEncoding() packetaddr.PacketAddrType {
  86. if x != nil {
  87. return x.PacketEncoding
  88. }
  89. return packetaddr.PacketAddrType(0)
  90. }
  91. func (x *Config) GetTag() string {
  92. if x != nil {
  93. return x.Tag
  94. }
  95. return ""
  96. }
  97. func (x *Config) GetIps() []*routercommon.CIDR {
  98. if x != nil {
  99. return x.Ips
  100. }
  101. return nil
  102. }
  103. func (x *Config) GetRoutes() []*routercommon.CIDR {
  104. if x != nil {
  105. return x.Routes
  106. }
  107. return nil
  108. }
  109. func (x *Config) GetEnablePromiscuousMode() bool {
  110. if x != nil {
  111. return x.EnablePromiscuousMode
  112. }
  113. return false
  114. }
  115. func (x *Config) GetEnableSpoofing() bool {
  116. if x != nil {
  117. return x.EnableSpoofing
  118. }
  119. return false
  120. }
  121. func (x *Config) GetSocketSettings() *internet.SocketConfig {
  122. if x != nil {
  123. return x.SocketSettings
  124. }
  125. return nil
  126. }
  127. func (x *Config) GetSniffingSettings() *proxyman.SniffingConfig {
  128. if x != nil {
  129. return x.SniffingSettings
  130. }
  131. return nil
  132. }
  133. var File_app_tun_config_proto protoreflect.FileDescriptor
  134. var file_app_tun_config_proto_rawDesc = []byte{
  135. 0x0a, 0x14, 0x61, 0x70, 0x70, 0x2f, 0x74, 0x75, 0x6e, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67,
  136. 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x12, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f,
  137. 0x72, 0x65, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x74, 0x75, 0x6e, 0x1a, 0x19, 0x61, 0x70, 0x70, 0x2f,
  138. 0x70, 0x72, 0x6f, 0x78, 0x79, 0x6d, 0x61, 0x6e, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e,
  139. 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x24, 0x61, 0x70, 0x70, 0x2f, 0x72, 0x6f, 0x75, 0x74, 0x65,
  140. 0x72, 0x2f, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x72, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x63,
  141. 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x20, 0x63, 0x6f, 0x6d,
  142. 0x6d, 0x6f, 0x6e, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x65, 0x78, 0x74, 0x2f, 0x65, 0x78, 0x74,
  143. 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x22, 0x63,
  144. 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x6e, 0x65, 0x74, 0x2f, 0x70, 0x61, 0x63, 0x6b, 0x65, 0x74,
  145. 0x61, 0x64, 0x64, 0x72, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74,
  146. 0x6f, 0x1a, 0x1f, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2f, 0x69, 0x6e, 0x74,
  147. 0x65, 0x72, 0x6e, 0x65, 0x74, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x70, 0x72, 0x6f,
  148. 0x74, 0x6f, 0x22, 0xd2, 0x04, 0x0a, 0x06, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x12, 0x0a,
  149. 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d,
  150. 0x65, 0x12, 0x10, 0x0a, 0x03, 0x6d, 0x74, 0x75, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x03,
  151. 0x6d, 0x74, 0x75, 0x12, 0x1d, 0x0a, 0x0a, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x6c, 0x65, 0x76, 0x65,
  152. 0x6c, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x09, 0x75, 0x73, 0x65, 0x72, 0x4c, 0x65, 0x76,
  153. 0x65, 0x6c, 0x12, 0x52, 0x0a, 0x0f, 0x70, 0x61, 0x63, 0x6b, 0x65, 0x74, 0x5f, 0x65, 0x6e, 0x63,
  154. 0x6f, 0x64, 0x69, 0x6e, 0x67, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x29, 0x2e, 0x76, 0x32,
  155. 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x6e, 0x65, 0x74, 0x2e, 0x70, 0x61, 0x63,
  156. 0x6b, 0x65, 0x74, 0x61, 0x64, 0x64, 0x72, 0x2e, 0x50, 0x61, 0x63, 0x6b, 0x65, 0x74, 0x41, 0x64,
  157. 0x64, 0x72, 0x54, 0x79, 0x70, 0x65, 0x52, 0x0e, 0x70, 0x61, 0x63, 0x6b, 0x65, 0x74, 0x45, 0x6e,
  158. 0x63, 0x6f, 0x64, 0x69, 0x6e, 0x67, 0x12, 0x10, 0x0a, 0x03, 0x74, 0x61, 0x67, 0x18, 0x05, 0x20,
  159. 0x01, 0x28, 0x09, 0x52, 0x03, 0x74, 0x61, 0x67, 0x12, 0x3a, 0x0a, 0x03, 0x69, 0x70, 0x73, 0x18,
  160. 0x06, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x28, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f,
  161. 0x72, 0x65, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x72, 0x2e, 0x72, 0x6f,
  162. 0x75, 0x74, 0x65, 0x72, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x43, 0x49, 0x44, 0x52, 0x52,
  163. 0x03, 0x69, 0x70, 0x73, 0x12, 0x40, 0x0a, 0x06, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x73, 0x18, 0x07,
  164. 0x20, 0x03, 0x28, 0x0b, 0x32, 0x28, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72,
  165. 0x65, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x72, 0x2e, 0x72, 0x6f, 0x75,
  166. 0x74, 0x65, 0x72, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x43, 0x49, 0x44, 0x52, 0x52, 0x06,
  167. 0x72, 0x6f, 0x75, 0x74, 0x65, 0x73, 0x12, 0x36, 0x0a, 0x17, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65,
  168. 0x5f, 0x70, 0x72, 0x6f, 0x6d, 0x69, 0x73, 0x63, 0x75, 0x6f, 0x75, 0x73, 0x5f, 0x6d, 0x6f, 0x64,
  169. 0x65, 0x18, 0x08, 0x20, 0x01, 0x28, 0x08, 0x52, 0x15, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x50,
  170. 0x72, 0x6f, 0x6d, 0x69, 0x73, 0x63, 0x75, 0x6f, 0x75, 0x73, 0x4d, 0x6f, 0x64, 0x65, 0x12, 0x27,
  171. 0x0a, 0x0f, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x73, 0x70, 0x6f, 0x6f, 0x66, 0x69, 0x6e,
  172. 0x67, 0x18, 0x09, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0e, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x53,
  173. 0x70, 0x6f, 0x6f, 0x66, 0x69, 0x6e, 0x67, 0x12, 0x54, 0x0a, 0x0f, 0x73, 0x6f, 0x63, 0x6b, 0x65,
  174. 0x74, 0x5f, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x0b,
  175. 0x32, 0x2b, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x74, 0x72,
  176. 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x65, 0x74,
  177. 0x2e, 0x53, 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x0e, 0x73,
  178. 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x12, 0x54, 0x0a,
  179. 0x11, 0x73, 0x6e, 0x69, 0x66, 0x66, 0x69, 0x6e, 0x67, 0x5f, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e,
  180. 0x67, 0x73, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79,
  181. 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x6d,
  182. 0x61, 0x6e, 0x2e, 0x53, 0x6e, 0x69, 0x66, 0x66, 0x69, 0x6e, 0x67, 0x43, 0x6f, 0x6e, 0x66, 0x69,
  183. 0x67, 0x52, 0x10, 0x73, 0x6e, 0x69, 0x66, 0x66, 0x69, 0x6e, 0x67, 0x53, 0x65, 0x74, 0x74, 0x69,
  184. 0x6e, 0x67, 0x73, 0x3a, 0x12, 0x82, 0xb5, 0x18, 0x0e, 0x0a, 0x07, 0x73, 0x65, 0x72, 0x76, 0x69,
  185. 0x63, 0x65, 0x12, 0x03, 0x74, 0x75, 0x6e, 0x42, 0x57, 0x0a, 0x16, 0x63, 0x6f, 0x6d, 0x2e, 0x76,
  186. 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x74, 0x75,
  187. 0x6e, 0x50, 0x01, 0x5a, 0x26, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f,
  188. 0x76, 0x32, 0x66, 0x6c, 0x79, 0x2f, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2d, 0x63, 0x6f, 0x72, 0x65,
  189. 0x2f, 0x76, 0x35, 0x2f, 0x61, 0x70, 0x70, 0x2f, 0x74, 0x75, 0x6e, 0xaa, 0x02, 0x12, 0x56, 0x32,
  190. 0x52, 0x61, 0x79, 0x2e, 0x43, 0x6f, 0x72, 0x65, 0x2e, 0x41, 0x70, 0x70, 0x2e, 0x54, 0x75, 0x6e,
  191. 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
  192. }
  193. var (
  194. file_app_tun_config_proto_rawDescOnce sync.Once
  195. file_app_tun_config_proto_rawDescData = file_app_tun_config_proto_rawDesc
  196. )
  197. func file_app_tun_config_proto_rawDescGZIP() []byte {
  198. file_app_tun_config_proto_rawDescOnce.Do(func() {
  199. file_app_tun_config_proto_rawDescData = protoimpl.X.CompressGZIP(file_app_tun_config_proto_rawDescData)
  200. })
  201. return file_app_tun_config_proto_rawDescData
  202. }
  203. var file_app_tun_config_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
  204. var file_app_tun_config_proto_goTypes = []interface{}{
  205. (*Config)(nil), // 0: v2ray.core.app.tun.Config
  206. (packetaddr.PacketAddrType)(0), // 1: v2ray.core.net.packetaddr.PacketAddrType
  207. (*routercommon.CIDR)(nil), // 2: v2ray.core.app.router.routercommon.CIDR
  208. (*internet.SocketConfig)(nil), // 3: v2ray.core.transport.internet.SocketConfig
  209. (*proxyman.SniffingConfig)(nil), // 4: v2ray.core.app.proxyman.SniffingConfig
  210. }
  211. var file_app_tun_config_proto_depIdxs = []int32{
  212. 1, // 0: v2ray.core.app.tun.Config.packet_encoding:type_name -> v2ray.core.net.packetaddr.PacketAddrType
  213. 2, // 1: v2ray.core.app.tun.Config.ips:type_name -> v2ray.core.app.router.routercommon.CIDR
  214. 2, // 2: v2ray.core.app.tun.Config.routes:type_name -> v2ray.core.app.router.routercommon.CIDR
  215. 3, // 3: v2ray.core.app.tun.Config.socket_settings:type_name -> v2ray.core.transport.internet.SocketConfig
  216. 4, // 4: v2ray.core.app.tun.Config.sniffing_settings:type_name -> v2ray.core.app.proxyman.SniffingConfig
  217. 5, // [5:5] is the sub-list for method output_type
  218. 5, // [5:5] is the sub-list for method input_type
  219. 5, // [5:5] is the sub-list for extension type_name
  220. 5, // [5:5] is the sub-list for extension extendee
  221. 0, // [0:5] is the sub-list for field type_name
  222. }
  223. func init() { file_app_tun_config_proto_init() }
  224. func file_app_tun_config_proto_init() {
  225. if File_app_tun_config_proto != nil {
  226. return
  227. }
  228. if !protoimpl.UnsafeEnabled {
  229. file_app_tun_config_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
  230. switch v := v.(*Config); i {
  231. case 0:
  232. return &v.state
  233. case 1:
  234. return &v.sizeCache
  235. case 2:
  236. return &v.unknownFields
  237. default:
  238. return nil
  239. }
  240. }
  241. }
  242. type x struct{}
  243. out := protoimpl.TypeBuilder{
  244. File: protoimpl.DescBuilder{
  245. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  246. RawDescriptor: file_app_tun_config_proto_rawDesc,
  247. NumEnums: 0,
  248. NumMessages: 1,
  249. NumExtensions: 0,
  250. NumServices: 0,
  251. },
  252. GoTypes: file_app_tun_config_proto_goTypes,
  253. DependencyIndexes: file_app_tun_config_proto_depIdxs,
  254. MessageInfos: file_app_tun_config_proto_msgTypes,
  255. }.Build()
  256. File_app_tun_config_proto = out.File
  257. file_app_tun_config_proto_rawDesc = nil
  258. file_app_tun_config_proto_goTypes = nil
  259. file_app_tun_config_proto_depIdxs = nil
  260. }