zedddie
efe7d76fbc
some merge conflicts
2026-03-25 12:58:21 +01:00
namilsk
b939961181
Fmt & Added CI
2026-03-24 00:04:23 +03:00
Namilsk
39fe1b820b
Merge pull request 'Fix ipv4 port extraction; Fix ipv6 presentation; Implement Display for PacketInfo' ( #4 ) from fix-port-parse into main
...
Reviewed-on: https://codeberg.org/NamelessTeam/nsc/pulls/4
2026-03-23 21:34:11 +01:00
zedddie
f74089a365
fix ipv6 src&dst ip representation in PacketInfo
2026-03-23 20:58:56 +01:00
zedddie
eedb2c5d02
wip&fixme
2026-03-23 20:23:41 +01:00
zedddie
d0513bec6a
impl Display trait for PacketInfo
2026-03-23 19:11:40 +01:00
namilsk
8887a775f5
Written geosite protobuf parser and tests 4 it
2026-03-18 21:21:21 +03:00
zedddie
1a5b7da6ae
really broken WIP for now xD
2026-03-17 23:15:47 +01:00
zedddie
50524cb5ae
use ihl to derive port bytes
2026-03-17 22:27:24 +01:00
namilsk
0d8f7c4373
Working on IP geo parsers && packet router
2026-03-17 19:19:14 +03:00
zedddie
2eb03ac768
add a Packet type alias and comment out debug thingies :<
2026-03-17 00:01:42 +01:00
zedddie
81e1ed42a0
add dns field and check
2026-03-16 23:50:51 +01:00
zedddie
e8c1fbd7d4
add fixme hardcoded IPv4 port offset
2026-03-16 23:35:40 +01:00
zedddie
08c4b5220f
fix ipv6 UDP bytes mismatch, add bunch of aliases
2026-03-16 23:35:40 +01:00
zedddie
43ec0ddbca
a bunch of really (not)good tests
2026-03-15 21:17:05 +01:00
zedddie
d48a7bebfb
somewhat working network header parser
2026-03-15 19:30:19 +01:00
zedddie
891a76eaf5
somewhat wip sniffing
2026-03-15 17:17:24 +01:00
zedddie
59a17c5475
networking abstractions & early parsing logic
2026-03-15 16:57:56 +01:00
zedddie
e8b2411864
sniff things wip
2026-03-15 15:44:34 +01:00
zedddie
06d4e558cd
sniffing early work
...
use `tun` crate examope for starters, to map all traffic through tun
virtual interface, in next commits will push these packets to sniffing
module which will deciede further modifications of proxies based by
user's Config.
2026-03-15 14:59:11 +01:00
zedddie
1b6a2f126a
rename NSCConfig to Config for now :1
2026-03-15 13:47:48 +01:00
zedddie
2a01827e6c
rm trailing newlines & add type alias for Vec
2026-03-15 13:31:20 +01:00
namilsk
bc8bc0c2e4
First minimal commit
2026-03-14 19:17:16 +03:00