Re: feature of `packet per second`

2014-05-17 Thread bycn82
On 4/30/14 23:45, Freddie Cash wrote: On Wed, Apr 30, 2014 at 8:31 AM, bycn82 >wrote: On 4/30/14 23:01, Julian Elischer wrote: On 4/30/14, 8:52 PM, bycn82 wrote: Hi `packet per second` it is easy to be implemented using

Re: feature of `packet per second`

2014-05-12 Thread Luigi Rizzo
On Mon, May 12, 2014 at 7:01 PM, bycn82 wrote: > On 5/9/14 0:11, bycn82 wrote: > ... > Done ,submitted. > > http://www.freebsd.org/cgi/query-pr.cgi?pr=kern/189721 > can you clean up the formatting and style (including some gratuitous whitespace changes). Also there are several things to fix: - p

Re: feature of `packet per second`

2014-05-12 Thread bycn82
On 5/9/14 0:11, bycn82 wrote: On 5/8/14 15:38, Luigi Rizzo wrote: On Thu, May 08, 2014 at 09:09:21AM +0800, bycn82 wrote: On 5/8/14 8:35, bycn82 wrote: On 5/4/14 1:19, Luigi Rizzo wrote: On Sat, May 3, 2014 at 2:27 PM, bycn82mailto:byc...@gmail.com>> wrote: On 5/2/14 16:59, Luigi Rizz

Re: feature of `packet per second`

2014-05-09 Thread Luigi Rizzo
On Fri, May 9, 2014 at 5:00 AM, Bill Yuan wrote: > OK then I will submit it as a patch in this weekend. > > ​thank you, much appreciated. Don't worry about the details on the manpage, we can fix them at a later time, same as handling corner cases with small HZ values etc. cheers luigi ​ > > On

Re: feature of `packet per second`

2014-05-09 Thread Ian Smith
On Fri, 9 May 2014 11:00:55 +0800, Bill Yuan wrote: > OK then I will submit it as a patch in this weekend. [..] > > > Man page patch for PPS > > > > > > .It Cm pps Ar limit duration > > > Rule with the > > > .Cm pps > > > keyword will allow the first > > > .Ar limit > > > packets in each

Re: feature of `packet per second`

2014-05-08 Thread Bill Yuan
OK then I will submit it as a patch in this weekend. On Fri, May 9, 2014 at 1:11 AM, Chris H wrote: > > On 5/8/14 15:38, Luigi Rizzo wrote: > >> On Thu, May 08, 2014 at 09:09:21AM +0800, bycn82 wrote: > >>> On 5/8/14 8:35, bycn82 wrote: > On 5/4/14 1:19, Luigi Rizzo wrote: > > > >

Re: feature of `packet per second`

2014-05-08 Thread Chris H
> On 5/8/14 15:38, Luigi Rizzo wrote: >> On Thu, May 08, 2014 at 09:09:21AM +0800, bycn82 wrote: >>> On 5/8/14 8:35, bycn82 wrote: On 5/4/14 1:19, Luigi Rizzo wrote: > > > On Sat, May 3, 2014 at 2:27 PM, bycn82 > wrote: > > On 5/2/14 16:59

Re: feature of `packet per second`

2014-05-08 Thread Luigi Rizzo
On Fri, May 09, 2014 at 12:11:16AM +0800, bycn82 wrote: > On 5/8/14 15:38, Luigi Rizzo wrote: ... > > If i were to implement the feature i would add two parameters > > (burst, I_max) with reasonable defaults and compute the internal > > interval and max_count as follows >

Re: feature of `packet per second`

2014-05-08 Thread bycn82
On 5/8/14 15:38, Luigi Rizzo wrote: On Thu, May 08, 2014 at 09:09:21AM +0800, bycn82 wrote: On 5/8/14 8:35, bycn82 wrote: On 5/4/14 1:19, Luigi Rizzo wrote: On Sat, May 3, 2014 at 2:27 PM, bycn82mailto:byc...@gmail.com>> wrote: On 5/2/14 16:59, Luigi Rizzo wrote: On Wed, Apr 3

Re: feature of `packet per second`

2014-05-08 Thread Luigi Rizzo
On Thu, May 08, 2014 at 09:09:21AM +0800, bycn82 wrote: > On 5/8/14 8:35, bycn82 wrote: > > On 5/4/14 1:19, Luigi Rizzo wrote: > >> > >> > >> > >> On Sat, May 3, 2014 at 2:27 PM, bycn82 >> > wrote: > >> > >> On 5/2/14 16:59, Luigi Rizzo wrote: > >>> > >>> > >>> > >>>

Re: feature of `packet per second`

2014-05-07 Thread bycn82
On 5/8/14 8:35, bycn82 wrote: On 5/4/14 1:19, Luigi Rizzo wrote: On Sat, May 3, 2014 at 2:27 PM, bycn82 > wrote: On 5/2/14 16:59, Luigi Rizzo wrote: On Wed, Apr 30, 2014 at 6:02 PM, bycn82 mailto:byc...@gmail.com>> wrote: fjwc...@gmail.com

