source: tools/tracestats/tracesummary @ 065cab9

4.0.1-hotfixescachetimestampsdevelopdpdk-ndagetsilivelibtrace4ndag_formatpfringrc-4.0.1rc-4.0.2rc-4.0.3rc-4.0.4ringdecrementfixringperformanceringtimestampfixes
Last change on this file since 065cab9 was 065cab9, checked in by Richard Sanger <rsangerarj@…>, 7 years ago

Use correct POSIX expansion "$@" rather than $@

With some shells and older bash versions $@ will not have the expected behaviour
when spaces are involved.
Such as:
tracesummary -f "udp or tcp" int:eth0

  • Property mode set to 100755
File size: 536 bytes
Line 
1#!/bin/sh
2
3if [ $# -lt 1 ]; then
4        echo usage: $0 inputuri...
5fi
6
7exec tracestats --filter 'not ether proto \ip and not ether proto 0x86dd' \
8                --filter 'ether proto 0x86dd' \
9                --filter 'ether proto \ip' \
10                --filter tcp \
11                --filter udp \
12                --filter icmp \
13                --filter 'not (tcp or udp or icmp)' \
14                --filter 'tcp and port http or https' \
15                --filter 'tcp and port smtp' \
16                --filter 'tcp and port pop3 or pop3s' \
17                --filter 'tcp and port imap or imaps' \
18                --filter 'port domain' \
19                --filter 'icmp[icmptype]=icmp-echoreply' \
20                "$@"
Note: See TracBrowser for help on using the repository browser.