Re: OpenNTPd issue

2005-06-07 Thread Darren Tucker

Kvvesdan Gabor wrote:

I trust you've already checked that your server is chiming
the correct time from its upstream clocks.

[...]

It works fine with the time server of my ISP I sync my server from, and my
server also syncs the correct time from that server.


Yes but your local server will have a stratum number one higher than the 
server it syncs to.


[...]

I haven't change the source server so far, because I've upgraded to
3.7 and have tried to sync the Windows client to the server. I've
experienced three cases with the new version:
1, The synchronization fails due to the stratum.
2, The synchronization succeeds.
3, The synchronization fails with error message: peer is unreachable.

As I've experienced, after starting the server there is a period when
the first case happens, and after a while the synchronization mostly
succeeds. The third case was rare. Is this the normal behaviour?


1) no.  2) yes. 3) no, sounds like a transient network problem.


As for the DNS problem, thanks. I don't know what's wrong, however. I did a
named reload after modifying the zone file, and there's the notify support
between the two nameservers.


Did you remember to increase the zone serial number when you made your 
changes?


--
Darren Tucker (dtucker at zip.com.au)
GPG key 8FF4FA69 / D9A3 86E9 7EEE AF4B B2D4  37C9 C982 80C7 8FF4 FA69
Good judgement comes with experience. Unfortunately, the experience
usually comes from bad judgement.



can't boot when USB HD plugged-in

2005-06-07 Thread Antoine Jacoutot

Hi,

I have a very strange problem upon booting with OpenBSD-3.7.
I have a USB HD plugged-in my box. My bios is setup to boot only from 
HDD0 which is an internal IDE drive (I tried all different combinations, 
but the problem is always the same).
On booting, if the USB HD is turned off, everything works fine, but if 
it is turned on, then the box won't boot, it just hangs before the boot 
prompt at:


hd0+ hd1+

If I then turn the USB HD off, then the boot continues. Any idea how to 
solve this ?

Thanks in advance.

Antoine

ps : more info,

# disklabel sd0
# using MBR partition 3: type A6 off 63 (0x3f) size 241248042 (0xe61272a)
# /dev/rsd0c:
type: SCSI
disk: SCSI disk
label: AVV207-0
flags:
bytes/sector: 512
sectors/track: 32
tracks/cylinder: 64
sectors/cylinder: 2048
cylinders: 117800
total sectors: 241254720
rpm: 3600
interleave: 1
trackskew: 0
cylinderskew: 0
headswitch: 0   # microseconds
track-to-track seek: 0  # microseconds
drivedata: 0

8 partitions:
# sizeoffset  fstype [fsize bsize  cpg]
  c: 24124804263  unused  0 0  # Cyl 
0*-117796*
  d: 24124804263  4.2BSD   2048 16384   16 # Cyl 
0*-117796*



OpenBSD 3.7-current (GENERIC) #175: Fri Jun  3 18:00:08 MDT 2005
[EMAIL PROTECTED]:/usr/src/sys/arch/i386/compile/GENERIC
cpu0: Intel(R) Celeron(R) CPU 2.40GHz (GenuineIntel 686-class) 2.40 GHz
cpu0: 
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,CNXT-ID

real mem  = 670605312 (654888K)
avail mem = 604360704 (590196K)
using 4278 buffers containing 33632256 bytes (32844K) of memory
mainbus0 (root)
bios0 at mainbus0: AT/286+(60) BIOS, date 03/02/04, BIOS32 rev. 0 @ 0xfb220
apm0 at bios0: Power Management spec V1.2
apm0: AC on, battery charge unknown
apm0: flags 70102 dobusy 1 doidle 1
pcibios0 at bios0: rev 2.1 @ 0xf/0xdf84
pcibios0: PCI IRQ Routing Table rev 1.0 @ 0xfdec0/176 (9 entries)
pcibios0: PCI Exclusive IRQs: 3 5 9 10 11
pcibios0: PCI Interrupt Router at 000:31:0 (Intel 82371SB ISA rev 0x00)
pcibios0: PCI bus #2 is the last bus
bios0: ROM list: 0xc/0xc000 0xcc000/0x400
cpu0 at mainbus0
pci0 at mainbus0 bus 0: configuration mode 1 (no bios)
pchb0 at pci0 dev 0 function 0 Intel 82845G/GL rev 0x03
ppb0 at pci0 dev 1 function 0 Intel 82845G/GL/GV/GE/PE AGP rev 0x03
pci1 at ppb0 bus 1
vga1 at pci1 dev 0 function 0 ATI Radeon VE QY rev 0x00
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
uhci0 at pci0 dev 29 function 0 Intel 82801DB USB rev 0x02: irq 5
usb0 at uhci0: USB revision 1.0
uhub0 at usb0
uhub0: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
uhci1 at pci0 dev 29 function 1 Intel 82801DB USB rev 0x02: irq 10
usb1 at uhci1: USB revision 1.0
uhub1 at usb1
uhub1: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub1: 2 ports with 2 removable, self powered
uhci2 at pci0 dev 29 function 2 Intel 82801DB USB rev 0x02: irq 10
usb2 at uhci2: USB revision 1.0
uhub2 at usb2
uhub2: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub2: 2 ports with 2 removable, self powered
ehci0 at pci0 dev 29 function 7 Intel 82801DB USB rev 0x02: irq 11
usb3 at ehci0: USB revision 2.0
uhub3 at usb3
uhub3: Intel EHCI root hub, class 9/0, rev 2.00/1.00, addr 1
uhub3: 6 ports with 6 removable, self powered
ppb1 at pci0 dev 30 function 0 Intel 82801BA AGP rev 0x82
pci2 at ppb1 bus 2
rl0 at pci2 dev 0 function 0 Realtek 8139 rev 0x10: irq 10 address 
00:50:8d:54:f5:17

rlphy0 at rl0 phy 0: RTL internal phy
bktr0 at pci2 dev 4 function 0 Brooktree BT878 rev 0x11: irq 3
bktr0: Hauppauge Model 44806 D143
bktr0: Warning - Unknown Hauppauge Tuner 0x2b
bktr0: Hauppauge WinCast/TV, Philips NTSC tuner.
Brooktree BT878 Audio rev 0x11 at pci2 dev 4 function 1 not configured
pcscp0 at pci2 dev 5 function 0 AMD 53c974 PCscsi-PCI rev 0x10: irq 11
pcscp0: AM53C974, 40MHz, SCSI ID 7
pcscp0: SCSI bus reset
scsibus0 at pcscp0: 8 targets
cd0 at scsibus0 targ 0 lun 0: TOSHIBA, DVD-ROM SD-M1401, 1007 SCSI2 
5/cdrom removable
cd1 at scsibus0 targ 5 lun 0: HP, CD-Writer+ 9200, 1.0e SCSI4 5/cdrom 
removable

ichpcib0 at pci0 dev 31 function 0 Intel 82801DB LPC rev 0x02
pciide0 at pci0 dev 31 function 1 Intel 82801DB IDE rev 0x02: DMA, 
channel 0 configured to compatibility, channel 1 configured to compatibility

wd0 at pciide0 channel 0 drive 0: IC35L030AVER07-0
wd0: 16-sector PIO, LBA, 28613MB, 58600080 sectors
wd1 at pciide0 channel 0 drive 1: ST380011A
wd1: 16-sector PIO, LBA48, 76319MB, 156301488 sectors
wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 5
wd1(pciide0:0:1): using PIO mode 4, Ultra-DMA mode 5
wd2 at pciide0 channel 1 drive 0: IBM-DTLA-307030
wd2: 16-sector PIO, LBA, 29314MB, 60036480 sectors
wd3 at pciide0 channel 1 drive 1: ST380011A
wd3: 16-sector PIO, LBA48, 76319MB, 156301488 sectors
wd2(pciide0:1:0): using PIO mode 4, Ultra-DMA mode 5

