Re: Changing the NAT IP on demand?

2003-10-05 Thread Nick Rogness
On Sun, 5 Oct 2003, Wes Peters wrote: > On Sunday 05 October 2003 01:02 am, Nick Rogness wrote: > > On Sat, 4 Oct 2003, Leo Bicknell wrote: > > > I'm considering options for a new project, and I think I've > > > discovered what I think is the best idea, but I don't think current > > > software sup

Re: Changing the NAT IP on demand?

2003-10-05 Thread Leo Bicknell
In a message written on Sun, Oct 05, 2003 at 01:43:01PM -0700, Wes Peters wrote: > Leo, you may be able to do this with ipfilter's ipnat. Nat rules are > traditionally processed with 'ipnat -CF', the -C clears the rules and > the -F option clears the currently active NAT mappings. You should >

Re: Changing the NAT IP on demand?

2003-10-05 Thread Wes Peters
On Sunday 05 October 2003 01:02 am, Nick Rogness wrote: > On Sat, 4 Oct 2003, Leo Bicknell wrote: > > I'm considering options for a new project, and I think I've > > discovered what I think is the best idea, but I don't think current > > software supports the config. I'd like to get some confirmat

Re: [PATCH] : libc_r/uthread/uthread_write.c

2003-10-05 Thread Wes Peters
On Saturday 04 October 2003 07:21 am, Dan Langille wrote: > On 4 Oct 2003 at 10:17, Daniel Eischen wrote: > > On Mon, 29 Sep 2003, Dan Langille wrote: > > > All our testing on this patch has been successful. I'm going to > > > do a few more tests on different hardware under 4.8-stable. > > > > > >

RE: Hyperthreading slowdown

2003-10-05 Thread Matthew Dillon
:FWIW, if you set the machdep.cpu_idle_hlt=1, your power will :go down considerably (our AC inlet power dropped 0.94A @ 110V). :The performance will also go up considerably. : :HTT seems to get a lot of bad press on this list, and its due :to this sysctl having the wrong default. Sheesh, nobod

Re: testing for substrings in perl

2003-10-05 Thread Matthew Seaman
On Sun, Oct 05, 2003 at 11:32:11AM -0400, Dan Langille wrote: > Hi, > > I have a perl regex to test if a file resides under a particular > directory. The test looks like this: > > if ($filename =~ $directory) { ># yes, this filename resides under directory > } > > This is working for most c

Re: testing for substrings in perl

2003-10-05 Thread Mikko Työläjärvi
On Sun, 5 Oct 2003, Dan Langille wrote: > Hi, > > I have a perl regex to test if a file resides under a particular > directory. The test looks like this: > > if ($filename =~ $directory) { ># yes, this filename resides under directory > } > > This is working for most cases. However, it fails

Re: testing for substrings in perl

2003-10-05 Thread Fred Souza
> I think it might just be easier to do a straight comparison of the first N > characters of the two strings where N = length of the directory name. > > Any suggestions? You might try index() or substr(). Fred -- "MOTHER: Half a word." pgp0.pgp Description: PGP signature

RE: Changing the NAT IP on demand?

2003-10-05 Thread Don Bowman
From: Leo Bicknell [mailto:[EMAIL PROTECTED] > > I'm considering options for a new project, and I think I've discovered > what I think is the best idea, but I don't think current software > supports the config. I'd like to get some confirmation, and > comments on > if it would be hard to impleme

testing for substrings in perl

2003-10-05 Thread Dan Langille
Hi, I have a perl regex to test if a file resides under a particular directory. The test looks like this: if ($filename =~ $directory) { # yes, this filename resides under directory } This is working for most cases. However, it fails is the directory contains a +. For example: $filename =

RE: Hyperthreading slowdown

2003-10-05 Thread Don Bowman
From: Wilko Bulte [mailto:[EMAIL PROTECTED] > On Sat, Oct 04, 2003 at 01:04:35PM -0700, Kris Kennaway wrote: > > On Sat, Oct 04, 2003 at 03:20:03PM -0400, Richard Coleman wrote: > > > Kris Kennaway wrote: > > > >On Sat, Oct 04, 2003 at 04:39:03PM +0200, Mikulas Patocka wrote: > > > >>I installed Fr

Re: Changing the NAT IP on demand?

2003-10-05 Thread Fred Souza
> Depends on how much money you have, but had you considered getting your > own address range and BGP peering with your ISPs? I'd consider talking > to them about it. It'll take some time to setup, but it means your > "switching" is done at the router, not at the NAT box, which is the > wrong p

Re: Changing the NAT IP on demand?

2003-10-05 Thread Paul Robinson
Leo Bicknell wrote: Now, NAT would be required. What I want to do is write an external application to decide the performance of ISP #1 and ISP#2, and somehow tell NAT which outside address to use. Depends on how much money you have, but had you considered getting your own address range and BGP p

Re: Hyperthreading slowdown

2003-10-05 Thread Wilko Bulte
On Sat, Oct 04, 2003 at 01:04:35PM -0700, Kris Kennaway wrote: > On Sat, Oct 04, 2003 at 03:20:03PM -0400, Richard Coleman wrote: > > Kris Kennaway wrote: > > >On Sat, Oct 04, 2003 at 04:39:03PM +0200, Mikulas Patocka wrote: > > >>I installed FreeBSD 4.9RC1 on P4 3GHz with hyperthreading and I see

Re: Changing the NAT IP on demand?

2003-10-05 Thread Nick Rogness
On Sat, 4 Oct 2003, Leo Bicknell wrote: > > I'm considering options for a new project, and I think I've discovered > what I think is the best idea, but I don't think current software > supports the config. I'd like to get some confirmation, and comments on > if it would be hard to implement. > >