| result=`cat $PGDEV | fgrep "Result: OK:"` |
| if [ "$result" = "" ]; then |
| cat $PGDEV | fgrep Result: |
| # Config Start Here ----------------------------------------------------------- |
| # Each CPU has its own thread. One CPU example. We add eth1. |
| PGDEV=/proc/net/pktgen/kpktgend_0 |
| echo "Removing all devices" |
| # We need to do alloc for every skb since we cannot clone here. |
| PGDEV=/proc/net/pktgen/eth1 |
| echo "Configuring $PGDEV" |
| # Random address with in the min-max range |
| pgset "dst_max 10.255.255.255" |
| # 8k Concurrent flows at 4 pkts |
| pgset "dst_mac 00:04:23:08:91:dc" |
| PGDEV=/proc/net/pktgen/pgctrl |
| echo "Running... ctrl^C to stop" |
| cat /proc/net/pktgen/eth1 |