Re: can't boot when USB HD plugged-in

2005-06-07 Thread Antoine Jacoutot

Nick Holland wrote:

I suspect you can get around this by disabling BIOS support for USB
disks, keyboards, etc.  Normally, it is called USB Legacy Support or
something similar.  Once this is done, the boot loader won't be able to
see the USB HD to get hung up on it, but it will still be available once
an OS boots.


You suspect well :)
I disabled USB Keyboard support in the BIOS and it works fine now !


Not exactly a fix, but a work-around that I think will work.


Well, you made my day... and I thank you a lot for that.

Regards,

Antoine



Re: PPPoE Download Performance Woes

2005-06-07 Thread Melameth, Daniel D.
Can Erkin Acar wrote:
 Melameth, Daniel D. wrote:
  I've looked into this further and still cannot determine where the
  issue lies.  Based on some advice, I unplugged the OpenBSD machine
  and setup a Windows XP machine instead.  The Windows native PPPoE
  client was able to download at 5.5Mb/s and the OpenBSD machine was
  still stuck at 1.5Mb/s. 
 
 My ADSL connection where I do my testing is only 256Kb, so I set up a
 second OpenBSD machine on the same LAN as a pppoe server and did some
 tests. 
 
 I get almost the same performance with or without pppoe.
 ie. up to 70Mbps, after increasing the socket buffer size in iperf.
 
 This is -current, so Marco's comments about idle loop may also apply.
 
 Note that, if debugging is turned on, it would not go above 1.5Mb/s,
 due to excessive amount of logging, make sure that you do not somehow
 turn debug on by default.

It is definitely not on by default.

 Another thing to try would be to replace your ethernet card.
 The xl(4) said to be quite crappy.

Prior to migrating to DSL, this same card was used for a cable
connection and doing more than 1.5Mb/s.



Re: PPPoE Download Performance Woes

2005-06-07 Thread Marius Van Deventer - Umzimkulu
You could test fot the idle loop issue by temporarily disabling apm0 on
boot. I believe (correct me if I'm wrong0 that apm0 is the source of the
idle loop problem?

 -Original Message-
 From: Melameth, Daniel D. [mailto:[EMAIL PROTECTED] 
 Sent: 07 June 2005 02:10 PM
 To: OpenBSD Misc
 Subject: Re: PPPoE Download Performance Woes
 
 
 I've been hesitant to touch -current especially after a 
 hackathon.  Any
 idea if the idle loop fix is in the i386 6/3 snapshot?
 
 Marco Peereboom wrote:
  Actually I looked at the dmesg and I am almost certain that this
  machine has the idle loop issue.  Try -current or wait until brad@
  commits the errata.
   Melameth, Daniel D. wrote:
I've looked into this further and still cannot determine where
the issue lies.  Based on some advice, I unplugged the OpenBSD
machine and setup a Windows XP machine instead.  The Windows
native PPPoE client was able to download at 5.5Mb/s and the
OpenBSD machine was still stuck at 
1.5Mb/s.



Re: Packages or Ports ?

2005-06-07 Thread capean ask
Hi guys...

I'd been reading 14 e-mails about this discussion and I it helped me a
lot. There were nice points of view from all of you, guys.

Thanks.

Atanai

On 3/25/05, Fabio Nunes [EMAIL PROTECTED] wrote:
 Thanks for your reply, everybody.
 
 I will wait for 3.7 release, as you suggested,
 and will use packages whenever possible. Thanks
 again
 
 Fabio



Re: ccd mirroring on sparc64

2005-06-07 Thread Michael Shalayeff
Making, drinking tea and reading an opus magnum from Stuart Henderson:
 --On 23 May 2005 23:25 +0100, I wrote:
 
  Can anyone suggest what's going wrong with this attempt at setting up
  a ccd mirror on sparc64 (t1 105)? Making any changes to the disklabel
  (with -e or -E) results in ccd0's disk information changing, e.g.:
 
 I've just been looking at this again - for the benefit of the archives, 
 the workaround is to write filesystems directly onto the 'c' partition, 
 and use one ccd device per partition. This doesn't seem to be necessary 
 for i386.

it works just fine on sparc64.
that's my debugging setup for ccd.
works just fine on any partition as well.
when you edit disklabel you might need to reboot.
it's smth obscure in the way disklabel is handled
(sun-compatible) on the platform.

cu

-- 
paranoic mickey   (my employers have changed but, the name has remained)



PKG_ADD Gnome on 3.7 PPC

2005-06-07 Thread Simon Slaytor

Hi Folks,

Just a quick one as I think I'm going mad.

I've just installed 3.7 on my G4 PowerMac, smooth install not problems!

Now I've started adding GNOME 2.8 from the packages collection, however 
when I try and add GNOME-SESSION-2.8.1 pkg_add complains about the 
missing package GNOME-APPLETS2-2.8.2p0 and quite righlty too as I don't 
have it.


Now comes the problem, neither do any of the FTP sites I've checked, it 
exits in the 3.6ppc packages, all be it in an older 2.6 form.


Can anyone shed any light on where the missing package has gone?

Will gladly supply a very big stick however if I've missed something 
obvious.


Thanks

Simon



Re: OpenNTPd issue

2005-06-07 Thread Kövesdán Gábor

Darren Tucker wrote:


Kvvesdan Gabor wrote:


I haven't change the source server so far, because I've upgraded to
3.7 and have tried to sync the Windows client to the server. I've
experienced three cases with the new version:
1, The synchronization fails due to the stratum.
2, The synchronization succeeds.
3, The synchronization fails with error message: peer is unreachable.

As I've experienced, after starting the server there is a period when
the first case happens, and after a while the synchronization mostly
succeeds. The third case was rare. Is this the normal behaviour?



1) no.  2) yes. 3) no, sounds like a transient network problem.


I've tried the stock FreeBSD ntpd, and it behaves similar. I haven't 
experienced the
issue with stratum, but sometimes it was unreachable. I've thought it 
denies the

synchronization request while slewing the server's time, doesn't it?
As for the network, anything else is working and the port 123 is open in 
the packet filter.




As for the DNS problem, thanks. I don't know what's wrong, however. I 
did a
named reload after modifying the zone file, and there's the notify 
support

between the two nameservers.



Did you remember to increase the zone serial number when you made your 
changes?



Ohh, how lame I am. :) I've forgotten about it. Thanks.

Cheers,

Gabor Kvvesdan



Re: PKG_ADD Gnome on 3.7 PPC

2005-06-07 Thread Matthew S Elmore

Simon,

I recently ran into the same problem.

I had to compile the applets from the ports tree. If I recall correctly, 
I had to make some changes to libFLAC's Makefile. (Something to do with 
the configure script).


Here is a link to the gnome applets macppc package as well as the flac 
package I built on my system:


http://www.mattelmore.com/~matt/gnome/


Hope this helps,
Matt


Simon Slaytor wrote:

Hi Folks,

Just a quick one as I think I'm going mad.

I've just installed 3.7 on my G4 PowerMac, smooth install not problems!

Now I've started adding GNOME 2.8 from the packages collection, however 
when I try and add GNOME-SESSION-2.8.1 pkg_add complains about the 
missing package GNOME-APPLETS2-2.8.2p0 and quite righlty too as I don't 
have it.


Now comes the problem, neither do any of the FTP sites I've checked, it 
exits in the 3.6ppc packages, all be it in an older 2.6 form.


Can anyone shed any light on where the missing package has gone?

Will gladly supply a very big stick however if I've missed something 
obvious.


Thanks

Simon




Re: Eclipse + 3.7

