Lines Matching refs:Tcpdump
11 class Tcpdump(object):
12 """tcpdump capture process wrapper."""
15 """Launches a tcpdump process on the background.
19 @raise utils.TimeoutError if tcpdump fails to start after 10 seconds.
22 # Force to run tcpdump as root, since the dump file is created *after*
26 ['tcpdump', '-i', iface, '-w', dumpfilename, '-Z', 'root'],
29 # Wait for tcpdump to initialize and create the dump file.
32 desc='tcpdump creates the dump file.',
40 This method stops the tcpdump process running in background and waits
42 @param timeout: The time to wait for the tcpdump to finish in seconds.
44 @return whether the tcpdump is not running.
49 # Send SIGTERM to tcpdump.
56 logging.error('Trying to kill tcpdump (%d): %s',
69 logging.error('tcpdump failed to finish after %f seconds. Dump '