summaryrefslogtreecommitdiff
path: root/netsniff-ng
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@distanz.ch>2014-02-02 13:31:08 +0100
committerTobias Klauser <tklauser@distanz.ch>2014-02-02 13:31:08 +0100
commitfd57d0395f65ad1e63901d5917c4eb043881dca6 (patch)
treea4706ee27922d5ac26186b1f3b1630ea65a76881 /netsniff-ng
parent61fa17c72e5b8a39ab4bc15486061f5d252e7ba5 (diff)
trafgen: Don't modify optarg/argv
Follow commit bed9b6bb ("netsniff-ng: Don't modify optarg/argv"). We shouldn't modify optarg (and thus argv) since it's e.g. used to display the commandline string in `ps'. Since strtoul() reads until it encounters the first non-numeric character and ignores the rest, we can just revert from setting a NULL byte after the numeric part of the string. Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Diffstat (limited to 'netsniff-ng')
0 files changed, 0 insertions, 0 deletions
port structure that is not used Tested using the two iproute2 examples: tc qdisc add dev eth1 handle ffff: ingress tc filter add dev eth1 parent ffff: \ matchall skip_sw \ action mirred egress mirror \ dev eth2 tc qdisc add dev eth1 handle 1: root prio tc filter add dev eth1 parent 1: \ matchall skip_sw \ action mirred egress mirror \ dev eth2 ==================== Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'sound/pci/ca0106')