2005-06-07 Thread Kurt Miller

From: Kurt Miller [EMAIL PROTECTED]

The error you are having looks like you may have borked a
src upgrade to some older -current. In any case, I would 
do the following to clean up the mess you have now.


rm -rf /usr/include/g++
Download and install a snapshot including x*.tgz
Upgrade all your packages from snapshots.
Update your src and ports trees and then try rebuiding
the jdk.


BTW, the above procedure can not be used to get your
system back to 3.7 release. You will still have cruft around
like the somewhat current libstdc++ and who knows what
else.

If your intent is to run 3.7 then you will need to reinstall
from scratch.

-Kurt



sys/param.h: #define OpenBSD 200519

2005-06-07 Thread Claus Assmann
Why is OpenBSD defined in sys/param.h as 200519 and not as 200505
as the comment suggests: /* OpenBSD version (year  month). */

I'm using this value to figure out the OpenBSD version to turn
on/off some features for sendmail (e.g., turn off NETISO for 3.7
and later).

===
RCS file: /usr/OpenBSD/cvs/src/sys/sys/param.h,v
retrieving revision 1.60
retrieving revision 1.61
diff -u -r1.60 -r1.61
--- src/sys/sys/param.h 2005/03/07 00:05:59 1.60
+++ src/sys/sys/param.h 2005/03/11 22:07:32 1.61
@@ -1,4 +1,4 @@
-/* $OpenBSD: param.h,v 1.60 2005/03/07 00:05:59 deraadt Exp $  */
+/* $OpenBSD: param.h,v 1.61 2005/03/11 22:07:32 deraadt Exp $  */
 /* $NetBSD: param.h,v 1.23 1996/03/17 01:02:29 thorpej Exp $   */
 
 /*-
@@ -41,7 +41,7 @@
 #define BSD4_3 1
 #define BSD4_4 1
 
-#define OpenBSD200501  /* OpenBSD version (year  month). */
+#define OpenBSD200519  /* OpenBSD version (year  month). */
 #define OpenBSD3_7 1   /* OpenBSD 3.7 */
 
 #ifndef NULL



Re: ccd mirroring on sparc64

2005-06-07 Thread Stuart Henderson

--On 07 June 2005 11:48 -0400, Michael Shalayeff wrote:


Making, drinking tea and reading an opus magnum from Stuart Henderson:

--On 23 May 2005 23:25 +0100, I wrote:

 Can anyone suggest what's going wrong with this attempt at setting
 up a ccd mirror on sparc64 (t1 105)? Making any changes to the
 disklabel (with -e or -E) results in ccd0's disk information
 changing, e.g.:

I've just been looking at this again - for the benefit of the
archives,  the workaround is to write filesystems directly onto the
'c' partition,  and use one ccd device per partition. This doesn't
seem to be necessary  for i386.


it works just fine on sparc64.
that's my debugging setup for ccd.
works just fine on any partition as well.
when you edit disklabel you might need to reboot.
it's smth obscure in the way disklabel is handled
(sun-compatible) on the platform.


Thanks Mickey, but experimenting after reading this, it doesn't quite 
clear everything up for me. Using 'disklabel -E', 
cylinders/sectors/free sectors are wrong until:



g d
b

Starting sector: [0]
Size ('*' for entire disk): [4698752] *

Then the values are ok while disklabel -E is running, but after 
returning to the shell, they're invalid, and rebooting doesn't help.


But 'disklabel -e' is different! Everything looks ok until a reboot, 
then the same incorrect number of free sectors etc are shown.


If it's just a question of re-entering the information each time, 
that's a bit annoying but not a big problem, but the difference in 
behaviour between -E and -e puzzles me.


$ disklabel ccd0
# /dev/rccd0c:
type: ccd
disk: ccd
label: default label
flags:
bytes/sector: 512
sectors/track: 128
tracks/cylinder: 1
sectors/cylinder: 128
cylinders: 233317
total sectors: 29864576
rpm: 7200
interleave: 1
trackskew: 0
cylinderskew: 0
headswitch: 0   # microseconds
track-to-track seek: 0  # microseconds
drivedata: 0

16 partitions:
# sizeoffset  fstype [fsize bsize  cpg]
 a:   5244416 0  4.2BSD   2048 16384   16 # Cyl 0 
- 40971
 c:  29864576 0  unused  0 0  # Cyl 0 
-233316
 d:786432   5244416  4.2BSD   2048 16384   16 # Cyl 40972 
- 47115
 e:   1310720   6030848  4.2BSD   2048 16384   16 # Cyl 47116 
- 57355
 f:  22523008   7341568  4.2BSD   2048 16384   16 # Cyl 57356 
-233316

$ sudo disklabel -E ccd0
This platform requires that partition offsets/sizes be on cylinder 
boundaries.
Partition offsets/sizes will be rounded to the nearest cylinder 
automatically.


Initial label editor (enter '?' for help at any prompt)

q

No label changes.
$ disklabel ccd0
# /dev/rccd0c:
type: ccd
disk: ccd
label: default label
flags:
bytes/sector: 512
sectors/track: 128
tracks/cylinder: 1
sectors/cylinder: 128
cylinders: 233317
total sectors: 29864576
rpm: 7200
interleave: 1
trackskew: 0
cylinderskew: 0
headswitch: 0   # microseconds
track-to-track seek: 0  # microseconds
drivedata: 0

3 partitions:
# sizeoffset  fstype [fsize bsize  cpg]
 c:  29864576 0  unused  0 0  # Cyl 0 
-233316

disklabel: warning, unused partition d: size 786432 offset 5244416
disklabel: warning, unused partition e: size 1310720 offset 6030848
disklabel: warning, unused partition f: size 22523008 offset 7341568
$ sudo reboot
[...]
$ sudo disklabel -E ccd0
This platform requires that partition offsets/sizes be on cylinder 
boundaries.
Partition offsets/sizes will be rounded to the nearest cylinder 
automatically.


Initial label editor (enter '?' for help at any prompt)

p

device: /dev/rccd0c
type: ccd
disk: ccd
label: default label
bytes/sector: 512
sectors/track: 128
tracks/cylinder: 1
sectors/cylinder: 128
cylinders: 36709
total sectors: 4698752
free sectors: 4698752
rpm: 7200

16 partitions:
# sizeoffset  fstype [fsize bsize  cpg]
 a:   5244416 0  4.2BSD   2048 16384   16 # Cyl 0 
- 40971
 c:  29864576 0  unused  0 0  # Cyl 0 
-233316
 d:786432   5244416  4.2BSD   2048 16384   16 # Cyl 40972 
- 47115
 e:   1310720   6030848  4.2BSD   2048 16384   16 # Cyl 47116 
- 57355
 f:  22523008   7341568  4.2BSD   2048 16384   16 # Cyl 57356 
-233316

q

No label changes.



Problem reading large file from nfs mount

2005-06-07 Thread C. Dominik Bodi
Hi,

I run OpenBSD 3.7 on a i686 box and discovered following problem using it as 
an nfs client.

Scenario:
NFS Server: GNU/Linux (Debian unstable), Athlon 1.3GHz, kernel 2.6.11.10, 
kernelspace nfs server, NFSv3 enabled, TCP disabled.
NFS Client 1: OpenBSD 3.7 on a P3-733MHz, NFSv3, UDP, generic kernel
NFS Client 2: GNU/Linux (Arch current), AthlonXP 3200+, kernel 2.6.11.x
All computers are connected to a local private ethernet network.

Simple test case: (using the OpenBSD box)
cp /mnt/nfs_share/path_to_file/source_file /localdisk/path/target_file
where sizeof (source_file)  2^32 bytes

