tshark fix backfill af packet bridge
All checks were successful
Build and Deploy MITM Webserver / traffic_target (push) Successful in 0s
Build and Deploy MITM Webserver / build (push) Successful in 11s

This commit is contained in:
2026-04-12 18:42:29 +02:00
parent 9c6eaaa7b2
commit af17029388

View File

@@ -461,7 +461,16 @@ class DatabasePool:
OR OR
($1::int IS NULL AND $2::int IS NOT NULL AND eth_type_raw = $2) ($1::int IS NULL AND $2::int IS NOT NULL AND eth_type_raw = $2)
) )
AND (capture_iface = $3 OR ingress_if = $3 OR egress_if = $3) AND (
capture_iface = $3
OR ingress_if = $3
OR egress_if = $3
OR EXISTS (
SELECT 1
FROM jsonb_array_elements(COALESCE(capture_observations, '[]'::jsonb)) AS observation
WHERE observation ->> 'iface' = $3
)
)
AND src_ip = $4::inet AND src_ip = $4::inet
AND dst_ip = $5::inet AND dst_ip = $5::inet
AND COALESCE(src_port, 0) = $6 AND COALESCE(src_port, 0) = $6
@@ -588,7 +597,16 @@ class DatabasePool:
FROM packets FROM packets
WHERE WHERE
ip_proto_raw = $1 ip_proto_raw = $1
AND (capture_iface = $2 OR ingress_if = $2 OR egress_if = $2) AND (
capture_iface = $2
OR ingress_if = $2
OR egress_if = $2
OR EXISTS (
SELECT 1
FROM jsonb_array_elements(COALESCE(capture_observations, '[]'::jsonb)) AS observation
WHERE observation ->> 'iface' = $2
)
)
AND timestamp BETWEEN $5 AND $6 AND timestamp BETWEEN $5 AND $6
AND ( AND (
( (