Re: SIMPLEQ_* macros from OpenBSD sys/queue.h

2005-07-12 Thread Kevin Lo
Florent Thoumie wrote: > I'm currently working on OpenBGPd port update and I'm facing a > little problem that is actually quite painful to deal with. > > I need some macros from OpenBSD sys/queue.h which aren't present > in FreeBSD. I can replace #include with #include >

Re: SIMPLEQ_* macros from OpenBSD sys/queue.h

2005-07-12 Thread Florent Thoumie
Le Mercredi 13 juillet 2005 à 01:14 +0300, Giorgos Keramidas a écrit : > On 2005-07-12 17:59, Florent Thoumie <[EMAIL PROTECTED]> wrote: > > I'm currently working on OpenBGPd port update and I'm facing a little > > problem that is actually quite painful to deal with. > > > > I need some macros from

Re: SIMPLEQ_* macros from OpenBSD sys/queue.h

2005-07-12 Thread Giorgos Keramidas
On 2005-07-12 17:59, Florent Thoumie <[EMAIL PROTECTED]> wrote: > I'm currently working on OpenBGPd port update and I'm facing a little > problem that is actually quite painful to deal with. > > I need some macros from OpenBSD sys/queue.h which aren't present in > FreeBSD. I can replace #include w

Re: Bug in portupgrade

2005-07-12 Thread Olivier Certner
Le Mardi 12 Juillet 2005 19:39, Florent Thoumie a écrit : > Le Mardi 12 juillet 2005 à 12:55 -0400, Kris Kennaway a écrit : > > On Sun, Jul 10, 2005 at 11:13:12PM +0200, Olivier Certner wrote: > > > Hi, > > > > > > There is a bug with portupgrade when it is used to upgrade already > > > compile

Re: Forcing a packet through an interface (OT?) (RESOLVED)

2005-07-12 Thread Mario Lobo
Thanks to all that helped !! -- //| //|| // | // || -//--//--|| ARIO LOBO // //|| - [EMAIL PROTECTED] http://mariolobo.70d.com http://www.mallavoodoo.com.br ___ freebsd-hackers@freebsd.org mailing list http://li

Re: Forcing a packet through an interface (OT?)

2005-07-12 Thread John Von Essen
Yep, that'll do it. Just choose two time servers that you would never need to use in real life. From google, you should be able to find a list of nearby public time servers. -john On Tue, 12 Jul 2005, Mario Lobo wrote: > That sounds close to what I need !! > > > > 1) rl0 ---> router

Re: Forcing a packet through an interface (OT?)

2005-07-12 Thread Mario Lobo
That sounds close to what I need !! > > 1) rl0 ---> router --> antenna --> ISPx --> > > internet So would it be something like: route add -host ${ip.of.public.host} netmask 255.255.255.255 gateway ${ip.of.rl0} is that correct? In this case that host will be "sacrifice

nagios and pthreads

2005-07-12 Thread Christophe Yayon
Hi all, i know that we add already discuss about this problem, but is there any solution for this problem ? --- What's section on nagios website "FreeBSD and threads. On FreeBSD there's a native user-level implementation of threads called 'pthread' and there's also an optional ports collection '

Re: Bug in portupgrade

2005-07-12 Thread Florent Thoumie
Le Mardi 12 juillet 2005 à 12:55 -0400, Kris Kennaway a écrit : > On Sun, Jul 10, 2005 at 11:13:12PM +0200, Olivier Certner wrote: > > Hi, > > > > There is a bug with portupgrade when it is used to upgrade already > > compiled > > and installed ports for which some dependencies have been

RE: Odd ataraid situation

2005-07-12 Thread Giovanni P. Tirloni
Gayn Winters disse: > Gmirror (geom) will do it in anticipation of the second disk. In fact, > it is the recommended way to bootstrap a software mirror. Just do the > first couple steps of: > http://dannyman.toldme.com/2005/01/24/freebsd-howto-gmirror-system/ > > Alternatively, do the first few

Re: Bug in portupgrade

2005-07-12 Thread Kris Kennaway
On Sun, Jul 10, 2005 at 11:13:12PM +0200, Olivier Certner wrote: > Hi, > > There is a bug with portupgrade when it is used to upgrade already > compiled > and installed ports for which some dependencies have been deleted in the > package database. This causes a crash in the function

SIMPLEQ_* macros from OpenBSD sys/queue.h

2005-07-12 Thread Florent Thoumie
I'm currently working on OpenBGPd port update and I'm facing a little problem that is actually quite painful to deal with. I need some macros from OpenBSD sys/queue.h which aren't present in FreeBSD. I can replace #include with #include "queue.h" and copy t

Re: Forcing a packet through an interface (OT?)

2005-07-12 Thread Simon 'corecode' Schubert
Lately "Mario Lobo" <[EMAIL PROTECTED]> said: > The problem lies with the fact that, there is a router between my rl0 and the > internet. > > 1) rl0 ---> router --> antenna --> ISPx --> internet > > So the fact that i can ping the hop next to rl0 doesn´t mean the link is

