* Problem setting up pktgen
[not found] ` <12604cb0912231058k58589125s14cfbf5e287c9fe2@mail.gmail.com>
@ 2009-12-23 19:01 ` Sivaguru Perambalam
0 siblings, 0 replies; only message in thread
From: Sivaguru Perambalam @ 2009-12-23 19:01 UTC (permalink / raw)
To: linuxppc-dev
[-- Attachment #1: Type: text/plain, Size: 1406 bytes --]
>
>
> Hello ,
>
> I want to use pktgen to do some UDP tests .
> So I figured out that pktgen is built in the kernel I am using (2.6.32) and
> tried to use the bash script given in the internet .
>
> Script :
>
> #! /bin/sh
> rmmod pktgen
> cd /usr/src/kernels/linux-2.6.32/net/core
> insmod pktgen.ko
>
> PGDEV=/proc/net/pktgen/pg0
> function pgset() {
> local result
> echo $1 > $PGDEV
> result=`cat $PGDEV | fgrep "Result: OK:"`
> if [ "$result" = "" ]; then
> cat $PGDEV | fgrep Result:
> fi
> }
>
> function pg() {
> echo inject > $PGDEV
> cat $PGDEV
> }
>
> pgset "odev eth0"
> pgset "dst 1.1.1.3"
>
>
> I get the following error message :
>
> ./ipg: line 11: /proc/net/pktgen/pg0: No such file or directory
> cat: /proc/net/pktgen/pg0: No such file or directory
> cat: /proc/net/pktgen/pg0: No such file or directory
> ./ipg: line 11: /proc/net/pktgen/pg0: No such file or directory
> cat: /proc/net/pktgen/pg0: No such file or directory
> cat: /proc/net/pktgen/pg0: No such file or directory
>
> I am running this as the 'root' user.
> I don't understand how exactly pktgen is informed about
> the Ethernet interfaces on the system.
>
> This is what I get for ls /proc/net/pktgen/ ,
> kpktgend_0 kpktgend_1 kpktgend_2 kpktgend_3 kpktgend_4 kpktgend_5
> kpktgend_6 kpktgend_7 pgctrl
>
>
> Please let me know , what is going wrong.
>
> Thanks !
>
>
>
>
>
[-- Attachment #2: Type: text/html, Size: 2273 bytes --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2009-12-23 19:01 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <12604cb0912231057n2282ed22r45dd3c9c57ce8b02@mail.gmail.com>
[not found] ` <12604cb0912231058k58589125s14cfbf5e287c9fe2@mail.gmail.com>
2009-12-23 19:01 ` Problem setting up pktgen Sivaguru Perambalam
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).