From: "Brian Carrig" <CARRIGB@ITCARLOW.IE>
To: lartc@vger.kernel.org
Subject: Re: [LARTC] Packet Counting...
Date: Mon, 21 Mar 2005 10:10:45 +0000 [thread overview]
Message-ID: <423E9DA4.28304.12E7C8@ITCARLOW.IE> (raw)
In-Reply-To: <423861F9@webmail.wichita.edu>
You could use a custom ip chain. Add a rule to forward matching packets (such as all
packets with a source port of 5001) to this chain. Then just simply add a "return" line
in the chain itself. Chains automatically track bytes/packets so you could easily keep
tabs that way.
On 16 Mar 2005 at 9:46, M. A. Imam wrote:
> Hi,
>
> How can i count the number of packets on an interface evry 2 or 5
> seconds. and i want to count only specific packets like only arriving
> packets from port 5001
>
> Any thoughts...
>
> Muhammad
>
> _______________________________________________
> LARTC mailing list
> LARTC@mailman.ds9a.nl
> http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc
--
Brian Carrig
Research Assistant
Department of Computing & Networking
Institute of Technology, Carlow
Mobile: +353 86 3867467
_______________________________________________
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc
next prev parent reply other threads:[~2005-03-21 10:10 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-03-16 15:46 [LARTC] Packet Counting M. A. Imam
2005-03-16 16:07 ` Paul Hampson
2005-03-16 16:16 ` M. A. Imam
2005-03-17 0:14 ` Paul Hampson
2005-03-21 10:10 ` Brian Carrig [this message]
2005-03-21 10:57 ` Jesper Dangaard Brouer
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=423E9DA4.28304.12E7C8@ITCARLOW.IE \
--to=carrigb@itcarlow.ie \
--cc=lartc@vger.kernel.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.