This commit is contained in:
2026-07-03 19:10:57 +03:00
parent 6537c41972
commit 14c0009030
7 changed files with 60 additions and 5 deletions

View File

@@ -2,6 +2,10 @@
name = "wara"
version = "0.1.0"
edition = "2024"
license-file = "./LICENSE"
authors = [
"Gvidas Juknevičius <gvidas.juknevicius@mcorangehq.xyz>"
]
[dependencies]
anyhow = "1.0.103"

13
LICENSE Normal file
View File

@@ -0,0 +1,13 @@
Proprietary Software License
Copyright (c) 2026 Gvidas Juknevičius <gvidas.juknevicius@mcorangehq.xyz>
All rights reserved.
This software and all associated source code, documentation, and other materials are the exclusive property of the copyright holder.
No permission is granted to use, copy, modify, merge, publish, distribute, sublicense, sell, reverse engineer, or create derivative works from this software, in whole or in part, without the prior written permission of the copyright holder.
This repository and its contents are provided solely for viewing unless otherwise expressly authorized in writing by the copyright holder.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, AND NON-INFRINGEMENT. IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES, OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT, OR OTHERWISE, ARISING FROM, OUT OF, OR IN CONNECTION WITH THE SOFTWARE OR THE USE OF OR OTHER DEALINGS IN THE SOFTWARE.

View File

