Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v1.3.1 #564

Merged
merged 6 commits into from
Jul 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 19 additions & 19 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,20 @@

All Sniffnet releases with the relative changes are documented in this file.

## [UNRELEASED]
## [1.3.1] - 2024-07-22
- Thumbnail mode improvements ([#512](https://github.com/GyulyVGC/sniffnet/pull/512))
- Support IPinfo ASN and Country databases ([#558](https://github.com/GyulyVGC/sniffnet/pull/558) — fixes [#533](https://github.com/GyulyVGC/sniffnet/issues/533))
- Added keyboard shortcuts to change zoom level (fixes [#554](https://github.com/GyulyVGC/sniffnet/issues/554))
- Increased the range of selectable zoom values (fixes [#542](https://github.com/GyulyVGC/sniffnet/issues/542))
- Updated some of the existing translations to v1.3:
- French - [#494](https://github.com/GyulyVGC/sniffnet/pull/494)
- German - [#495](https://github.com/GyulyVGC/sniffnet/pull/495)
- Russian - [#496](https://github.com/GyulyVGC/sniffnet/pull/496)
- Polish - [#498](https://github.com/GyulyVGC/sniffnet/pull/498)
- Romanian - [#499](https://github.com/GyulyVGC/sniffnet/pull/499)
- Japanese - [#504](https://github.com/GyulyVGC/sniffnet/pull/504)
- Uzbek - [#510](https://github.com/GyulyVGC/sniffnet/pull/510)
- Swedish - [#522](https://github.com/GyulyVGC/sniffnet/pull/522)
- French ([#494](https://github.com/GyulyVGC/sniffnet/pull/494))
- German ([#495](https://github.com/GyulyVGC/sniffnet/pull/495))
- Russian ([#496](https://github.com/GyulyVGC/sniffnet/pull/496))
- Polish ([#498](https://github.com/GyulyVGC/sniffnet/pull/498))
- Romanian ([#499](https://github.com/GyulyVGC/sniffnet/pull/499))
- Japanese ([#504](https://github.com/GyulyVGC/sniffnet/pull/504))
- Uzbek ([#510](https://github.com/GyulyVGC/sniffnet/pull/510))
- Swedish ([#522](https://github.com/GyulyVGC/sniffnet/pull/522))
- Reduced `String` allocations in translation code ([#524](https://github.com/GyulyVGC/sniffnet/pull/524))
- Fixed impossibility to exit thumbnail mode in some Linux distributions (fixes [#505](https://github.com/GyulyVGC/sniffnet/pull/505))

Expand Down Expand Up @@ -81,16 +81,16 @@ All Sniffnet releases with the relative changes are documented in this file.
- Added button to clear all the current search filters quickly in inspect page
- Added Swedish translation 🇸🇪 ([#213](https://github.com/GyulyVGC/sniffnet/pull/213))
- Updated most of the existing translations to v1.2:
- German - [#191](https://github.com/GyulyVGC/sniffnet/pull/191)
- Spanish - [#203](https://github.com/GyulyVGC/sniffnet/pull/203)
- Persian - [#193](https://github.com/GyulyVGC/sniffnet/pull/193)
- Korean - [#205](https://github.com/GyulyVGC/sniffnet/pull/205)
- Polish - [#244](https://github.com/GyulyVGC/sniffnet/pull/244)
- Romanian - [#241](https://github.com/GyulyVGC/sniffnet/pull/241)
- Russian - [#187](https://github.com/GyulyVGC/sniffnet/pull/187)
- Turkish - [#192](https://github.com/GyulyVGC/sniffnet/pull/192)
- Ukrainian - [#216](https://github.com/GyulyVGC/sniffnet/pull/216)
- Chinese - [#214](https://github.com/GyulyVGC/sniffnet/pull/214)
- German ([#191](https://github.com/GyulyVGC/sniffnet/pull/191))
- Spanish ([#203](https://github.com/GyulyVGC/sniffnet/pull/203))
- Persian ([#193](https://github.com/GyulyVGC/sniffnet/pull/193))
- Korean ([#205](https://github.com/GyulyVGC/sniffnet/pull/205))
- Polish ([#244](https://github.com/GyulyVGC/sniffnet/pull/244))
- Romanian ([#241](https://github.com/GyulyVGC/sniffnet/pull/241))
- Russian ([#187](https://github.com/GyulyVGC/sniffnet/pull/187))
- Turkish ([#192](https://github.com/GyulyVGC/sniffnet/pull/192))
- Ukrainian ([#216](https://github.com/GyulyVGC/sniffnet/pull/216))
- Chinese ([#214](https://github.com/GyulyVGC/sniffnet/pull/214))
- Renamed "Administrative entity" to "Autonomous System name" to avoid confusion
- Improved filter columns relative width to avoid the "Application protocol" label being cut when displayed in Swedish
- Footer URLs have been updated to include links to Sniffnet's official website and GitHub Sponsor page
Expand Down
22 changes: 11 additions & 11 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "sniffnet"
version = "1.3.0"
version = "1.3.1"
authors = ["Giuliano Bellini <[email protected]>"]
edition = "2021"
description = "Application to comfortably monitor your network traffic"
Expand Down
3 changes: 2 additions & 1 deletion build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ fn build_services_phf() {
services_map.entry(key, &val);
num_entries += 1;
}
assert_eq!(num_entries, 12066);
assert_eq!(num_entries, 12078);

writeln!(
&mut output,
Expand Down Expand Up @@ -189,6 +189,7 @@ pub static SAFE_WORDS_FOR_SERVICE_NAME: Lazy<Trie> = Lazy::new(|| {
"dhanalakshmi",
"3gpp-w1ap",
"pmsm-webrctl",
"bif-p2p",
] {
safe_words.set(word, Type::SAFE);
}
Expand Down
12 changes: 12 additions & 0 deletions services.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1384,6 +1384,8 @@ apex-mesh 912/tcp
apex-mesh 912/udp
apex-edge 913/tcp
apex-edge 913/udp
rift-lies 914/tcp
rift-ties 915/tcp
oftep-rpc 950/tcp
rndc 953/tcp
securenetpro-sensor 975/tcp
Expand Down Expand Up @@ -4093,6 +4095,7 @@ service-ctrl 2367/tcp
service-ctrl 2367/udp
opentable 2368/tcp
opentable 2368/udp
bif-p2p 2369/tcp
l3-hbmon 2370/tcp
l3-hbmon 2370/udp
worldwire 2371/tcp
Expand Down Expand Up @@ -8941,6 +8944,7 @@ sdlog 5520/tcp
sdserv 5530/tcp
sdreport 5540/tcp
sdxauthd 5540/udp
qftest-licserve 5543/tcp
sdadmind 5550/tcp
sgi-eventmond 5553/tcp
sgi-eventmond 5553/udp
Expand Down Expand Up @@ -10358,6 +10362,7 @@ senomix07 8058/udp
senomix08 8059/tcp
senomix08 8059/udp
aero 8060/tcp
nikatron-dev 8061/tcp
toad-bi-appsrvr 8066/tcp
infi-async 8067/tcp
ucs-isc 8070/tcp
Expand Down Expand Up @@ -10516,13 +10521,15 @@ espeech-rtp 8417/tcp
espeech-rtp 8417/udp
aritts 8423/tcp
pgbackrest 8432/tcp
aws-as2 8433/tcp
cybro-a-bus 8442/tcp
cybro-a-bus 8442/udp
https-alt 8443/tcp
pcsync-https 8443/udp
pcsync-http 8444/tcp
pcsync-http 8444/udp
copy 8445/tcp
matrix-fed 8448/tcp
npmp 8450/tcp
npmp 8450/udp
nexentamv 8457/tcp
Expand Down Expand Up @@ -10562,6 +10569,7 @@ canon-bjnp4 8614/udp
imink 8615/tcp
monetra 8665/tcp
monetra-admin 8666/tcp
spartan 8668/tcp
msi-cps-rm 8675/tcp
sun-as-jmxrmi 8686/tcp
sun-as-jmxrmi 8686/udp
Expand Down Expand Up @@ -11209,6 +11217,7 @@ warehouse 12322/udp
netbus 12345/tcp
italk 12345/udp
netbus 12346/tcp
carb-repl-ctrl 12546/tcp
tsaf 12753/tcp
tsaf 12753/udp
netperf 12865/tcp
Expand Down Expand Up @@ -11267,6 +11276,7 @@ dsmcc-download 13821/udp
dsmcc-ccp 13822/tcp
dsmcc-ccp 13822/udp
bmdss 13823/tcp
a-trust-rpc 13832/tcp
ucontrol 13894/tcp
dta-systems 13929/tcp
dta-systems 13929/udp
Expand Down Expand Up @@ -11666,6 +11676,7 @@ icl-twobase9 25008/tcp
icl-twobase9 25008/udp
icl-twobase10 25009/tcp
icl-twobase10 25009/udp
db2c-tls 25100/tcp
rna 25471/tcp
minecraft 25565/tcp
sauterdongle 25576/tcp
Expand Down Expand Up @@ -11962,6 +11973,7 @@ candrp 42509/tcp
candrp 42509/udp
caerpc 42510/tcp
caerpc 42510/udp
curiosity 42999/tcp
recvr-rc 43000/tcp
reachout 43188/tcp
reachout 43188/udp
Expand Down
5 changes: 3 additions & 2 deletions src/mmdb/types/mmdb_asn_entry.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
use crate::networking::types::asn::Asn;
use serde::Deserialize;

use crate::networking::types::asn::Asn;

#[derive(Deserialize)]
pub struct MmdbAsnEntry<'a> {
#[serde(alias = "autonomous_system_number", alias = "asn")]
Expand Down Expand Up @@ -29,7 +30,7 @@ impl MmdbAsnCode<'_> {
fn get_code(&self) -> String {
match self {
Self::Int(Some(code)) => code.to_string(),
Self::Str(Some(code)) => code.to_string(),
Self::Str(Some(code)) => (*code).to_string(),
_ => String::new(),
}
}
Expand Down
7 changes: 4 additions & 3 deletions src/mmdb/types/mmdb_country_entry.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
use crate::countries::types::country::Country;
use serde::Deserialize;

use crate::countries::types::country::Country;

#[derive(Deserialize)]
#[serde(transparent)]
pub struct MmdbCountryEntry<'a> {
Expand Down Expand Up @@ -28,8 +29,8 @@ impl MmdbCountryEntryInner<'_> {
match self {
Self::Standard(StandardCountryEntry {
country: Some(StandardCountryEntryInner { iso_code: Some(c) }),
}) => Country::from_str(c),
Self::Ipinfo(IpinfoCountryEntry { country: Some(c) }) => Country::from_str(c),
})
| Self::Ipinfo(IpinfoCountryEntry { country: Some(c) }) => Country::from_str(c),
_ => Country::ZZ,
}
}
Expand Down
3 changes: 2 additions & 1 deletion src/mmdb/types/mmdb_reader.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
use std::net::IpAddr;

use maxminddb::{MaxMindDBError, Reader};
use serde::Deserialize;
use std::net::IpAddr;

pub enum MmdbReader {
Default(Reader<&'static [u8]>),
Expand Down
4 changes: 2 additions & 2 deletions src/networking/manage_packets.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1303,7 +1303,7 @@ mod tests {

#[test]
fn test_all_services_map_key_and_values_are_valid() {
assert_eq!(SERVICES.len(), 12066);
assert_eq!(SERVICES.len(), 12078);
let mut distinct_services = HashSet::new();
for (sq, s) in &SERVICES {
// only tcp or udp
Expand All @@ -1324,7 +1324,7 @@ mod tests {
// just to count and verify number of distinct services
distinct_services.insert(name.to_string());
}
assert_eq!(distinct_services.len(), 6438);
assert_eq!(distinct_services.len(), 6450);
}

#[test]
Expand Down