From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Brian Carrig" Date: Mon, 21 Mar 2005 10:10:45 +0000 Subject: Re: [LARTC] Packet Counting... Message-Id: <423E9DA4.28304.12E7C8@ITCARLOW.IE> List-Id: References: <423861F9@webmail.wichita.edu> In-Reply-To: <423861F9@webmail.wichita.edu> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: lartc@vger.kernel.org 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