@@ -1,5 +0,0 @@
Name,IP,.id,ap,bridge,bytes,distance,frame-bytes,frames,interface,last-activity,last-ip,mac-address,packets,radio-name,routeros-version,rx-ccq,rx-rate,signal-strength,signal-strength-ch0,signal-strength-ch1,signal-to-noise,strength-at-rates,tdma-retx,tdma-rx-size,tdma-timing-offset,tdma-tx-size,tdma-winfull,tx-ccq,tx-rate,tx-rate-set,tx-signal-strength,tx-signal-strength-ch0,tx-signal-strength-ch1,uptime,wds
KLI_SPURGA,10.60.17.23,*1,false,true,"2557633336,128708034",1,"2557852248,129123775","2188267,441115",wlan1,0ms,10.80.17.11,64:D1:54:91:EC:47,"2236186,552855",Sedos 34,6.49.18,66,104Mbps-20MHz/2S,-63,-66,-65,40,"-63@6Mbps 0ms,-61@9Mbps 15h29m13s760ms,-62@12Mbps 15h29m10s460ms,-61@18Mbps 15h29m10s450ms,-64@24Mbps 3m4s740ms,-65@36Mbps 3m2s60ms,-65@48Mbps 17s490ms,-67@54Mbps 16s980ms",5,1520,7,496,0,90,144.4Mbps-20MHz/2S/SGI,"OFDM:6-54 BW:1x SGI:1x HT:0-15 VHTMCS:SS1=0-9,SS2=0-9",-57,-59,-63,15h38m10s,false
KLI_SPURGA,10.60.17.23,*2,false,true,"950673764,218649231",1,"951713687,220908444","4234949,1016954",wlan1,0ms,10.80.17.21,64:D1:54:43:F6:35,"4414597,1456217",sedos 42,6.46.2,95,780Mbps-80MHz/2S/SGI,-46,-50,-48,57,"-46@6Mbps 0ms,-46@9Mbps 2h30m27s860ms,-46@12Mbps 2h30m27s850ms,-47@18Mbps 2h30m39s760ms,-50@54Mbps 8s530ms",1,496,1,4000,0,95,780Mbps-80MHz/2S/SGI,"OFDM:6-54 BW:1x-4x SGI:1x-4x HT:0-15 VHTMCS:SS1=0-9,SS2=0-9",-44,-46,-46,15h38m9s,false
KLI_VENTOS_KRANTO,10.60.17.19,*27,false,true,"79571155703,2550226838",6,"79698231153,2427715753","63248407,20461337",wlan2,10ms,10.80.17.25,64:D1:54:20:C5:C1,"63248407,20459064",Kapu 15,6.49.19,75,6Mbps,-72@6Mbps,-73,-79,33,"-72@6Mbps 10ms,-73@9Mbps 9h58m8s680ms,-74@12Mbps 9h58m2s760ms,-75@18Mbps 3h55m21s430ms,-75@24Mbps 3h55m21s760ms,-75@36Mbps 2h33m49s190ms,-75@48Mbps 2h11m54s820ms,-77@54Mbps 2h11m54s930ms,-74@HT20-0 9h59m22s650ms,-74@HT20-1 9h59m22s910ms,-74@HT20-2 2h46m17s960ms,-74@HT20-3 12s300ms,-71@HT20-4 12s430ms,-74@HT20-5 11s950ms,-77@HT20-6 1m2s750ms,-78@HT20-7 2d7h31m37s420ms,-77@HT40-0 2h32m55s340ms,-77@HT40-1 2h31m53s970ms,-76@HT40-2 3m5s190ms,-76@HT40-3 12s330ms,-75@HT40-4 3s90ms,-79@HT40-5 11s960ms,-79@HT40-6 5d15h8m28s70ms",,,,,,74,180Mbps-40MHz/2S/SGI,OFDM:6-54 BW:1x-2x SGI:1x-2x HT:0-15,-59,-61,-63,4d16h34m,false
KLI_VENTOS_KRANTO,10.60.17.19,*2B,false,true,"12498473399,900601701",10,"12519902471,878865267","10455470,3627677",wlan2,20ms,10.60.17.23,64:D1:54:5F:3C:E5,"10455470,3627415",aerodromas,6.45.1,82,6Mbps,-67@6Mbps,-68,-75,38,"-67@6Mbps 20ms,-66@9Mbps 9h59m1s350ms,-67@12Mbps 9h57m56s490ms,-66@18Mbps 9h57m40s200ms,-64@24Mbps 57m14s230ms,-65@36Mbps 57m14s570ms,-66@48Mbps 57m15s540ms,-67@54Mbps 57m17s140ms",,,,,,87,195Mbps-80MHz/1S/SGI,"OFDM:6-54 BW:1x-4x SGI:1x-4x HT:0-15 VHTMCS:SS1=0-9,SS2=0-9",-66,-74,-67,21h44m30s,false
1 Name IP .id ap bridge bytes distance frame-bytes frames interface last-activity last-ip mac-address packets radio-name routeros-version rx-ccq rx-rate signal-strength signal-strength-ch0 signal-strength-ch1 signal-to-noise strength-at-rates tdma-retx tdma-rx-size tdma-timing-offset tdma-tx-size tdma-winfull tx-ccq tx-rate tx-rate-set tx-signal-strength tx-signal-strength-ch0 tx-signal-strength-ch1 uptime wds
2 KLI_SPURGA 10.60.17.23 *1 false true 2557633336,128708034 1 2557852248,129123775 2188267,441115 wlan1 0ms 10.80.17.11 64:D1:54:91:EC:47 2236186,552855 Sedos 34 6.49.18 66 104Mbps-20MHz/2S -63 -66 -65 40 -63@6Mbps 0ms,-61@9Mbps 15h29m13s760ms,-62@12Mbps 15h29m10s460ms,-61@18Mbps 15h29m10s450ms,-64@24Mbps 3m4s740ms,-65@36Mbps 3m2s60ms,-65@48Mbps 17s490ms,-67@54Mbps 16s980ms 5 1520 7 496 0 90 144.4Mbps-20MHz/2S/SGI OFDM:6-54 BW:1x SGI:1x HT:0-15 VHTMCS:SS1=0-9,SS2=0-9 -57 -59 -63 15h38m10s false
3 KLI_SPURGA 10.60.17.23 *2 false true 950673764,218649231 1 951713687,220908444 4234949,1016954 wlan1 0ms 10.80.17.21 64:D1:54:43:F6:35 4414597,1456217 sedos 42 6.46.2 95 780Mbps-80MHz/2S/SGI -46 -50 -48 57 -46@6Mbps 0ms,-46@9Mbps 2h30m27s860ms,-46@12Mbps 2h30m27s850ms,-47@18Mbps 2h30m39s760ms,-50@54Mbps 8s530ms 1 496 1 4000 0 95 780Mbps-80MHz/2S/SGI OFDM:6-54 BW:1x-4x SGI:1x-4x HT:0-15 VHTMCS:SS1=0-9,SS2=0-9 -44 -46 -46 15h38m9s false
4 KLI_VENTOS_KRANTO 10.60.17.19 *27 false true 79571155703,2550226838 6 79698231153,2427715753 63248407,20461337 wlan2 10ms 10.80.17.25 64:D1:54:20:C5:C1 63248407,20459064 Kapu 15 6.49.19 75 6Mbps -72@6Mbps -73 -79 33 -72@6Mbps 10ms,-73@9Mbps 9h58m8s680ms,-74@12Mbps 9h58m2s760ms,-75@18Mbps 3h55m21s430ms,-75@24Mbps 3h55m21s760ms,-75@36Mbps 2h33m49s190ms,-75@48Mbps 2h11m54s820ms,-77@54Mbps 2h11m54s930ms,-74@HT20-0 9h59m22s650ms,-74@HT20-1 9h59m22s910ms,-74@HT20-2 2h46m17s960ms,-74@HT20-3 12s300ms,-71@HT20-4 12s430ms,-74@HT20-5 11s950ms,-77@HT20-6 1m2s750ms,-78@HT20-7 2d7h31m37s420ms,-77@HT40-0 2h32m55s340ms,-77@HT40-1 2h31m53s970ms,-76@HT40-2 3m5s190ms,-76@HT40-3 12s330ms,-75@HT40-4 3s90ms,-79@HT40-5 11s960ms,-79@HT40-6 5d15h8m28s70ms 74 180Mbps-40MHz/2S/SGI OFDM:6-54 BW:1x-2x SGI:1x-2x HT:0-15 -59 -61 -63 4d16h34m false
5 KLI_VENTOS_KRANTO 10.60.17.19 *2B false true 12498473399,900601701 10 12519902471,878865267 10455470,3627677 wlan2 20ms 10.60.17.23 64:D1:54:5F:3C:E5 10455470,3627415 aerodromas 6.45.1 82 6Mbps -67@6Mbps -68 -75 38 -67@6Mbps 20ms,-66@9Mbps 9h59m1s350ms,-67@12Mbps 9h57m56s490ms,-66@18Mbps 9h57m40s200ms,-64@24Mbps 57m14s230ms,-65@36Mbps 57m14s570ms,-66@48Mbps 57m15s540ms,-67@54Mbps 57m17s140ms 87 195Mbps-80MHz/1S/SGI OFDM:6-54 BW:1x-4x SGI:1x-4x HT:0-15 VHTMCS:SS1=0-9,SS2=0-9 -66 -74 -67 21h44m30s false

