GRE on 4.x

2002-06-03 Thread Barry Irwin
Hi All I'm trying to integrate with a business aprner here who have a requirement we use GRE tunnel inside of IPSEC for a number of reasons. While the gif(4) device provides IPIP tunneling (proto 4) this doesnt work when the remote side is expecting true GRE (proto 47). Has any one had any exp

Win2k - FreeBSD

2002-06-03 Thread John Angelmo
I'mabout to install a FreeBSD box as a firewall for a school. The box will also be standing as a gateway, my question is could in some way check that the IP(or user) is logged in to the 2k domain before he/she is allowed to surf outside the local net? And I'm also setting up the fbsd box as a V

Re: Win2k - FreeBSD

2002-06-03 Thread Matt Jonkman
If you use squid and the smb_auth module you'll be set. The smb_auth module will authenticate each user to the domain, not check that they're loggged in. But that usually works well. Matt - Original Message - From: "John Angelmo" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday

RE: Duplex problem with Etherlink XL (3c900B) and xl driver.

2002-06-03 Thread McKenna, Lee
If the switch port is set to auto-negotiate, try setting it to 100/Full Duplex -- this way there is no negotiation between the devices. I've seen several incompatibilities with auto-negotiate among different vendors equipment over the years. --Lee > -Original Message- > From: Johan Pet

Re: netgraph documentation?

2002-06-03 Thread Lars Eggert
Archie Cobbs wrote: >>/usr/sbin/ngctl mkpeer iface dummy inet >>/usr/sbin/ngctl mkpeer ng3: ksocket inet inet/stream/tcp >>/usr/sbin/ngctl msg ng3:inet bind inet/10.0.0.1:50505 >>/usr/sbin/ngctl msg ng3:inet listen 1 >>ngctl: send msg: Operation not supported by device >> >> 2. Why can't I li

Dummynet WFQ

2002-06-03 Thread Lars Eggert
Hi, the Dummynet page has this example WFQ configuration: ipfw add queue 1 ip from any to 10.1.2.0/24 ipfw queue 1 config weight 5 pipe 2 mask dst-ip 0x00ff ipfw pipe 2 config bw 300Kbit/s The 300Kbit/s seems to be the bandwidth limit of the uplink. I'd imagine that

Re: Problem with SYN cache in FreeBSD 4.5

2002-06-03 Thread clark shishido
On Mon, Jun 03, 2002 at 01:59:13AM -0400, Nguyen-Tuong Long Le wrote: > Hi all, > > Our group has a proprietary web server that can handle 1 requests/s > under FreeBSD 4.3 release. We recently upgraded our system to 4.5 and got > very poor performance. While the web server runs, I see lots of

Re: Problem with SYN cache in FreeBSD 4.5

2002-06-03 Thread Mike Silbersack
On Mon, 3 Jun 2002, Nguyen-Tuong Long Le wrote: > Hi all, > > Our group has a proprietary web server that can handle 1 requests/s > under FreeBSD 4.3 release. We recently upgraded our system to 4.5 and got > very poor performance. While the web server runs, I see lots of messages > similar t

Re: GRE on 4.x