Observed behaviour:
( sizeof( source_file ) - sizeof( target_file ) )
= 2^32 bytes
!=sizeof( source_file )

Example: A file copied from the nfs mount with a size of 4,428,851,200 bytes 
results in a copy that has a size of 133,883,904 bytes.

4,428,851,200 - 133,883,904 = 4,294,967,296 = 2^32

2nd test case (using the OpenBSD box):
cp /mnt/nfs_share/path_to_file/source_file /localdisk/path/target_file
where 2^31 bytes  sizeof (source_file) = 2^32 bytes

Observed behaviour:
sizeof ( target_file ) = 0 bytes

Example: A file copied from the nfs mount with a size of 3,363,543,040 bytes 
results in a copy that has zero bytes size without getting an error message 
from cp.

X-check test case (using the GNU/Linux NFS client):
Repeat test cases 1 and 2.

Observed behaviour: Everthing works as it should, file copies are complete, 
md5sums and file sizes of original and copy match.

Further notes: 
Similiar problems could be observed with other userland programs that are 
reading a file from the nfs mount, e.g. a BitTorrent client downloading a 
torrent containing a sufficiently large file, or using wget to download a 
large file onto the nfs mount.

Writing, however, does not seem to be affected, cp'ing a large file onto the 
nfs share works. Dealing with very large files on the OpenBSD box locally did 
not reveal anything problematic, either.

/etc/fstab line for the nfs mount is:
machine_name:/path /mnt/mountpoint nfs noauto,rw,noexec,nodev,nosuid 0 0
(real names and paths substituted with generic terms)

Advice is appreciated.

Regards,
Dominik
-- 
The duration of passion is proportionate with the original resistance
of the woman.
-- Honor'e DeBalzac



Re: PPPoE Download Performance Woes

2005-06-07 Thread Kevin
On 5/26/05, Rod.. Whitworth [EMAIL PROTECTED] wrote:
 When you have a modem that will do all the connection stuff I am amazed
 that anyone feels the need to do PPPoE.

I prefer to have control over (and visibility into) the PPP connection and NAT,
to this end I'm seriously considering getting rid of the external ADSL modem
entirely, migrating to a Sangoma S518 ADSL PCI card.


On 6/7/05, Can Erkin Acar [EMAIL PROTECTED] wrote:
 Melameth, Daniel D. wrote:
  Prior to migrating to DSL, this same card was used for a cable
  connection and doing more than 1.5Mb/s.
 
 This really does not mean much. It could be a negotiation problem.
 Was your old cable modem ethernet connection 10BaseT ?
 
 from a previous post ...
 
  xl0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST mtu 1500
   address: 00:04:75:ac:05:48
   media: Ethernet autoselect (100baseTX full-duplex)
 
 Perhaps your ADSL modem/switch  has problems negotiating with
 your card, or your cable might have problems.

It'd help if the OP can provide the output of 'netstat -in' after the PPPoE
has been up for a while.

 Full-duplex does not detect transmission errors, so you would
 not see them on netstat -i output. You could try setting
 media to 10BaseT half-duplex this usually helps you notice
 if there is a problem, and can sometimes solve it.
 
 And do try another ethernet card if possible.

Seconded on both points.

One thing I've found very helpful in debugging PPPoE has been to use
either the - (time between packets) or -tt (absolute epoch time)
options on tpcdump, watching the packets on both the real Ethernet
interface and the tunnel (pppoe0) interface, in two side-by-side
windows.

Kevin Kadow



Re: Gigabit Firewall NIC Interrupt Performance Problem

2005-06-07 Thread Sean Knox
I installed the NIC to the shared PCI slot and it has helped, but not as 
much as I expected. Now that all NICs are sharing an IRQ, interrupt 
usage has dropped from ~90% to ~70%. I'm pushing about 25 kb/s 
across two NICs, which makes me wonder the max throughput I can expect 
on a firewall on these Intel boxes.


I haven't tried tuning the em(4) driver yet nor am I sure it's needed at 
this point. Does anyone have some guidelines and/or tuning values they use?


thanks,
sk


Sean Knox wrote:

Bill Marquette wrote:


On 6/2/05, Sean Knox [EMAIL PROTECTED] wrote:


Hey Bill-

Is IRQ sharing done in BIOS? I'm using 2 onboard em(4) NICs and a dual
port em(4) on a Supermicro 6023P-8:




This was all done in BIOS on HP DL380's.



The Supermicro BIOS (forgot the brand offhand) doesn't allow for setting 
IRQs manually, but one of the 133mhz slots shares an IRQ with the 
onboard NICs.



em0 at pci3 dev 1 function 0 Intel PRO/1000MT DP (82546EB) rev 0x03: 
irq 12, address: 00:04:23:a7:b4:4c
em1 at pci3 dev 1 function 1 Intel PRO/1000MT DP (82546EB) rev 0x03: 
irq 12, address: 00:04:23:a7:b4:4d
em2 at pci3 dev 2 function 0 Intel PRO/1000MT DP (82546EB) rev 0x01: 
irq 12, address: 00:30:48:2c:95:e8
em3 at pci3 dev 2 function 1 Intel PRO/1000MT DP (82546EB) rev 0x01: 
irq 12, address: 00:30:48:2c:95:e9


That should help a good deal.





* ensure PCI card is in 133mhz slot (pretty sure it is)



This never hurts :)



...but what does it hurt is installing the NIC in a 66mhz slot. Ouch. 
I'll have to wait until next week to try this fix in the primary 
firewall; I'll report back to the group when that's done. Thanks again.


cheers,
sk




Re: ccd mirroring on sparc64

2005-06-07 Thread Michael Shalayeff
Making, drinking tea and reading an opus magnum from Stuart Henderson:
 --On 07 June 2005 11:48 -0400, Michael Shalayeff wrote:
 
  Making, drinking tea and reading an opus magnum from Stuart Henderson:
  --On 23 May 2005 23:25 +0100, I wrote:
 
   Can anyone suggest what's going wrong with this attempt at setting
   up a ccd mirror on sparc64 (t1 105)? Making any changes to the
   disklabel (with -e or -E) results in ccd0's disk information
   changing, e.g.:
 
  I've just been looking at this again - for the benefit of the
  archives,  the workaround is to write filesystems directly onto the
  'c' partition,  and use one ccd device per partition. This doesn't
  seem to be necessary  for i386.
 
  it works just fine on sparc64.
  that's my debugging setup for ccd.
  works just fine on any partition as well.
  when you edit disklabel you might need to reboot.
  it's smth obscure in the way disklabel is handled
  (sun-compatible) on the platform.
 
 Thanks Mickey, but experimenting after reading this, it doesn't quite 
 clear everything up for me. Using 'disklabel -E', 
 cylinders/sectors/free sectors are wrong until:

all you need is free sectors _once_ to be right.
you make your disklabel and then you forget about it.
is it some kind of perversion to edit disklabel every day?

cu

-- 
paranoic mickey   (my employers have changed but, the name has remained)



DMZ Bottlenecks

2005-06-07 Thread Gustavo Rios
Hey folks.

i am faced with the task to build organize a network. I am planning to
have some dmz for the client boxes and a dmz the server and monitoring
workstations.

there will be about 30 client desktops in each of the client dmz, and
4 of such dmz. A additional DMZ will hold the servers (email:
pop3/smp/qmtp, dns, MySQL, etc...) and some admin workstations.

But i am predicting a problem, and it relates to performance issues
(I/O throughtput).Two main server will be demanded a lot for I/O:

The NFS server (home directories), and
MySQL server,
LDAP server.

I see two approaches:

0) Take them away from the Server DMZ perimeter.

The ideia is to have each of those box with a 4 network 1 GB network
NIC and connect them directly to each of them 4 client dekstop DMZ.

