Re: pfctl

2006-11-27 Thread Earl Lapus
hi all, another quick question... I read that realtime must always be convex. That explains the checking. However, linkshare and upperlimit can be either concave or convex. If linkshare(lssc_xx) can be concave then we should allow lssc_m1 to be less than lssc_m2 even if lssc_m1 is greater than z

Re: vn_fullpath question.

2006-11-27 Thread Nikolay Pavlov
On Monday, 27 November 2006 at 17:12:44 +0100, Ivan Voras wrote: > Nikolay Pavlov wrote: > > > Yes i know about this man, but still not sure how to get *td structure. > > In kernel? There's a global variable curthread AFAIK. I am not sure. If i understand the fstat code right, it uses kvm interf

Re: vn_fullpath question.

2006-11-27 Thread Ivan Voras
Nikolay Pavlov wrote: > Yes i know about this man, but still not sure how to get *td structure. In kernel? There's a global variable curthread AFAIK. ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers

Re: vn_fullpath question.

2006-11-27 Thread Ruslan Ermilov
On Mon, Nov 27, 2006 at 05:37:12PM +0200, Nikolay Pavlov wrote: > On Monday, 27 November 2006 at 18:20:03 +0300, Ruslan Ermilov wrote: > > On Mon, Nov 27, 2006 at 02:07:40PM +0200, Nikolay Pavlov wrote: > > > Hi. I am trying to extend fstat utility, so that it can use name cache > > > to recreate f

Re: vn_fullpath question.

2006-11-27 Thread Nikolay Pavlov
On Monday, 27 November 2006 at 18:20:03 +0300, Ruslan Ermilov wrote: > On Mon, Nov 27, 2006 at 02:07:40PM +0200, Nikolay Pavlov wrote: > > Hi. I am trying to extend fstat utility, so that it can use name cache > > to recreate full path at least for text. I have found vn_fullpath > > function useful

Re: vn_fullpath question.

2006-11-27 Thread Ruslan Ermilov
On Mon, Nov 27, 2006 at 02:07:40PM +0200, Nikolay Pavlov wrote: > Hi. I am trying to extend fstat utility, so that it can use name cache > to recreate full path at least for text. I have found vn_fullpath > function usefull in this case. I am newbe in C, so it could be stupid > question, but could

Re: pfctl

2006-11-27 Thread Henning Brauer
* Vasil Dimov <[EMAIL PROTECTED]> [2006-11-27 15:13]: > > I was browsing through some code and stumbled upon this: > > if ((opts->rtsc_m1 < opts->rtsc_m2 && opts->rtsc_m1 != 0) || > > (opts->rtsc_m1 < opts->rtsc_m2 && opts->rtsc_m1 != 0) || > > (opts->rtsc_m1 < opts->rtsc_m2 && opts->rtsc_m1 !

Re: pfctl

2006-11-27 Thread Vasil Dimov
On Mon, Nov 27, 2006 at 06:03:25PM +0800, Earl Lapus wrote: > hi, > > I was browsing through some code and stumbled upon this: > > ... > if ((opts->rtsc_m1 < opts->rtsc_m2 && opts->rtsc_m1 != 0) || > (opts->rtsc_m1 < opts->rtsc_m2 && opts->rtsc_m1 != 0) || > (opts->rtsc_m1 < opts->rtsc_m2 &&

vn_fullpath question.

2006-11-27 Thread Nikolay Pavlov
Hi. I am trying to extend fstat utility, so that it can use name cache to recreate full path at least for text. I have found vn_fullpath function usefull in this case. I am newbe in C, so it could be stupid question, but could someone explaine what is "struct thread *td" in argument list of this fu

pfctl

2006-11-27 Thread Earl Lapus
hi, I was browsing through some code and stumbled upon this: ... if ((opts->rtsc_m1 < opts->rtsc_m2 && opts->rtsc_m1 != 0) || (opts->rtsc_m1 < opts->rtsc_m2 && opts->rtsc_m1 != 0) || (opts->rtsc_m1 < opts->rtsc_m2 && opts->rtsc_m1 != 0)) { warnx("m1 must be zero for convex curve: %s", pa->