Subversion Repositories ALCASAR

Rev

Rev 2888 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log

Rev 2888 Rev 2919
Line 29... Line 29...
29
}
29
}
30
 
30
 
31
function launch
31
function launch
32
{
32
{
33
# capture only one @MAC, on $INTIF, max filesize=10M, without flows to PRIVATE_IP except DNS
33
# capture only one @MAC, on $INTIF, max filesize=10M, without flows to PRIVATE_IP except DNS
34
	tcpdump "ether host $1 && (host $PRIVATE_IP && port 53) || host not $PRIVATE_IP" -i $INTIF -n -C 10 -W 1 -w /var/Save/iot_captures/$1.pcap
34
	sudo tcpdump "ether host $1 and (host not $PRIVATE_IP or port 53)" -i $INTIF -n -C 10 -W 1 -w /var/Save/iot_captures/$1.pcap
35
}
35
}
36
 
36
 
37
function flush
37
function flush
38
{
38
{
39
	sudo rm /var/Save/iot_captures/$1.pcap -f
39
	sudo rm /var/Save/iot_captures/$1.pcap -f