2002-06-03 Thread Julian Elischer
GRE is used for PPTP use MPD as a PPTP agent and add IPSEC security associations for that pair of machines.. (not SURE that will work but I'm experimenting with exactly this myself.) On Mon, 3 Jun 2002, Barry Irwin wrote: > Hi All > > I'm trying to integrate with a business aprner here who h

Race condition with M_EXT ref count?

2002-06-03 Thread Archie Cobbs
This is a question about M_EXT mbuf reference counts in FreeBSD-stable. There are several instances in kern/uipc_mbuf.c that add a reference to an M_EXT mbuf by either incrementing the entry in the mclrefcnt[] array or invoking the "custom" ext_ref routine. However, it seems that these instances

Re: Dummynet WFQ

2002-06-03 Thread Luigi Rizzo
On Mon, Jun 03, 2002 at 09:39:32AM -0700, Lars Eggert wrote: > Hi, > > the Dummynet page has this example WFQ configuration: > > ipfw add queue 1 ip from any to 10.1.2.0/24 > ipfw queue 1 config weight 5 pipe 2 mask dst-ip 0x00ff > ipfw pipe 2 config bw 300Kbit/s > > The 3

Re: Race condition with M_EXT ref count?

2002-06-03 Thread Julian Elischer
this is YET ANOTHER case for the Atomic reference counting ABI that jhb has been talking about... On Mon, 3 Jun 2002, Archie Cobbs wrote: > This is a question about M_EXT mbuf reference counts in FreeBSD-stable. > > There are several instances in kern/uipc_mbuf.c that add a reference > to an M

Re: Race condition with M_EXT ref count?

2002-06-03 Thread Alfred Perlstein
* Julian Elischer <[EMAIL PROTECTED]> [020603 12:41] wrote: > this is YET ANOTHER case for the Atomic reference counting ABI that > jhb has been talking about... I was the initial person to request an atomic_t API. -Alfred To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd

Re: Race condition with M_EXT ref count?

2002-06-03 Thread Julian Elischer
Not denying that, just that JHB has a preliminary implementation he's been showing around... On Mon, 3 Jun 2002, Alfred Perlstein wrote: > * Julian Elischer <[EMAIL PROTECTED]> [020603 12:41] wrote: > > this is YET ANOTHER case for the Atomic reference counting ABI that > > jhb has been talking

Re: Race condition with M_EXT ref count?

2002-06-03 Thread Archie Cobbs
Julian Elischer writes: > Not denying that, just that JHB has a preliminary implementation > he's been showing around... > > > > this is YET ANOTHER case for the Atomic reference counting ABI that > > > jhb has been talking about... > > > > I was the initial person to request an atomic_t API. Y

Re: Bug in net/route.c function rtredirect()

2002-06-03 Thread Andre Oppermann
Ruslan Ermilov wrote: > > On Sat, Jun 01, 2002 at 12:49:51PM +0200, Andre Oppermann wrote: > > You're right but the refcount decrementation will be done, just in a > > different place. In the "done:" section the rtfree() will be done also > > in the case when an existing host route was already pr

Re: Race condition with M_EXT ref count?

2002-06-03 Thread Julian Elischer
well, it's a valid problem form the point of view of some interrupt code changing the ext reference at teh same time that some other code is planning on incrementing it, but while Giant is in place it's not likely to affect anything.. I presume you are talking about 4.x however right? we can pr

Re: Race condition with M_EXT ref count?

2002-06-03 Thread Andre Oppermann
Archie Cobbs wrote: > > This is a question about M_EXT mbuf reference counts in FreeBSD-stable. > > There are several instances in kern/uipc_mbuf.c that add a reference > to an M_EXT mbuf by either incrementing the entry in the mclrefcnt[] > array or invoking the "custom" ext_ref routine. > > H

-current Netgraph (ng_parse) problem

2002-06-03 Thread Maksim Yevmenkin
Hackers, I'm having hard time with Netgraph on recent -current. First, there is a lot of warnings (see below) related to initialization of struct ng_parse_struct_info. I think it is related to zero sized "fields" array. Someone else already posted about the same problem. Second, my laptop crash

Re: Bug in net/route.c function rtredirect()

2002-06-03 Thread Garrett Wollman
< said: > A bug is that host routes created by redirect are never being purged. > But that one has been present for a long (?) time. You are expected to be running a routing process (like `routed' in router-discovery mode) which will delete them for you. I agree that this is not a reasonable ex

Re: Race condition with M_EXT ref count?

2002-06-03 Thread Terry Lambert
Julian Elischer wrote: > this is YET ANOTHER case for the Atomic reference counting ABI that > jhb has been talking about... No, they're not. They occur on m_copym, m_copypacket, and m_split. In practice, these are called seperately in the down and up path, and this isn't a problem (in the up

Re: Race condition with M_EXT ref count?

2002-06-03 Thread Terry Lambert
Alfred Perlstein wrote: > * Julian Elischer <[EMAIL PROTECTED]> [020603 12:41] wrote: > > this is YET ANOTHER case for the Atomic reference counting ABI that > > jhb has been talking about... > > I was the initial person to request an atomic_t API. I think the request count was non-atomically in

Re: Race condition with M_EXT ref count?

2002-06-03 Thread Bosko Milekic
First of all, this issue is non-existant in -CURRENT, where all reference counting is done via a consistent interface that provides bus-locked reference count manipulations. Secondly, this may not be as much of a problem as you may think. Particularly if you consider the m_split() case

Re: -current Netgraph (ng_parse) problem

2002-06-03 Thread Archie Cobbs
Maksim Yevmenkin writes: > I'm having hard time with Netgraph on recent -current. > > First, there is a lot of warnings (see below) related to > initialization of struct ng_parse_struct_info. I think > it is related to zero sized "fields" array. Someone else > already posted about the same proble

Re: Race condition with M_EXT ref count?

2002-06-03 Thread Bosko Milekic
On Mon, Jun 03, 2002 at 04:01:29PM -0700, Archie Cobbs wrote: > Bosko Milekic writes: > > Secondly, this may not be as much of a problem as you may think. > > Particularly if you consider the m_split() case, for example. For > > example, if you're calling m_split() on an mbuf chain that ma

Re: Race condition with M_EXT ref count?

2002-06-03 Thread Bosko Milekic
On Mon, Jun 03, 2002 at 03:54:02PM -0700, Archie Cobbs wrote: [...] > If you don't mind, I'll let you deal with the -current case, since > I'm not familiar enough with -current locking. Below is my proposed > patch for -stable. -current does not have this "problem." > It should be clear that

Request for review: patch to make netstat -rW behave as describedin netstat(1)

2002-06-03 Thread Kelly Yancey
I would appreciate it if someone could review the attached patch which makes netstat calculate column widths for the routing table when the -W flag is specified rather than just picking larger arbitrary values as it does now. Other than making -W more useful, it syncs reality to the documentati

Re: Race condition with M_EXT ref count?

2002-06-03 Thread Archie Cobbs
Bosko Milekic writes: > > > Secondly, this may not be as much of a problem as you may think. > > > Particularly if you consider the m_split() case, for example. For > > > example, if you're calling m_split() on an mbuf chain that may refer > > > to cluster(s) where none of the clusters ha

Re: Bug in net/route.c function rtredirect()

2002-06-03 Thread Ruslan Ermilov
On Tue, Jun 04, 2002 at 12:05:51AM +0200, Andre Oppermann wrote: > Ruslan Ermilov wrote: > > > > On Sat, Jun 01, 2002 at 12:49:51PM +0200, Andre Oppermann wrote: > > > You're right but the refcount decrementation will be done, just in a > > > different place. In the "done:" section the rtfree() w