summaryrefslogtreecommitdiffstats
path: root/bin/cat
diff options
context:
space:
mode:
authorluigi <luigi@FreeBSD.org>2009-10-15 15:30:41 +0000
committerluigi <luigi@FreeBSD.org>2009-10-15 15:30:41 +0000
commit45cfef04418423239aaa24ad60fd1422c55bddb6 (patch)
tree977fc723918bd2bb1739077b68e262d050044cd3 /bin/cat
parent72083e858acff41f3c7a31f7547ed234691d0e48 (diff)
downloadFreeBSD-src-45cfef04418423239aaa24ad60fd1422c55bddb6.zip
FreeBSD-src-45cfef04418423239aaa24ad60fd1422c55bddb6.tar.gz
Support the specification of a range of destination ports e.g.
netsend 127.0.0.1 6666-7777 [payloadsize] [packet_rate] [duration] This is useful to test the behaviour of systems that do some kind of flow classifications and so exhibit different behaviour depending on the number of flows that hit them. I plan to add a similar extension to sweep on a range of IP addresses, so we can issue a single command to flood (obviously, for testing purposes!) a number of different destinations. When there is only one destination, we do a preliminary connect() of the socket so we can use send() instead of sendto(). When we have multiple ports, the socket is not connect()'ed and we do a sendto() instead. There is a performance hit in this case, as the throughput on the loopback interface (with a firewall rule that blocks the transmission) goes down from 900kpps to 490kpps on my test machine. If the number of different destinations is limited, one option to explore is to have multiple connect()ed sockets. MFC after: 1 month
Diffstat (limited to 'bin/cat')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud