diff options
author | Weilong Chen <weilong.chen@linaro.org> | 2014-05-07 19:43:40 +0800 |
---|---|---|
committer | Maxim Uvarov <maxim.uvarov@linaro.org> | 2014-05-08 14:41:36 +0400 |
commit | 01a5f1f5063d32b4883e2b261b0b1bdff25d393d (patch) | |
tree | 38f6e6588a0e720077a28fc5e44f740e4367d5ee /.gitignore | |
parent | d081f612b65a4d392aeb7e29469649852597a59f (diff) |
Add a test program: odp_generator
odp_generator can send/receive udp packets, or works like ping.
Work mode:
1.send udp packets
odp_generator -I eth0 --srcmac fe:0f:97:c9:e0:44 --dstmac 32:cb:9b:27:2f:1a --srcip 192.168.0.1 --dstip 192.168.0.2 -m u
2.receive udp packets
odp_generator -I eth0 -m r
3.work likes ping
odp_generator -I eth0 --srcmac fe:0f:97:c9:e0:44 --dstmac 32:cb:9b:27:2f:1a --srcip 192.168.0.1 --dstip 192.168.0.2 -m p
Mandatory OPTIONS:
-I, --interface Eth interfaces (comma-separated, no spaces)
-a, --srcmac src mac address
-b, --dstmac dst mac address
-c, --srcip src ip address
-d, --dstip dst ip address
-s, --packetsize payload length of the packets
-m, --mode work mode: send udp(u), receive(r), send icmp(p)
-n, --count the number of packets to be send
-t, --timeout only for ping mode, wait ICMP reply timeout seconds
-i, --interval wait interval ms between sending each packet
default is 1000ms. 0 for flood mode
Signed-off-by: Weilong Chen <weilong.chen@linaro.org>
Diffstat (limited to '.gitignore')
-rw-r--r-- | .gitignore | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore index 781932c36..b4c7017c0 100644 --- a/.gitignore +++ b/.gitignore @@ -16,3 +16,4 @@ test/api_test/odp_shm test/api_test/odp_ring test/api_test/odp_timer test/timer/odp_timer_test +test/generator/odp_generator |