1) Get every server inside the DMZ server.

Garantees better security control over them, but now i have a single
point of failure and there is a considerable I/O bottleneck.
Everything needs to pass via the dmz firewall and performance may drop
down.


So my questions are:

What is your experience?
Which approach did you take?

Thanks a lot.


PS: BTW, could a openbsd server handle such a nfs server ? About 120
clients connected at once.



serial console weirdness after kernel recompile

2005-06-07 Thread Olivier Mehani
Hi,

I've just compiled a specific kernel for my soekris net4511 and have a
serial terminal issue.

With the GENERIC 3.7 kernel, everything went smoothly:
* bootloader
* kernel
* init
Every step could be read on the serial console.

Now that I'm booting my new kernel, I can see the bootloader output
correctly (stty com0 19200 AND set tty com0 in boot.conf) but then I
only get garbage (as if the terminal speed wasn't correct) while the
kernel boots. I get back to readable messages when init takes control.

I get something like this :

...ó.0..f.à...Ø..f.f.à.`æ.f..`.`.Øfxx.`.x...x.x.~.`.Ø.Øæ.`.fæà.~à..Ø.~f
..Øfæ..~. /dev/rwd0a: file system is clean; not checking
/dev/rwd0e: file system is clean; not checking
/dev/rwd0d: file system is clean; not checking
setting tty flags

Did I miss a specific way to tell at compile time the serial
terminal parameters to used ?

Attached to this mail should be the /sys/conf/mudrublic (mudrublic.conf)
and /sys/arch/i386/conf/mudrublic (mudrublic.arch.conf) files I used to
compile my kernel, in case it may help.

-- 
Olivier Mehani [EMAIL PROTECTED]
PGP fingerprint: 3720 A1F7 1367 9FA3 C654  6DFB 6845 4071 E346 2FD1


mudrublic.arch.conf
Description: Binary data


mudrublic.conf
Description: Binary data


pgpukZMfAuWnE.pgp
Description: PGP signature


Re: Gigabit Firewall NIC Interrupt Performance Problem

2005-06-07 Thread Sean Knox

Tony Sarendal wrote:


On Tuesday 07 June 2005 20:17, Sean Knox wrote:


I installed the NIC to the shared PCI slot and it has helped, but not as
much as I expected. Now that all NICs are sharing an IRQ, interrupt
usage has dropped from ~90% to ~70%. I'm pushing about 25 kb/s
across two NICs, which makes me wonder the max throughput I can expect
on a firewall on these Intel boxes.


What is that in packets per second ?


Ingress is 16255 packets/sec and egress is 18032 packets/sec.



16k+18k pps at 70% interrupt cpu ? On a modern PC ?
That sounds disapointing to say the least.

I checked one of my ancient 600Mhz P3 with a four port dc, it's doing 15k+15k 
at 33% interrupt cpu. I dug through old emails and found that an old firewall 
I had with Athlon850MHz and one ti (netgear) doing 26k+26k on it's vlan trunk 
at 15% interrupt cpu.


Please tell me your box is an old piece of junk like my boxes.



Nope-- it's a Supermicro 6023P-8 
(http://supermicro.com/products/system/2U/6023/SYS-6023P-8.cfm). Intel 
Xeon 2.4, 533mhz bus, onboard dual Intel 82546EB gige nics, 133mhz 
PCI-X, etc. etc. I'm running a snapshot from June 3 and as far as I can 
tell, apm is not enabled (did a dmesg|grep apm).


Sean



Re: serial console weirdness after kernel recompile

2005-06-07 Thread Henning Brauer
* Stuart Henderson [EMAIL PROTECTED] [2005-06-08 00:09]:
 --On 07 June 2005 23:38 +0200, Olivier Mehani wrote:
 
 Now that I'm booting my new kernel, I can see the bootloader output
 correctly (stty com0 19200 AND set tty com0 in boot.conf) but then I
 only get garbage (as if the terminal speed wasn't correct) while the
 kernel boots. I get back to readable messages when init takes control.
 
 option PCCOMCONSOLE
 option CONSPEED=19200

no, this is wrong.
there are no options needed.

-- 
BS Web Services, http://www.bsws.de/
OpenBSD-based Webhosting, Mail Services, Managed Servers, ...
Unix is very simple, but it takes a genius to understand the simplicity.
(Dennis Ritchie)



Re: serial console weirdness after kernel recompile

2005-06-07 Thread Olivier Mehani
On Wed, 8 Jun 2005 00:21:31 +0200
Henning Brauer [EMAIL PROTECTED] wrote:

  Now that I'm booting my new kernel, I can see the bootloader output
  correctly (stty com0 19200 AND set tty com0 in boot.conf) but then
  I only get garbage (as if the terminal speed wasn't correct) while
  the kernel boots. I get back to readable messages when init takes
  control.
 
  option PCCOMCONSOLE
  option CONSPEED=19200

 no, this is wrong.
 there are no options needed.

I'm trying this anyway, this doesn't cost much. Now that I think about
it, I had exactly the same problem with a hand made OpenBSD 3.4 kernel
too.

--
Olivier Mehani [EMAIL PROTECTED]
PGP fingerprint: 3720 A1F7 1367 9FA3 C654  6DFB 6845 4071 E346 2FD1

[demime 1.01d removed an attachment of type application/pgp-signature]



Re: serial console weirdness after kernel recompile

2005-06-07 Thread Henning Brauer
* Olivier Mehani [EMAIL PROTECTED] [2005-06-08 00:46]:
 On Wed, 8 Jun 2005 00:21:31 +0200
 Henning Brauer [EMAIL PROTECTED] wrote:
 
   Now that I'm booting my new kernel, I can see the bootloader output
   correctly (stty com0 19200 AND set tty com0 in boot.conf) but then
   I only get garbage (as if the terminal speed wasn't correct) while
   the kernel boots. I get back to readable messages when init takes
   control.
   
   option PCCOMCONSOLE
   option CONSPEED=19200
  
  no, this is wrong.
  there are no options needed.
 
 I'm trying this anyway, this doesn't cost much. Now that I think about
 it, I had exactly the same problem with a hand made OpenBSD 3.4 kernel
 too.

so stop wasting your and everyone's time and use GENERIC dammit

-- 
BS Web Services, http://www.bsws.de/
OpenBSD-based Webhosting, Mail Services, Managed Servers, ...
Unix is very simple, but it takes a genius to understand the simplicity.
(Dennis Ritchie)



Re: Gigabit Firewall NIC Interrupt Performance Problem

2005-06-07 Thread Tony Sarendal
On Tuesday 07 June 2005 22:39, Sean Knox wrote:
 Tony Sarendal wrote:
 On Tuesday 07 June 2005 20:17, Sean Knox wrote:
 I installed the NIC to the shared PCI slot and it has helped, but not
  as much as I expected. Now that all NICs are sharing an IRQ, interrupt
  usage has dropped from ~90% to ~70%. I'm pushing about 25 kb/s
  across two NICs, which makes me wonder the max throughput I can expect
  on a firewall on these Intel boxes.
 
 What is that in packets per second ?
 
 Ingress is 16255 packets/sec and egress is 18032 packets/sec.
 
  16k+18k pps at 70% interrupt cpu ? On a modern PC ?
  That sounds disapointing to say the least.
 
  I checked one of my ancient 600Mhz P3 with a four port dc, it's doing
  15k+15k at 33% interrupt cpu. I dug through old emails and found that an
  old firewall I had with Athlon850MHz and one ti (netgear) doing 26k+26k
  on it's vlan trunk at 15% interrupt cpu.
 
  Please tell me your box is an old piece of junk like my boxes.

 Nope-- it's a Supermicro 6023P-8
 (http://supermicro.com/products/system/2U/6023/SYS-6023P-8.cfm). Intel
 Xeon 2.4, 533mhz bus, onboard dual Intel 82546EB gige nics, 133mhz
 PCI-X, etc. etc. I'm running a snapshot from June 3 and as far as I can
 tell, apm is not enabled (did a dmesg|grep apm).

 Sean

I would expect a box with those specs to be able to handle 40kpps without 
breaking a sweat.

-- 
---
Tony Sarendal - [EMAIL PROTECTED]
IP/Unix
-= The scorpion replied,
I couldn't help it, it's my nature =-



Re: serial console weirdness after kernel recompile

2005-06-07 Thread Olivier Mehani
On Tue, 07 Jun 2005 23:02:32 +0100
Stuart Henderson [EMAIL PROTECTED] wrote:

  Now that I'm booting my new kernel, I can see the bootloader output
  correctly (stty com0 19200 AND set tty com0 in boot.conf) but then I
  only get garbage (as if the terminal speed wasn't correct) while the
  kernel boots. I get back to readable messages when init takes
  control.

 option PCCOMCONSOLE
 option CONSPEED=19200

This doesn't change anything... :-/

--
Olivier Mehani [EMAIL PROTECTED]
PGP fingerprint: 3720 A1F7 1367 9FA3 C654  6DFB 6845 4071 E346 2FD1

[demime 1.01d removed an attachment of type application/pgp-signature]



Re: [slightly OT] Zaurus -- to buy or not to buy?

2005-06-07 Thread Matthias Kilian
On Tue, May 31, 2005 at 03:46:54PM -0600, Chris Kuethe wrote:
 A make build takes about 30 hours with nfs mounted object and
 source. I have yet to try hitting the microdrive, but with a naive
 test (2 instances of dd running in parallel) the microdrive seems to
 be good for at least 3.5MB/s (versus the 1.1MB/s of my CF ne2000 card)

FYI: make build (not counting make obj or compiling the kernel)
with everything on the microdrive (softdeps enabled) took a little
bit more than 23 hours.

Ciao,
Kili



Re: Gigabit Firewall NIC Interrupt Performance Problem

2005-06-07 Thread Sean Knox

Tony Sarendal wrote:


Nope-- it's a Supermicro 6023P-8
(http://supermicro.com/products/system/2U/6023/SYS-6023P-8.cfm). Intel
Xeon 2.4, 533mhz bus, onboard dual Intel 82546EB gige nics, 133mhz
PCI-X, etc. etc. I'm running a snapshot from June 3 and as far as I can
tell, apm is not enabled (did a dmesg|grep apm).



I would expect a box with those specs to be able to handle 40kpps without 
breaking a sweat.


Yeah, so did I. I hope someone can chime in with some possible causes. 
Thanks for the info so far.


sk



Re: serial console weirdness after kernel recompile

2005-06-07 Thread Stuart Henderson

--On 08 June 2005 01:10 +0200, Olivier Mehani wrote:


On Tue, 07 Jun 2005 23:02:32 +0100
Stuart Henderson [EMAIL PROTECTED] wrote:


 Now that I'm booting my new kernel, I can see the bootloader output
 correctly (stty com0 19200 AND set tty com0 in boot.conf) but then
 I only get garbage (as if the terminal speed wasn't correct) while
 the kernel boots. I get back to readable messages when init takes
 control.

option PCCOMCONSOLE
option CONSPEED=19200


This doesn't change anything... :-/


Odd, I recently removed those lines from my flashboot config when I 
moved the few consoles I still had at 19200 back to 9600, which did 
change things for me.


You could maybe try toggling 'ConLock' in comBIOS, I don't hold out 
much hope for this, but it's a quick test.


Otherwise, generic or, if you really need the extra couple of Mb (like 
maybe you're using one of the old 32mb 4511 boards) I think you're 
stuck with slogging through re-enabling lines until you find something 
that helps.




multiple Local-IDs for isakmpd

2005-06-07 Thread Tamas TEVESZ
hi,

i have a situation where a branch office with multiple,
non-overlapping, non-aggregatable local networks need to connect to
the head office, via an ipsec tunnel. of course, the security
gateway is also acting as a gateway to the internet (nat and the usual
collateral stuff), and, as a matter of fact, some of the local
networks are connected to it via openvpn (that is, it itself is a vpn
concentrator of sorts, for openvpn tunnels).

rough sketch:

  -- branch office --  | | -- head office --
   | |
172.16.187.0/24 -  | |
172.19.47.0/24   \   +---+ | | +---+
  +- |security gw| - (ipsec tun) - |security gw| - ...
192.168.114.0/24 /   ++--+ | | +---+
192.168.2.0/24  - |
  \
    (internet etc..)

it may also be the case that at the head office end, there will be
more than one hosts/networks to be accessed, this is not clarified
yet. i am not in control of the head office's concentrator, but i know
that they are using a cisco 3060.

how is this realized within isakmpd's configuration? i already have
tried putting more than one ipv4_addr_subnets into the ipsec-id
section, and even more than one ipsec-id section, but isakmpd throw
them out (not surprise).

if this cannot be realized within isakmpd, what other options do i
have? pf route-tos/reply-tos are about the only thing i can think
of... anything else?

tia,

-- 
[-]

mkdir /nonexistent



kprinter failure

2005-06-07 Thread Max M. Stalnaker
I have openbsd 3.7 release.  I have installed kde from ports.  My hp 
laserjet 5 prints a testpage from apsfilter.  Attempting to print from 
kde yields a core dump.  People have told me that it looks like a stack 
overwrite.  Core dumps occur trying to go into the print manager to set 
things up and they occur everywhere I try to do something printing 
related.  Here is the output of kprinter from a terminal window:


$ kprinter
Bus error (core dumped)
$   


Following this is a dmesg.  Please advise.





$ dmesg
OpenBSD 3.7 (GENERIC) #31: Sun Mar 20 00:42:28 MST 2005
   [EMAIL PROTECTED]:/usr/src/sys/arch/amd64/compile/GENERIC
real mem = 1543041024 (1506876K)
avail mem = 1312681984 (1281916K)
using 22937 buffers containing 154513408 bytes (150892K) of memory
mainbus0 (root)
cpu0 at mainbus0: (uniprocessor)
cpu0: AMD Athlon(tm) 64 Processor 2800+, 1808.60 MHz
cpu0: 
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,NXE,MMXX,LONG,3DNOW2,3DNOW
cpu0: 64KB 64b/line 2-way I-cache, 64KB 64b/line 2-way D-cache, 512KB 
64b/line 16-way L2 cache

cpu0: ITLB 32 4KB entries fully associative, 8 4MB entries fully associative
cpu0: DTLB 32 4KB entries fully associative, 8 4MB entries fully associative
pci0 at mainbus0 bus 0: configuration mode 1
pchb0 at pci0 dev 0 function 0 vendor VIA, unknown product 0x0204 rev 0x00
pchb1 at pci0 dev 0 function 1 vendor VIA, unknown product 0x1204 rev 0x00
pchb2 at pci0 dev 0 function 2 vendor VIA, unknown product 0x2204 rev 0x00
pchb3 at pci0 dev 0 function 3 vendor VIA, unknown product 0x3204 rev 0x00
pchb4 at pci0 dev 0 function 4 vendor VIA, unknown product 0x4204 rev 0x00
pchb5 at pci0 dev 0 function 7 vendor VIA, unknown product 0x7204 rev 0x00
ppb0 at pci0 dev 1 function 0 VIA K8HTB AGP rev 0x00
pci1 at ppb0 bus 1
vga1 at pci1 dev 0 function 0 VIA S3 Unichrome PRO IGP rev 0x01
wsdisplay0 at vga1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
pciide0 at pci0 dev 15 function 0 VIA VT8237 SATA rev 0x80: DMA
pciide0: using irq 11 for native-PCI interrupt
pciide1 at pci0 dev 15 function 1 VIA VT82C571 IDE rev 0x06:ATA133, 
channel 0 configured to compatibility, channel 1 configured to compatibility

wd0 at pciide1 channel 0 drive 0: ST380011A
wd0: 16-sector PIO, LBA48, 76318MB, 156299375 sectors
wd0(pciide1:0:0): using PIO mode 4, Ultra-DMA mode 5
atapiscsi0 at pciide1 channel 1 drive 0
scsibus0 at atapiscsi0: 2 targets
cd0 at scsibus0 targ 0 lun 0: SONY, CD-RW CRX320E, NYK5 SCSI0 5/cdrom 
removable

cd0(pciide1:1:0): using PIO mode 4, Ultra-DMA mode 2
uhci0 at pci0 dev 16 function 0 VIA VT83C572 USB rev 0x81: irq 10
usb0 at uhci0: USB revision 1.0
uhub0 at usb0
uhub0: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
uhci1 at pci0 dev 16 function 1 VIA VT83C572 USB rev 0x81: irq 10
usb1 at uhci1: USB revision 1.0
uhub1 at usb1
uhub1: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub1: 2 ports with 2 removable, self powered
uhci2 at pci0 dev 16 function 2 VIA VT83C572 USB rev 0x81: irq 5
usb2 at uhci2: USB revision 1.0
uhub2 at usb2
uhub2: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub2: 2 ports with 2 removable, self powered
uhci3 at pci0 dev 16 function 3 VIA VT83C572 USB rev 0x81: irq 5
usb3 at uhci3: USB revision 1.0
uhub3 at usb3
uhub3: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub3: 2 ports with 2 removable, self powered
ehci0 at pci0 dev 16 function 4 VIA VT6202 USB rev 0x86: irq11
ehci0: EHCI version 1.0
ehci0: companion controllers, 2 ports each: uhci0 uhci1 uhci2 uhci3
usb4 at ehci0: USB revision 2.0
uhub4 at usb4
uhub4: VIA EHCI root hub, class 9/0, rev 2.00/1.00, addr 1
uhub4: single transaction translator
uhub4: 8 ports with 8 removable, self powered
VIA VT8237 ISA rev 0x00 at pci0 dev 17 function 0 not configured
auvia0 at pci0 dev 17 function 5 VIA VT8233 AC97 rev 0x60: irq 11
ac97: codec id 0x414c4760 (Avance Logic ALC655)
audio0 at auvia0
rl0 at pci0 dev 19 function 0 Realtek 8139 rev 0x10: irq 11 address 
00:0f:ea:e8:f3:f5

rlphy0 at rl0 phy 0: RTL internal phy
pchb6 at pci0 dev 24 function 0 AMD AMD64 HyperTransport rev0x00
pchb7 at pci0 dev 24 function 1 AMD AMD64 Address Map rev 0x00
pchb8 at pci0 dev 24 function 2 AMD AMD64 DRAM Cfg rev 0x00
pchb9 at pci0 dev 24 function 3 AMD AMD64 Misc Cfg rev 0x00
isa0 at mainbus0
com0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo
com1 at isa0 port 0x2f8/8 irq 3: ns16550a, 16 byte fifo
pckbc0 at isa0 port 0x60/5
pckbd0 at pckbc0 (kbd slot)
pckbc0: using irq 1 for kbd slot
wskbd0 at pckbd0 (mux 1 ignored for console): console keyboard, using 
wsdisplay0

pms0 at pckbc0 (aux slot)
pckbc0: using irq 12 for aux slot
wsmouse0 at pms0 mux 0
pcppi0 at isa0 port 0x61
sysbeep0 at pcppi0
lpt0 at isa0 port 0x378/4 irq 7
it0 at isa0 port 0x290/8: IT87
dkcsum: wd0 matched BIOS disk 80
root on wd0a
rootdev=0x0 rrootdev=0x300 rawdev=0x302



ThinkPad x40 ath problems

2005-06-07 Thread steven n fettig
Dunno' what I'm doing wrong.  I have 3.7 installed on a ThinkPad x40 
that has:


ath0 at pci1 dev 2 function 0 Atheros AR5212 rev 0x01: irq 11
ath0: mac 80.9 phy 4.3 radio 4.6, 802.11a/b/g, WOR4W, address 
00:0e:9b:6f:4a:b0


Whenever I try to join a network via something like:

ifconfig ath0 10.2.2.33 netmask 255.255.255.0 nwid at-private

I still get:
lo0: flags=8049UP,LOOPBACK,RUNNING,MULTICAST mtu 33224
   inet 127.0.0.1 netmask 0xff00
   inet6 ::1 prefixlen 128
   inet6 fe80::1%lo0 prefixlen 64 scopeid 0x6
em0: flags=8802BROADCAST,SIMPLEX,MULTICAST mtu 1500
   address: 00:0a:e4:2d:9a:ad
   media: Ethernet autoselect
   status: no carrier
ath0: flags=8863UP,BROADCAST,NOTRAILERS,RUNNING,SIMPLEX,MULTICAST mtu 1500
   address: 00:0e:9b:6f:4a:b0
   ieee80211: nwid at-private
   media: IEEE802.11 autoselect (DS1)
   status: no network
   inet 10.2.2.34 netmask 0xff00 broadcast 10.2.2.255
   inet6 fe80::20e:9bff:fe6f:4ab0%ath0 prefixlen 64 scopeid 0x2
pflog0: flags=0 mtu 33224
pfsync0: flags=0 mtu 2020
enc0: flags=0 mtu 1536

Regardless of what I have tried - leaving nwid as default  or trying 
dhclinet ath0, it always ends in status: no network and I get nowhere. 

Below I have included my dmesg from the machine.  I didn't expect it, 
but it appears that the built in card should be supported.  Any ideas?


Thanks,
Steve Fettig

OpenBSD 3.7 (GENERIC) #50: Sun Mar 20 00:01:57 MST 2005
   [EMAIL PROTECTED]:/usr/src/sys/arch/i386/compile/GENERIC
cpu0: Intel(R) Pentium(R) M processor 1200MHz (GenuineIntel 686-class) 
598 MHz
cpu0: 
FPU,V86,DE,PSE,TSC,MSR,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,CFLUSH,ACPI,MMX,FXSR,SSE,SSE2,TM,SBF,EST,TM2
cpu0: Enhanced SpeedStep 600 MHz (956 mV): speeds: 1200, 1100, 1000, 
900, 800, 600 MHz

real mem  = 526884864 (514536K)
avail mem = 473956352 (462848K)
using 4278 buffers containing 26447872 bytes (25828K) of memory
mainbus0 (root)
bios0 at mainbus0: AT/286+(2a) BIOS, date 10/13/04, BIOS32 rev. 0 @ 0xfd740
apm0 at bios0: Power Management spec V1.2
apm0: battery life expectancy 61%
apm0: AC off, battery charge high, estimated 2:35 hours
pcibios0 at bios0: rev 2.1 @ 0xfd6d0/0x930
pcibios0: PCI IRQ Routing Table rev 1.0 @ 0xfdeb0/256 (14 entries)
pcibios0: PCI Interrupt Router at 000:31:0 (Intel 82371FB ISA rev 0x00)
pcibios0: PCI bus #2 is the last bus
bios0: ROM list: 0xc/0xc800! 0xcc800/0x1000 0xcd800/0x1000 
0xdc000/0x4000! 0xe/0x1

cpu0 at mainbus0
pci0 at mainbus0 bus 0: configuration mode 1 (no bios)
pchb0 at pci0 dev 0 function 0 Intel 82852GM Hub-PCI rev 0x02
Intel 82852GM Memory rev 0x02 at pci0 dev 0 function 1 not configured
Intel 82852GM Configuration rev 0x02 at pci0 dev 0 function 3 not 
configured
vga1 at pci0 dev 2 function 0 Intel 82852GM AGP rev 0x02: aperture at 
0xe000, size 0x800

wsdisplay0 at vga1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
Intel 82852GM AGP rev 0x02 at pci0 dev 2 function 1 not configured
uhci0 at pci0 dev 29 function 0 Intel 82801DB USB rev 0x01: irq 11
usb0 at uhci0: USB revision 1.0
uhub0 at usb0
uhub0: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
uhci1 at pci0 dev 29 function 1 Intel 82801DB USB rev 0x01: irq 11
usb1 at uhci1: USB revision 1.0
uhub1 at usb1
uhub1: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub1: 2 ports with 2 removable, self powered
uhci2 at pci0 dev 29 function 2 Intel 82801DB USB rev 0x01: irq 11
usb2 at uhci2: USB revision 1.0
uhub2 at usb2
uhub2: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub2: 2 ports with 2 removable, self powered
ehci0 at pci0 dev 29 function 7 Intel 82801DB USB rev 0x01: irq 11
ehci0: EHCI version 1.0
ehci0: companion controllers, 2 ports each: uhci0 uhci1 uhci2
usb3 at ehci0: USB revision 2.0
uhub3 at usb3
uhub3: Intel EHCI root hub, class 9/0, rev 2.00/1.00, addr 1
uhub3: single transaction translator
uhub3: 6 ports with 6 removable, self powered
ppb0 at pci0 dev 30 function 0 Intel 82801BAM Hub-to-PCI rev 0x81
pci1 at ppb0 bus 1
cbb0 at pci1 dev 0 function 0 Ricoh 5C476 CardBus rev 0x8d: irq 11
vendor Ricoh, unknown product 0x0822 (class system unknown subclass 
0x05, rev 0x13) at pci1 dev 0 function 1 not configured
em0 at pci1 dev 1 function 0 Intel PRO/1000MT Mobile (82541EI) rev 
0x00: irq 11, address: 00:0a:e4:2d:9a:ad

ath0 at pci1 dev 2 function 0 Atheros AR5212 rev 0x01: irq 11
ath0: mac 80.9 phy 4.3 radio 4.6, 802.11a/b/g, WOR4W, address 
00:0e:9b:6f:4a:b0

gpio at ath0 not configured
cardslot0 at cbb0 slot 0 flags 0
cardbus0 at cardslot0: bus 2 device 0 cacheline 0x0, lattimer 0xb0
pcmcia0 at cardslot0
ichpcib0 at pci0 dev 31 function 0 Intel 82801DBM LPC rev 0x01
pciide0 at pci0 dev 31 function 1 Intel 82801DBM IDE rev 0x01: DMA, 
channel 0 configured to compatibility, channel 1 configured to compatibility

wd0 at pciide0 channel 0 drive 0: HITACHI_DK13FA-40B
wd0: 16-sector PIO, LBA, 38154MB, 78140160 sectors
wd0(pciide0:0:0): 

Re: ssid vs. nwid in ifconfig

2005-06-07 Thread Walter Goulet

Hi,

I'm including a patch to ifconfig(8) to indicate that nwid is synonymous 
with ESSID.


Thanks,
Walter

Index: ifconfig.8
===
RCS file: /cvs/src/sbin/ifconfig/ifconfig.8,v
retrieving revision 1.107
diff -u -r1.107 ifconfig.8
--- ifconfig.8  7 Jun 2005 23:12:17 -   1.107
+++ ifconfig.8  8 Jun 2005 03:39:59 -
@@ -530,6 +530,7 @@
 .It Cm nwid Ar id
 (IEEE 802.11 devices only)
 Configure network ID for IEEE 802.11-based wireless network interfaces.
+Note that network ID is synonymous with extended service set ID (ESSID).
 The
 .Ar id
 can either be any text string up to 32 characters in length,


[EMAIL PROTECTED] wrote:

hi,

On Tue, Jun 07, 2005 at 02:33:35AM -0500, Walter Goulet wrote:

One minor point that befuddled me at first was the fact that ifconfig 
and wicontrol use different terms when referring to the SSID. 
Specifically, if you use ifconfig to set the SSID, you have to use the 
'nwid' option. However, if you use wicontrol, the man page has a 
seperate option 'q' used to set the SSID.





please don't use wicontrol anymore. most of it's functionality except
some dubious buttons have been added to ifconfig.


- Change ifconfig's interface to replace 'ssid' with 'nwid' at the risk 
of breaking existing scripts etc (Note that NetBSD changed 'nwid' to 
'ssid' to resolve this issue).



breaking scripts for nonsense? uhh...

ssid is a wrong, but commonly used, term and the essid (extended
service set id) is the IEEE name for the network id. we're fine with
nwid because it's a generic name which also applies to non-802.11
protocols and it's less cryptic.


- Change ifconfig's manpage to indicate that nwid is really the same as 
the ssid.





you mean the ESSID ;-). a hint in ifconfig(8) is probably the better
idea.


I personally think the second option is the better option; I'd be glad 
to submit a patch once I finish building userland. I'd like to get some 
opinions before I move forward with this effort.





no. we won't replace nwid with neither ssid nor essid. same for nwkey.



Thanks,
Walter



reyk




Re: ThinkPad x40 ath problems

2005-06-07 Thread Andreas Bihlmaier
 ath0 at pci1 dev 2 function 0 Atheros AR5212 rev 0x01: irq 11
 ath0: mac 80.9 phy 4.3 radio 4.6, 802.11a/b/g, WOR4W, address 
 00:0e:9b:6f:4a:b0

I got the same card in my x40 and I was amazed that it did work so well
actually ( thanks to all the guys having made an effort for all the new
wirless support in 3.7).

 Whenever I try to join a network via something like:
 
 ifconfig ath0 10.2.2.33 netmask 255.255.255.0 nwid at-private

I think it is a problem with the media not getting recognized
correctly.

media: IEEE802.11 autoselect (DS1)

Note: 802.11a/g do NOT work ! You will only be able to use 802.11b
(speed 11Mbit at the most) .

I use ( in /etc/hostname.ath0 ):

inet 192.168.123.21 255.255.255.0 NONE media autoselect mode 11b nwid
foobar nwkey 0xdeadbeef99 -powersave chan 6 down
might want to remove this ---^


The important thing for mine to work was the 
media autoselect mode 11b

Hope yours will work as beautiful as mine now does.

Bye,
ahb



Re: ThinkPad x40 ath problems

2005-06-07 Thread Damien Miller

steven n fettig wrote:
Dunno' what I'm doing wrong.  I have 3.7 installed on a ThinkPad x40 
that has:


ath0 at pci1 dev 2 function 0 Atheros AR5212 rev 0x01: irq 11
ath0: mac 80.9 phy 4.3 radio 4.6, 802.11a/b/g, WOR4W, address 
00:0e:9b:6f:4a:b0


Mine works fine with -current:


ath0 at pci1 dev 2 function 0 Atheros AR5212 (IBM MiniPCI) rev 0x01: irq 11
ath0: AR5212 5.6 phy 4.1 rf5111 1.7 rf2111 2.3, WOR1W, address 00:...


-d



Re: Crypto cards

2005-06-07 Thread Theo de Raadt
 Would I get any benefit from a crypto accelerator card when using scp,
 OpenVPN or vsftpd compiled with SSL?

From things using the OpenSSL RSA/DSA/DH functions, or from block
ciphers using the EVP interfaces of OpenSSL.