1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Uname {
    #[prost(string, tag="1")]
    pub sysname: std::string::String,
    #[prost(string, tag="2")]
    pub nodename: std::string::String,
    #[prost(string, tag="3")]
    pub release: std::string::String,
    #[prost(string, tag="4")]
    pub version: std::string::String,
    #[prost(string, tag="5")]
    pub machine: std::string::String,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Load {
    #[prost(double, tag="1")]
    pub avg_1: f64,
    #[prost(double, tag="2")]
    pub avg_5: f64,
    #[prost(double, tag="3")]
    pub avg_15: f64,
    #[prost(uint64, tag="4")]
    pub clock: u64,
    #[prost(uint64, tag="5")]
    pub uptime: u64,
    #[prost(uint64, tag="6")]
    pub idletime: u64,
    #[prost(uint64, tag="7")]
    pub proc_active: u64,
    #[prost(uint64, tag="8")]
    pub proc_total: u64,
    #[prost(uint32, tag="9")]
    pub cores: u32,
    #[prost(uint32, tag="10")]
    pub threads: u32,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Mem {
    #[prost(uint64, tag="1")]
    pub total: u64,
    #[prost(uint64, tag="2")]
    pub free: u64,
    #[prost(uint64, tag="3")]
    pub available: u64,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct FileSystem {
    #[prost(string, tag="1")]
    pub path: std::string::String,
    #[prost(uint64, tag="2")]
    pub blocksize: u64,
    #[prost(uint64, tag="3")]
    pub total: u64,
    #[prost(uint64, tag="4")]
    pub free: u64,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Firmware {
    #[prost(string, tag="1")]
    pub board: std::string::String,
    #[prost(string, tag="2")]
    pub distro: std::string::String,
    #[prost(string, tag="3")]
    pub release: std::string::String,
    #[prost(string, tag="4")]
    pub revision: std::string::String,
    #[prost(string, tag="5")]
    pub builder: std::string::String,
    #[prost(string, tag="6")]
    pub finger: std::string::String,
    #[prost(uint32, tag="7")]
    pub android_api_level: u32,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct NetAddress {
    #[prost(string, tag="1")]
    pub addr: std::string::String,
    #[prost(string, tag="2")]
    pub mask: std::string::String,
    #[prost(string, tag="3")]
    pub broadcast: std::string::String,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Netdev {
    #[prost(string, tag="1")]
    pub name: std::string::String,
    #[prost(uint64, tag="2")]
    pub rx_pkt: u64,
    #[prost(uint64, tag="3")]
    pub rx_err: u64,
    #[prost(uint64, tag="4")]
    pub tx_pkt: u64,
    #[prost(uint64, tag="5")]
    pub tx_err: u64,
    #[prost(bool, tag="6")]
    pub up: bool,
    #[prost(string, tag="7")]
    pub macaddr: std::string::String,
    #[prost(uint32, tag="8")]
    pub mtu: u32,
    #[prost(message, repeated, tag="9")]
    pub addrs: ::std::vec::Vec<NetAddress>,
    #[prost(bool, tag="10")]
    pub link: bool,
    #[prost(uint64, tag="11")]
    pub link_changes: u64,
    #[prost(uint64, tag="12")]
    pub link_speed: u64,
    #[prost(enumeration="netdev::Duplex", tag="13")]
    pub link_duplex: i32,
}
pub mod netdev {
    #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
    #[repr(i32)]
    pub enum Duplex {
        Invalid = 0,
        Half = 1,
        Full = 2,
    }
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SwitchPort {
    #[prost(uint64, tag="1")]
    pub port: u64,
    #[prost(bool, tag="2")]
    pub link: bool,
    #[prost(string, tag="3")]
    pub speed: std::string::String,
    #[prost(oneof="switch_port::Role", tags="4, 5, 6")]
    pub role: ::std::option::Option<switch_port::Role>,
}
pub mod switch_port {
    #[derive(Clone, PartialEq, ::prost::Oneof)]
    pub enum Role {
        #[prost(string, tag="4")]
        Network(std::string::String),
        #[prost(string, tag="5")]
        Device(std::string::String),
        #[prost(bool, tag="6")]
        None(bool),
    }
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Switch {
    #[prost(string, tag="1")]
    pub name: std::string::String,
    #[prost(message, repeated, tag="2")]
    pub ports: ::std::vec::Vec<SwitchPort>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Dualboot {
    #[prost(string, tag="1")]
    pub active_side: std::string::String,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Belltower {
    #[prost(string, tag="1")]
    pub current: std::string::String,
    #[prost(string, tag="2")]
    pub previous: std::string::String,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Sysinfo {
    #[prost(message, optional, tag="1")]
    pub uname: ::std::option::Option<Uname>,
    #[prost(message, optional, tag="2")]
    pub mem: ::std::option::Option<Mem>,
    #[prost(message, optional, tag="3")]
    pub load: ::std::option::Option<Load>,
    #[prost(message, optional, tag="4")]
    pub firmware: ::std::option::Option<Firmware>,
    #[prost(message, repeated, tag="5")]
    pub fs: ::std::vec::Vec<FileSystem>,
    #[prost(message, repeated, tag="6")]
    pub net: ::std::vec::Vec<Netdev>,
    #[prost(message, repeated, tag="7")]
    pub switch: ::std::vec::Vec<Switch>,
    #[prost(string, tag="8")]
    pub board_id: std::string::String,
    #[prost(string, tag="9")]
    pub carrier_build_id: std::string::String,
    #[prost(message, optional, tag="10")]
    pub belltower: ::std::option::Option<Belltower>,
    #[prost(message, optional, tag="11")]
    pub dualboot: ::std::option::Option<Dualboot>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct WifiStation {
    #[prost(string, tag="1")]
    pub address: std::string::String,
    #[prost(uint64, tag="2")]
    pub inactive: u64,
    #[prost(uint64, tag="3")]
    pub rx_bytes: u64,
    #[prost(uint64, tag="4")]
    pub rx_packets: u64,
    #[prost(uint64, tag="5")]
    pub tx_bytes: u64,
    #[prost(uint64, tag="6")]
    pub tx_packets: u64,
    #[prost(uint64, tag="7")]
    pub tx_retries: u64,
    #[prost(uint64, tag="8")]
    pub tx_failed: u64,
    #[prost(uint64, tag="9")]
    pub beacon_loss: u64,
    #[prost(uint64, tag="10")]
    pub beacon_rx: u64,
    #[prost(uint64, tag="11")]
    pub rx_drop_misc: u64,
    #[prost(int32, repeated, tag="12")]
    pub signal: ::std::vec::Vec<i32>,
    #[prost(int32, repeated, tag="13")]
    pub signal_avg: ::std::vec::Vec<i32>,
    #[prost(uint64, tag="14")]
    pub beacon_signal_avg: u64,
    #[prost(double, tag="15")]
    pub tx_bitrate: f64,
    #[prost(double, tag="16")]
    pub rx_bitrate: f64,
    #[prost(uint64, tag="17")]
    pub rx_duration: u64,
    #[prost(double, tag="18")]
    pub expected: f64,
    #[prost(bool, tag="19")]
    pub authorized: bool,
    #[prost(bool, tag="20")]
    pub authenticated: bool,
    #[prost(bool, tag="21")]
    pub associated: bool,
    #[prost(string, tag="22")]
    pub preamble: std::string::String,
    #[prost(bool, tag="23")]
    pub wmm: bool,
    #[prost(bool, tag="24")]
    pub mfp: bool,
    #[prost(bool, tag="25")]
    pub tdls: bool,
    #[prost(uint32, tag="26")]
    pub dtim: u32,
    #[prost(uint64, tag="27")]
    pub beacon_interval: u64,
    #[prost(bool, tag="28")]
    pub short_preamble: bool,
    #[prost(bool, tag="29")]
    pub short_slot_time: bool,
    #[prost(uint64, tag="30")]
    pub connected_time: u64,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct WifiInterface {
    #[prost(string, tag="1")]
    pub name: std::string::String,
    #[prost(string, tag="2")]
    pub typ: std::string::String,
    #[prost(uint64, tag="3")]
    pub phy: u64,
    #[prost(string, tag="4")]
    pub ssid: std::string::String,
    #[prost(string, tag="5")]
    pub channel: std::string::String,
    #[prost(double, tag="6")]
    pub txpower: f64,
    #[prost(message, repeated, tag="7")]
    pub stations: ::std::vec::Vec<WifiStation>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DhcpLease {
    #[prost(uint64, tag="1")]
    pub ts: u64,
    #[prost(string, tag="2")]
    pub mac: std::string::String,
    #[prost(string, tag="3")]
    pub ip: std::string::String,
    #[prost(string, tag="4")]
    pub name: std::string::String,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Arp {
    #[prost(string, tag="1")]
    pub ip: std::string::String,
    #[prost(enumeration="arp::HwType", tag="2")]
    pub hw: i32,
    #[prost(string, tag="3")]
    pub mac: std::string::String,
    #[prost(string, tag="4")]
    pub dev: std::string::String,
    #[prost(oneof="arp::Switchport", tags="5, 6")]
    pub switchport: ::std::option::Option<arp::Switchport>,
}
pub mod arp {
    #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
    #[repr(i32)]
    pub enum HwType {
        Unknown = 0,
        Ethernet = 1,
    }
    #[derive(Clone, PartialEq, ::prost::Oneof)]
    pub enum Switchport {
        #[prost(uint64, tag="5")]
        Value(u64),
        #[prost(bool, tag="6")]
        Null(bool),
    }
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct NetRoute {
    #[prost(string, tag="1")]
    pub destination: std::string::String,
    #[prost(string, tag="2")]
    pub gateway: std::string::String,
    #[prost(string, tag="3")]
    pub source: std::string::String,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct NetSurvey {
    #[prost(message, repeated, tag="1")]
    pub wifi: ::std::vec::Vec<WifiInterface>,
    #[prost(message, repeated, tag="2")]
    pub dhcp: ::std::vec::Vec<DhcpLease>,
    #[prost(message, repeated, tag="3")]
    pub arp: ::std::vec::Vec<Arp>,
    #[prost(message, repeated, tag="4")]
    pub routes: ::std::vec::Vec<NetRoute>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct LocationAccuracity {
    #[prost(float, tag="1")]
    pub hdop: f32,
    #[prost(float, tag="2")]
    pub vdop: f32,
    #[prost(float, tag="3")]
    pub pdop: f32,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Satellite {
    #[prost(enumeration="satellite::Constellation", tag="1")]
    pub constellation: i32,
    #[prost(uint32, tag="2")]
    pub prn: u32,
    #[prost(float, tag="3")]
    pub elevation: f32,
    #[prost(float, tag="4")]
    pub azimuth: f32,
    #[prost(float, tag="5")]
    pub snr: f32,
    #[prost(bool, tag="6")]
    pub fix: bool,
}
pub mod satellite {
    #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
    #[repr(i32)]
    pub enum Constellation {
        Unknown = 0,
        Galileo = 1,
        Gps = 2,
        Glonass = 3,
    }
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct LocationVelocity {
    #[prost(float, tag="1")]
    pub course: f32,
    #[prost(float, tag="2")]
    pub speed: f32,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Location {
    #[prost(double, tag="1")]
    pub latitude: f64,
    #[prost(double, tag="2")]
    pub longitude: f64,
    #[prost(float, tag="3")]
    pub altitude: f32,
    #[prost(enumeration="location::Fix", tag="4")]
    pub fix: i32,
    #[prost(message, optional, tag="5")]
    pub accuracity: ::std::option::Option<LocationAccuracity>,
    #[prost(message, repeated, tag="6")]
    pub satellites: ::std::vec::Vec<Satellite>,
    #[prost(message, optional, tag="7")]
    pub velocity: ::std::option::Option<LocationVelocity>,
}
pub mod location {
    #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
    #[repr(i32)]
    pub enum Fix {
        None = 0,
        Gps = 1,
        DGps = 2,
        Pps = 3,
        Rtk = 4,
        FloatRtk = 5,
        Estimated = 6,
        Manual = 7,
        Simulation = 8,
    }
}