mirror of
https://github.com/genodelabs/genode.git
synced 2025-01-18 10:46:25 +00:00
internet_checksum.run: restrict tshark protocols
Restrict checksum checking in output.pcap to ip,tcp,udp,icmp. Issue #4636
This commit is contained in:
parent
95a7e7a840
commit
b6aa021d76
@ -82,7 +82,7 @@ regexp {checked [0-9]+ checksums} $output string_buf
|
||||
regexp {[0-9]+} $string_buf num_checked_checksums
|
||||
|
||||
set tmp_file "$lx_fs_dir/tmp"
|
||||
exec $tshark -o ip.check_checksum:TRUE -o tcp.check_checksum:TRUE -o udp.check_checksum:TRUE -V -r $output_file | grep -e "Checksum Status:" -e "Header checksum status:" > $tmp_file
|
||||
exec $tshark -o ip.check_checksum:TRUE -o tcp.check_checksum:TRUE -o udp.check_checksum:TRUE -O ip,tcp,udp,icmp -r $output_file | grep -e "Checksum Status:" -e "Header checksum status:" > $tmp_file
|
||||
set num_output_checksums [exec wc -l < $tmp_file]
|
||||
if {$num_checked_checksums != $num_output_checksums} {
|
||||
puts "\nError: number of checksums in $output_file ($num_output_checksums) differs from number of checked checksums ($num_checked_checksums)\n"
|
||||
|
Loading…
Reference in New Issue
Block a user