diff options
| author | Roman Smrž <roman.smrz@seznam.cz> | 2026-01-20 21:49:22 +0100 |
|---|---|---|
| committer | Roman Smrž <roman.smrz@seznam.cz> | 2026-01-20 21:49:22 +0100 |
| commit | 7e57c8fddac5c9310efb49d4bc8003659b9e68b4 (patch) | |
| tree | 2b48ee31e2fa4a7add0308540b38737a126c236e /src/Run.hs | |
| parent | 5eb83b2a5485f5f735eb77f277819e42e39e8c56 (diff) | |
Changelog: Added comman-line options to set path of tcpdump or disable its use
Diffstat (limited to 'src/Run.hs')
| -rw-r--r-- | src/Run.hs | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -253,7 +253,7 @@ withSubnet parent tvname inner = do withNetwork :: Network -> (Network -> TestRun a) -> TestRun a withNetwork net inner = do - tcpdump <- liftIO (findExecutable "tcpdump") >>= return . \case + tcpdump <- asks (optTcpdump . teOptions . fst) >>= return . \case Just path -> withProcess (Left net) ProcNameTcpdump (Just softwareTermination) (path ++ " -i br0 -w './br0.pcap' -U -Z root") . const Nothing -> id |