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"
31 # delay 0 means maximum speed.
33 CLONE_SKB="clone_skb 1000000"
34 # NIC adds 4 bytes CRC
35 PKT_SIZE="pkt_size 60"
37 # COUNT 0 means forever
39 COUNT="count 10000000"
42 PGDEV=/proc/net/pktgen/eth1
43 echo "Configuring $PGDEV"
48 pgset "dst 10.10.11.2"
49 pgset "dst_mac 00:04:23:08:91:dc"
53 PGDEV=/proc/net/pktgen/pgctrl
55 echo "Running... ctrl^C to stop"
59 cat /proc/net/pktgen/eth1