Re: feature of `packet per second`

2014-05-07 Thread bycn82
On 5/4/14 1:19, Luigi Rizzo wrote: On Sat, May 3, 2014 at 2:27 PM, bycn82 > wrote: On 5/2/14 16:59, Luigi Rizzo wrote: On Wed, Apr 30, 2014 at 6:02 PM, bycn82 mailto:byc...@gmail.com>> wrote: fjwc...@gmail.com

Re: feature of `packet per second`

2014-05-05 Thread bycn82
On 5/4/14 1:19, Luigi Rizzo wrote: On Sat, May 3, 2014 at 2:27 PM, bycn82 > wrote: On 5/2/14 16:59, Luigi Rizzo wrote: On Wed, Apr 30, 2014 at 6:02 PM, bycn82 mailto:byc...@gmail.com>> wrote: fjwc...@gmail.com

Re: feature of `packet per second`

2014-05-03 Thread Luigi Rizzo
On Sat, May 3, 2014 at 2:27 PM, bycn82 wrote: > On 5/2/14 16:59, Luigi Rizzo wrote: > > > > > On Wed, Apr 30, 2014 at 6:02 PM, bycn82 wrote: > >> >>> fjwc...@gmail.com >>> >> Thanks for your reply, and it is good to know the sysctl for ICMP. >> >> finally it works.I

Re: feature of `packet per second`

2014-05-03 Thread bycn82
On 5/2/14 16:59, Luigi Rizzo wrote: On Wed, Apr 30, 2014 at 6:02 PM, bycn82 > wrote: fjwc...@gmail.com > Thanks for your reply, and it is good to know the sysctl for

Re: feature of `packet per second`

2014-05-02 Thread Luigi Rizzo
On Wed, Apr 30, 2014 at 6:02 PM, bycn82 wrote: > >> fjwc...@gmail.com >> > Thanks for your reply, and it is good to know the sysctl for ICMP. > > finally it works.I just added a new `action` in firewall and it is called > `pps`, that means it can be generic purpose wh

Re: feature of `packet per second`

2014-05-02 Thread Bill Yuan
I was coding it in dummynet way yesterday, Personally I prefer to add it as a new action. By the way, Is there anybody want to say something about the ip_fw.h? there are two ip_fw.h files, one in /sys/netinet/ another in usr/include/netinet, it is better to remove one of it , or create a soft link

Re: feature of `packet per second`

2014-05-01 Thread Julian Elischer
On 5/1/14, 12:02 AM, bycn82 wrote: On 4/30/14 23:45, Freddie Cash wrote: On Wed, Apr 30, 2014 at 8:31 AM, bycn82 >wrote: On 4/30/14 23:01, Julian Elischer wrote: On 4/30/14, 8:52 PM, bycn82 wrote: Hi `packet per second` it is easy

Re: feature of `packet per second`

2014-04-30 Thread bycn82
On 4/30/14 23:45, Freddie Cash wrote: On Wed, Apr 30, 2014 at 8:31 AM, bycn82 >wrote: On 4/30/14 23:01, Julian Elischer wrote: On 4/30/14, 8:52 PM, bycn82 wrote: Hi `packet per second` it is easy to be implemented using

Re: feature of `packet per second`

2014-04-30 Thread Freddie Cash
On Wed, Apr 30, 2014 at 8:31 AM, bycn82 wrote: > On 4/30/14 23:01, Julian Elischer wrote: > >> On 4/30/14, 8:52 PM, bycn82 wrote: >> >>> Hi >>> >>> `packet per second` it is easy to be implemented using iptables, there >>> is a module named `recent`, but in using ipfw, Do we have any solution to

Re: feature of `packet per second`

2014-04-30 Thread bycn82
On 4/30/14 23:01, Julian Elischer wrote: On 4/30/14, 8:52 PM, bycn82 wrote: Hi `packet per second` it is easy to be implemented using iptables, there is a module named `recent`, but in using ipfw, Do we have any solution to fulfill it? check the link below https://forums.freebsd.org/viewtopi

Re: feature of `packet per second`

2014-04-30 Thread Julian Elischer
On 4/30/14, 8:52 PM, bycn82 wrote: Hi `packet per second` it is easy to be implemented using iptables, there is a module named `recent`, but in using ipfw, Do we have any solution to fulfill it? check the link below https://forums.freebsd.org/viewtopic.php?f=44&t=42933&p=258441#p258441 sinc

feature of `packet per second`

2014-04-30 Thread bycn82
Hi `packet per second` it is easy to be implemented using iptables, there is a module named `recent`, but in using ipfw, Do we have any solution to fulfill it? check the link below https://forums.freebsd.org/viewtopic.php?f=44&t=42933&p=258441#p258441 bycn82