Re: limit jail disk space

2005-07-12 Thread Jone Jas
Vlad GALU <[EMAIL PROTECTED]> 写道: On 7/12/05, Jone Jas wrote: > Thanks for your reply. I googled and found this method but I just > did not have a try. > As for the code-hacking method I mentioned, anyone with any idea > is appreciated! See ufs_quota.c, especially chkdqchg(). It is passed a str

Re: Forcing a packet through an interface (OT?)

2005-07-12 Thread John Von Essen
Mario, I think the only way to do what you want is to find two hosts on the internet that don't conflict with what you do on a day to day basis. Then add custom routes for those two specific hosts, and with those routes, you force traffic through each NIC. A perfect example of two public servers

Re: Forcing a packet through an interface (OT?)

2005-07-12 Thread Mario Lobo
Yeah Stefan. They do take the default route. That is what I am already doing. I even wrote a little prog using a variation of ping to do just that. The problem lies with the fact that, there is a router between my rl0 and the internet. 1) rl0 ---> router --> antenna --> ISP

Re: Forcing a packet through an interface (OT?)

2005-07-12 Thread stsp
On Tue, Jul 12, 2005 at 08:38:16AM -0300, Mario Lobo wrote: > First, thanks to all for the suggestions. > > Now, using the same scenario, > > > > 1) rl0 (real.ip.no.1) ---> ISP x > > > > > > 2) rl1 (real.ip.no.2) ---> ISP y > > Suppose 1) is down and I´m using 2). If I "ping www.google.com", > i

Re: limit jail disk space

2005-07-12 Thread Vlad GALU
On 7/12/05, Jone Jas <[EMAIL PROTECTED]> wrote: > Thanks for your reply. I googled and found this method but I just > did not have a try. > As for the code-hacking method I mentioned, anyone with any idea > is appreciated! See ufs_quota.c, especially chkdqchg(). It is passed a struct ucred

Re: limit jail disk space

2005-07-12 Thread Dominic Marks
On Tuesday 12 July 2005 10:50, Jone Jas wrote: > Hi hackers, >As far as I know, there is no limit of the disk space that a jail > can use. As for the Linux VServer(similar to jail), its dlimit does > such thing for the "security context". I read the dlimit code and > find that it achieves that

Re: Forcing a packet through an interface (OT?)

2005-07-12 Thread Sean Hafeez
add a static route ping the other side of the directly connect interface ..etc.. fr On Jul 11, 2005, at 4:26 PM, Mario Lobo wrote: Forgive me if this is off-topic. How could I force a packet to go out through an interface, despite the default route? Suppose I have two interfaces connected to

hi

2005-07-12 Thread Abhijeet Anant Sane
Hello Hackers , I am doing a project where i am supposed to backport some hyperthreading code from FreeBSD 5.x to 4.1 . I found the scheduler code in version 5.x in the file sched_4bsd.c / sched_ule.c ( for the ULE scheduler ) where as in FreeBSD version 4.1 I was unable to find the scheduler

Re: limit jail disk space

2005-07-12 Thread Jone Jas
Thanks for your reply. I googled and found this method but I just did not have a try. As for the code-hacking method I mentioned, anyone with any idea is appreciated! Dominic Marks <[EMAIL PROTECTED]> 写道: On Tuesday 12 July 2005 10:50, Jone Jas wrote: > Hi hackers, > As far as I know, there is no

Re: Odd ataraid situation

2005-07-12 Thread Giovanni P. Tirloni
Vasil Dimov wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 But I'd like to ask if it'd theoretically be possible to create the RAID1 array (ar0) with only one disk and add the second one later? It'd work like a broken array for some time. It's just an idea :) Find some unused disk, p

Re: Forcing a packet through an interface (OT?)

2005-07-12 Thread Mario Lobo
First, thanks to all for the suggestions. Now, using the same scenario, > > 1) rl0 (real.ip.no.1) ---> ISP x > > > > 2) rl1 (real.ip.no.2) ---> ISP y Suppose 1) is down and I´m using 2). If I "ping www.google.com", it will go out through 2). What I really need to do is to issue the same "ping ww

limit jail disk space

2005-07-12 Thread Jone Jas
Hi hackers, As far as I know, there is no limit of the disk space that a jail can use. As for the Linux VServer(similar to jail), its dlimit does such thing for the "security context". I read the dlimit code and find that it achieves that by limiting the number of inodes and data blocks the

Re: corefiles

2005-07-12 Thread Andrey Simonenko
On Tue, Jul 12, 2005 at 07:07:24AM +0200, [EMAIL PROTECTED] wrote: > > When I try to catch SIGTERM and generate a core file the call > stack is corrupted on FreeBSD. A process stack is not corrupted. Since a process was terminated while it was is a signal handler, it is wrong to interpreter the