From: Sivaguru Perambalam <itssivaguru@gmail.com>
To: linuxppc-dev@ozlabs.org
Subject: Problem setting up pktgen
Date: Wed, 23 Dec 2009 12:01:05 -0700 [thread overview]
Message-ID: <12604cb0912231101o2648fe62v64c85be1e8fadcc0@mail.gmail.com> (raw)
In-Reply-To: <12604cb0912231058k58589125s14cfbf5e287c9fe2@mail.gmail.com>
[-- 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 --]
parent reply other threads:[~2009-12-23 19:01 UTC|newest]
Thread overview: expand[flat|nested] mbox.gz Atom feed
[parent not found: <12604cb0912231058k58589125s14cfbf5e287c9fe2@mail.gmail.com>]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=12604cb0912231101o2648fe62v64c85be1e8fadcc0@mail.gmail.com \
--to=itssivaguru@gmail.com \
--cc=linuxppc-dev@ozlabs.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).