11 result
=`cat $PGDEV | fgrep "Result: OK:"`
12 if [ "$result" = "" ]; then
13 cat $PGDEV | fgrep Result
:
17 # Config Start Here -----------------------------------------------------------
21 # Each CPU has its own thread. One CPU example. We add eth1.
23 PGDEV
=/proc
/net
/pktgen
/kpktgend_0
24 echo "Removing all devices"
25 pgset
"rem_device_all"
27 pgset
"add_device eth1"
32 # We need to do alloc for every skb since we cannot clone here.
34 CLONE_SKB
="clone_skb 0"
35 # NIC adds 4 bytes CRC
36 PKT_SIZE
="pkt_size 60"
38 # COUNT 0 means forever
40 COUNT
="count 10000000"
43 PGDEV
=/proc
/net
/pktgen
/eth1
44 echo "Configuring $PGDEV"
49 # Random address with in the min-max range
50 pgset
"flag IPDST_RND"
51 pgset
"dst_min 10.0.0.0"
52 pgset
"dst_max 10.255.255.255"
54 # 8k Concurrent flows at 4 pkts
58 pgset
"dst_mac 00:04:23:08:91:dc"
61 PGDEV
=/proc
/net
/pktgen
/pgctrl
63 echo "Running... ctrl^C to stop"
67 cat /proc
/net
/pktgen
/eth1