Commit graph

35 commits

Author SHA1 Message Date
Daniel
d67b1e8a64 Reduce PID finding retries and simply proc interface on linux 2023-12-18 17:03:48 +01:00
Daniel
577299c95b Use new call limiter in network state tables
Potentially fixes #1043, #1294
2023-09-28 15:07:19 +02:00
Daniel
6f9fce39bb Update network state tables if state is older than given packet 2023-08-18 16:52:15 +02:00
Daniel
6fa3bcb115 Calibrate process lookup times for Windows 2023-04-27 17:09:49 +02:00
Daniel
7d3b45f1a9 Add integrationtest utility 2023-04-25 14:25:43 +02:00
Daniel
f8c6fbd7f4 Increase max state table lookup time window 2023-04-13 16:29:40 +02:00
Daniel
56998a010d Improve lookup tries for network state 2023-03-30 16:09:46 +02:00
Daniel
d9f4a9e70b Fix getting updated tables immediately 2023-03-30 16:03:06 +02:00
Daniel
94b4fa3bfd Improve network state caching 2023-03-30 15:53:47 +02:00
Daniel
b9488c1a8f Fix matching TCP connections 2023-03-30 11:36:44 +02:00
Daniel
4b29eed2cf Improve support for disabled IPv6 stack 2023-03-29 14:57:32 +02:00
Daniel
9c0b7ddf51 Fix direction detection for unsupported protocols 2022-06-22 09:56:21 +02:00
Daniel
7a9001b7de Split unattributed connections into to Unidentified App and Network Noise 2022-03-09 15:44:54 +01:00
Daniel
60d8664e7b Fix tests and linters 2022-02-02 12:48:42 +01:00
Daniel
721ba2f018 Fix direction of incoming TCP connections 2021-11-29 07:49:28 +01:00
Daniel
43cfba8445 Add IP scoping data to entity.Entity and network.Connection 2021-03-20 22:07:17 +01:00
Daniel
df7afe985e Add fast network table lookup 2021-02-23 13:10:08 +01:00
Daniel
914418876d Add IPv6 dual-stack support 2020-11-02 14:18:42 +01:00
Daniel
9d35ff3192 Fix and improve network listener system integration and check
Also, improve logging.
2020-08-12 14:33:09 +02:00
Daniel
3b063e9057 Fix incoming TCP connection direction
This fixes a bug where incoming TCP connections without a matching process would be falsely classified as an outgoing connection.
2020-07-22 14:07:19 +02:00
Daniel
084c194da3 Enable building on unsupported systems 2020-07-22 11:13:57 +02:00
Daniel
55978515ab Fix windows socket PID interface 2020-07-14 14:40:36 +02:00
Daniel
73da96fe98 Update windows interface to match the linux one 2020-07-12 22:22:52 +02:00
Daniel
7c6c4552aa Create interface for socket info structs, fix caching bug
From PR Review https://github.com/safing/portmaster/pull/72
2020-07-10 14:09:53 +02:00
Daniel
9f42e6ff93 Retry finding a socket's PID on linux 2020-06-05 15:49:15 +02:00
Daniel
93a3ad2a80 Improve retrying 2020-05-25 17:35:14 +02:00
Daniel
6b02dcd725 Transition to table structs, use OnceAgain for fetching tables 2020-05-25 17:22:46 +02:00
Daniel
f1765a7abb Fix linter errors 2020-05-20 14:53:03 +02:00
Daniel
e65ae8b55d Implement review suggestions 2020-05-19 16:57:55 +02:00
Daniel
c146a61704 Improve waiting when searching the system state table 2020-05-19 13:09:01 +02:00
Daniel
3f9876fc09 Expose network system state table to api 2020-05-19 09:39:03 +02:00
Daniel
ad93b19968 Switch Exists function of network state pkg to use packet.Info 2020-05-19 09:22:50 +02:00
Daniel
7649859ba6 Switch connection state lookups to use the packet.Info struct
Also, rename the Direction attribute on packet.Info to Inbound
2020-05-18 17:08:32 +02:00
Daniel
85c7fd4af7 Improve udp connection attribution for broadcast and multicast packets 2020-05-18 14:29:04 +02:00
Daniel
55b0ae8944 Revamp process attribution of network connections 2020-05-15 17:15:22 +02:00