| 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. |
| # IPv6. Note increase in minimal packet length |
| PGDEV=/proc/net/pktgen/kpktgend_0 |
| echo "Removing all devices" |
| CLONE_SKB="clone_skb 1000000" |
| PGDEV=/proc/net/pktgen/eth1 |
| echo "Configuring $PGDEV" |
| 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 |