View File

@@ -1,7 +1,24 @@
/*
* Copyright (c) 2026 MCorange.
* All rights reserved.
*
* Unauthorized copying, modification, distribution, or use of this
* software, in whole or in part, is prohibited without prior written
* permission.
*/
use clap::ArgGroup;
use serde::de;
#[derive(Debug, Clone, clap::Parser, Default)]
#[command(
author = env!("CARGO_PKG_AUTHORS"),
version,
after_help = concat!(
"Made by: ", env!("CARGO_PKG_AUTHORS"), "\n",
"All Rights Reserved"
)
)]
pub struct CliArgs {
/// Configuration file path
#[arg(long = "config", short = 'C', default_value = "./config.toml")]

View File

@@ -1,3 +1,11 @@
/*
* Copyright (c) 2026 MCorange.
* All rights reserved.
*
* Unauthorized copying, modification, distribution, or use of this
* software, in whole or in part, is prohibited without prior written
* permission.
*/
use std::net::{IpAddr, Ipv4Addr};
use clap::Parser;

View File

@@ -1,3 +1,12 @@
/*
* Copyright (c) 2026 MCorange.
* All rights reserved.
*
* Unauthorized copying, modification, distribution, or use of this
* software, in whole or in part, is prohibited without prior written
* permission.
*/
use std::{
collections::{BTreeMap, HashMap},
net::IpAddr,

View File

@@ -1,3 +1,12 @@
/*
* Copyright (c) 2026 MCorange.
* All rights reserved.
*
* Unauthorized copying, modification, distribution, or use of this
* software, in whole or in part, is prohibited without prior written
* permission.
*/
use core::panic;
use std::{
collections::HashMap,