powernow

2005-10-27 Thread Ted Unangst
there is a diff from gordon klok in the snapshots that should improve
support for k7 and k8 family powernow (cool and quiet).  i'd like to
know where/if it works, what messages get printed, and if hw.setperf
does anything useful.  md5 -t with setperf=0 and 100 would be nice.



Re: know any neat tricks for 2 * dhclient?

2005-10-27 Thread Sebastian Benoit
Graham Toal([EMAIL PROTECTED]) on 2005.10.26 23:52:28 +:
 They're not both connected to a DHCP server.  The DHCP server is
 only connected to one of the NICs.  Nevertheless I want both NICs
 to get an IP from that DHCP server.  I thought I could do it because
 they were bridged NICs.  I was wrong.

  man dhclient

 You must have the Berkeley Packet Filter (BPF) configured in your
 kernel.  dhclient requires at least one /dev/bpf* file for each
 broadcast network interface that is attached to your system.  See
 bpf(4) for more information.

  man 4 bpf

 The Berkeley Packet Filter provides a raw interface to data link layers
 in a protocol-independent fashion.  All packets on the network, even
 those destined for other hosts, are accessible through this mechanism.

As you found out, dhclient sends its DHCPDISCOVER-message out through the
interface on which it is run. This message wont get routed to some other
network. When dhclient starts there is no knowledge of network other than
your local link layer on the interface you tell dhclient to use.

Now, your bridge should bridge this dhcp-packet from one interface to the
other? That doesn't work: its sending this packet out through that
interface, it can't send it out on all other interfaces.

/Benno
--
Sebastian Benoit [EMAIL PROTECTED]
My mail is GnuPG signed -- Unsigned ones are bogus -- http://www.gnupg.org/
GnuPG 0xD777DBA7 2003-09-10 D02B D0E0 3790 1AA1 DA3A  B508 BF48 87BF D777
DBA7

If we define a religion to be a system of thought that contains unprovable
statements, so it contains an element of faith, then Gvdel has taught us
that not only is mathematics a religion but it is the only religion able to
prove itself to be one. -- John Barrow, Pi in the Sky, 1992

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



Re: powernow

2005-10-27 Thread Frank Denis \(Jedi/Sector One\)

On Wed, Oct 26, 2005 at 11:16:31PM -0700, Ted Unangst wrote:

there is a diff from gordon klok in the snapshots that should improve
support for k7 and k8 family powernow (cool and quiet).  i'd like to
know where/if it works, what messages get printed, and if hw.setperf
does anything useful.  md5 -t with setperf=0 and 100 would be nice.


 Changing hw.setperf totally freezes the system. Hardware is a Biostar
iDEQ 220K (VIA VT8237, AMD64 3400).

dmesg follows :

OpenBSD 3.8-current (GENERIC) #210: Tue Oct 25 23:07:20 MDT 2005
   [EMAIL PROTECTED]:/usr/src/sys/arch/i386/compile/GENERIC
cpu0: AMD Athlon(tm) 64 Processor 3400+ (AuthenticAMD 686-class, 512KB L2 
cache) 2.40 GHz
cpu0: 
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2
cpu0: AMD Powernow: TS FID VID TTP
cpu0: AMD Cool`n'Quiet K8: 0 available states
real mem  = 535273472 (522728K)
avail mem = 481550336 (470264K)
using 4278 buffers containing 26865664 bytes (26236K) of memory
mainbus0 (root)
bios0 at mainbus0: AT/286+(c5) BIOS, date 07/27/05, BIOS32 rev. 0 @ 0xf9fa0
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/0xc834
pcibios0: PCI IRQ Routing Table rev 1.0 @ 0xfc790/160 (8 entries)
pcibios0: PCI Exclusive IRQs: 3 5 10 12
pcibios0: PCI Interrupt Router at 000:17:0 (VIA VT82C596A ISA rev 0x00)
pcibios0: PCI bus #1 is the last bus
bios0: ROM list: 0xc/0x1 0xd/0x1000
cpu0 at mainbus0
pci0 at mainbus0 bus 0: configuration mode 1 (no bios)
pchb0 at pci0 dev 0 function 0 VIA K8M800 Host rev 0x00
pchb1 at pci0 dev 0 function 1 VIA K8M800 Host rev 0x00
pchb2 at pci0 dev 0 function 2 VIA K8M800 Host rev 0x00
pchb3 at pci0 dev 0 function 3 VIA K8M400 Host rev 0x00
pchb4 at pci0 dev 0 function 4 VIA K8M800 Host rev 0x00
pchb5 at pci0 dev 0 function 7 VIA K8M800 Host 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 ATI Radeon VE QY rev 0x00
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
wi0 at pci0 dev 8 function 0 Intersil PRISM2.5 rev 0x01: irq 5
wi0: PRISM2.5 ISL3874A(Mini-PCI) (0x8013), Firmware 1.1.1 (primary), 1.7.4 
(station), address 00:09:5b:41:d8:19
VIA VT6306 FireWire rev 0x80 at pci0 dev 11 function 0 not configured
rl0 at pci0 dev 13 function 0 Realtek 8139 rev 0x10: irq 12, address 
00:e0:4c:da:e1:ab
rlphy0 at rl0 phy 0: RTL internal phy
pciide0 at pci0 dev 15 function 0 VIA VT6420 SATA rev 0x80: DMA
pciide0: using irq 10 for native-PCI interrupt
wd0 at pciide0 channel 0 drive 0: HDS722525VLSA80
wd0: 16-sector PIO, LBA48, 238475MB, 488397168 sectors
wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 5
pciide1 at pci0 dev 15 function 1 VIA VT82C571 IDE rev 0x06: DMA, channel 0 
configured to compatibility, channel 1 configured to compatibility
wd1 at pciide1 channel 0 drive 0: IBM-DJNA-371800
wd1: 16-sector PIO, LBA, 17206MB, 35239680 sectors
wd2 at pciide1 channel 0 drive 1: IBM-DTLA-307045
wd2: 16-sector PIO, LBA, 43979MB, 90069840 sectors
wd1(pciide1:0:0): using PIO mode 4, DMA mode 2
wd2(pciide1:0:1): using PIO mode 4, DMA mode 2
atapiscsi0 at pciide1 channel 1 drive 0
scsibus0 at atapiscsi0: 2 targets
cd0 at scsibus0 targ 0 lun 0: TOSHIBA, DVD-ROM SD-M1612, 1004 SCSI0 5/cdrom 
removable
cd0(pciide1:1:0): using PIO mode 4, DMA mode 2
uhci0 at pci0 dev 16 function 0 VIA VT83C572 USB rev 0x81: irq 5
usb0 at uhci0: USB revision 1.0
uhub0 at usb0
uhub0: VIA UHCI root hub, 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 5
usb1 at uhci1: USB revision 1.0
uhub1 at usb1
uhub1: VIA UHCI root hub, 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 10
usb2 at uhci2: USB revision 1.0
uhub2 at usb2
uhub2: VIA UHCI root hub, 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 10
usb3 at uhci3: USB revision 1.0
uhub3 at usb3
uhub3: VIA UHCI root hub, 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: irq 3
usb4 at ehci0: USB revision 2.0
uhub4 at usb4
uhub4: VIA EHCI root hub, rev 2.00/1.00, addr 1
uhub4: 8 ports with 8 removable, self powered
pcib0 at pci0 dev 17 function 0 VIA VT8237 ISA rev 0x00
auvia0 at pci0 dev 17 function 5 VIA VT8233 AC97 rev 0x60: irq 3
ac97: codec id 0x414c4760 (Avance Logic ALC655)
audio0 at auvia0
pchb6 at pci0 dev 24 function 0 AMD AMD64 HyperTransport rev 0x00
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 pcib0
isadma0 at isa0
pckbc0 at isa0 port 0x60/5
pckbd0 at pckbc0 (kbd slot)
pckbc0: 

Re: isakmpd - Single Phase 1 - Multiple Phase 2 Address

2005-10-27 Thread Runo Forrisdahl
On Wed, Oct 26, 2005 at 02:40:52PM -0400, Roy Morris wrote:
| I have been reading through the archives but have not found a reliable answer
| yet. I have recently been converting vpns from manual to isakmpd, with one
| of the other endpoints being a Cisco box. I can bring up a single subnet/IP 
| no problem but if I try to add another phase2 connection it fails. 
| 
| Does anyone have a config showing this setup? 

This config works for me after posting a similar question just a few days ago.

[Phase 1]
192.168.15.1= cisco

[Phase 2]
Connections=tunnel-opengw-cisco,tunnel-opengw-cisco2

[peer-opengw]
ID-type=IPV4_ADDR
Address=192.168.20.13

[peer-cisco]
ID-type=IPV4_ADDR
Address=192.168.15.1

[net-opengw]
ID-type=IPV4_ADDR_SUBNET
Network=172.16.15.0
Netmask=255.255.255.0

[net-cisco]
ID-type=IPV4_ADDR_SUBNET
Network=10.0.0.0
Netmask=255.255.254.0

[net-cisco2]
ID-type=IPV4_ADDR_SUBNET
Network=10.0.2.0
Netmask=255.255.254.0

[cisco]
Phase=  1
Transport=  udp
Local-address=  192.168.20.13
Address=192.168.15.1
Configuration=  main-mode
Authentication= Hemmelig

[opengw-net]
Phase=  1
Network=172.16.15.0
Netmask=255.255.255.0
Configuration=  main-mode

[cisco-net]
Phase=  1
Network=10.0.0.0
Netmask=255.255.254.0
Configuration=  main-mode

[cisco2-net]
Phase=  1
Network=10.0.2.0
Netmask=255.255.254.0
Configuration=  main-mode

[tunnel-opengw-cisco]
Phase=  2
ISAKMP-peer=cisco
Configuration=  quick-mode
Local-ID=   net-opengw
Remote-ID=  net-cisco

[tunnel-opengw-cisco2]
Phase=  2
ISAKMP-peer=cisco
Configuration=  quick-mode
Local-ID=   net-opengw
Remote-ID=  net-cisco2

[rsa-main-mode]
DOI=IPSEC
EXCHANGE_TYPE=  ID_PROT
Transforms= 3DES-SHA-RSA_SIG

[main-mode]
DOI=IPSEC
EXCHANGE_TYPE=  ID_PROT
Transforms= 3DES-SHA

[quick-mode]
DOI=IPSEC
EXCHANGE_TYPE=  QUICK_MODE
Suites= QM-ESP-3DES-SHA-SUITE

-- 
Runo Fxrrisdahl -
TeleComputing IS http://www.telecomputing.no/



Re: isakmpd - Single Phase 1 - Multiple Phase 2 Address

2005-10-27 Thread Brian A. Seklecki
This is confirmed to work?  I suppose that would resolve part of my
problem with 4314/system 

~BAS

On Thu, 2005-10-27 at 05:02, Runo Forrisdahl wrote:
 On Wed, Oct 26, 2005 at 02:40:52PM -0400, Roy Morris wrote:
 | I have been reading through the archives but have not found a reliable 
 answer
 | yet. I have recently been converting vpns from manual to isakmpd, with one
 | of the other endpoints being a Cisco box. I can bring up a single subnet/IP 
 | no problem but if I try to add another phase2 connection it fails. 
 | 
 | Does anyone have a config showing this setup? 
 
 This config works for me after posting a similar question just a few days ago.
 
 [Phase 1]
 192.168.15.1= cisco
 
 [Phase 2]
 Connections=tunnel-opengw-cisco,tunnel-opengw-cisco2
 
 [peer-opengw]
 ID-type=IPV4_ADDR
 Address=192.168.20.13
 
 [peer-cisco]
 ID-type=IPV4_ADDR
 Address=192.168.15.1
 
 [net-opengw]
 ID-type=IPV4_ADDR_SUBNET
 Network=172.16.15.0
 Netmask=255.255.255.0
 
 [net-cisco]
 ID-type=IPV4_ADDR_SUBNET
 Network=10.0.0.0
 Netmask=255.255.254.0
 
 [net-cisco2]
 ID-type=IPV4_ADDR_SUBNET
 Network=10.0.2.0
 Netmask=255.255.254.0
 
 [cisco]
 Phase=  1
 Transport=  udp
 Local-address=  192.168.20.13
 Address=192.168.15.1
 Configuration=  main-mode
 Authentication= Hemmelig
 
 [opengw-net]
 Phase=  1
 Network=172.16.15.0
 Netmask=255.255.255.0
 Configuration=  main-mode
 
 [cisco-net]
 Phase=  1
 Network=10.0.0.0
 Netmask=255.255.254.0
 Configuration=  main-mode
 
 [cisco2-net]
 Phase=  1
 Network=10.0.2.0
 Netmask=255.255.254.0
 Configuration=  main-mode
 
 [tunnel-opengw-cisco]
 Phase=  2
 ISAKMP-peer=cisco
 Configuration=  quick-mode
 Local-ID=   net-opengw
 Remote-ID=  net-cisco
 
 [tunnel-opengw-cisco2]
 Phase=  2
 ISAKMP-peer=cisco
 Configuration=  quick-mode
 Local-ID=   net-opengw
 Remote-ID=  net-cisco2
 
 [rsa-main-mode]
 DOI=IPSEC
 EXCHANGE_TYPE=  ID_PROT
 Transforms= 3DES-SHA-RSA_SIG
 
 [main-mode]
 DOI=IPSEC
 EXCHANGE_TYPE=  ID_PROT
 Transforms= 3DES-SHA
 
 [quick-mode]
 DOI=IPSEC
 EXCHANGE_TYPE=  QUICK_MODE
 Suites= QM-ESP-3DES-SHA-SUITE



Re: device timeout when mounting cd

2005-10-27 Thread Stephen Nelson
I would really appreciate help with this. I would like to use this 
machine to build a diskless firewall, but without being able to boot 
from a CD I have problems.


I have checked and double-checked settings. I have checked that my 
chipset (Intel 82801EB) is supported (it is) and I have checked as best 
I can that I am not making a simple mistake in configuration. I have 
searched mailing lists for similar problems and drawn a blank.


I have tested this hardware with Gentoo Linux and with Windows so I am 
sure it's not a hardware issue. Besides, I can boot from a cd without a 
problem, I just can't mount it once the kernel has loaded.


Should I file a bug report?

Is there any way I can get the device to fall back to a legacy mode that 
would allow me to get further?


I will try OpenBSD-current tomorrow to see if this problem is fixed 
there, but would still appreciate any help or suggestions.


Thanks,

Stephen Nelson

When I attempt to mount a cd or read the disklabel, I get this error 
from the kernel:


Oct 26 10:08:59 develop /bsd: cd0(pciide0:0:0): timeout
Oct 26 10:08:59 develop /bsd: cd0(pciide0:0:0): timeout
Oct 26 10:08:59 develop /bsd:   type: atapi
Oct 26 10:08:59 develop /bsd:   type: atapi
Oct 26 10:08:59 develop /bsd:   c_bcount: 0
Oct 26 10:08:59 develop /bsd:   c_bcount: 0
Oct 26 10:08:59 develop /bsd:   c_skip: 0
Oct 26 10:08:59 develop /bsd:   c_skip: 0
Oct 26 10:09:09 develop /bsd: cd0(pciide0:0:0): timeout
Oct 26 10:09:09 develop /bsd: cd0(pciide0:0:0): timeout
Oct 26 10:09:09 develop /bsd:   type: atapi
Oct 26 10:09:09 develop /bsd:   type: atapi
Oct 26 10:09:09 develop /bsd:   c_bcount: 32
Oct 26 10:09:09 develop /bsd:   c_bcount: 32
Oct 26 10:09:10 develop /bsd:   c_skip: 0
Oct 26 10:09:10 develop /bsd:   c_skip: 0
Oct 26 10:09:10 develop /bsd: pciide0:0:0: device timeout, 
c_bcount=32, c_skip=0, status=0x58DRDY,DSC,DRQ, ireason=0x2
Oct 26 10:09:10 develop /bsd: pciide0:0:0: device timeout, 
c_bcount=32, c_skip=0, status=0x58DRDY,DSC,DRQ, ireason=0x2

Oct 26 10:09:15 develop /bsd: cd0(pciide0:0:0): timeout
Oct 26 10:09:15 develop /bsd: cd0(pciide0:0:0): timeout
Oct 26 10:09:15 develop /bsd:   type: atapi
Oct 26 10:09:15 develop /bsd:   type: atapi
Oct 26 10:09:15 develop /bsd:   c_bcount: 0
Oct 26 10:09:15 develop /bsd:   c_bcount: 0
Oct 26 10:09:15 develop /bsd:   c_skip: 0
Oct 26 10:09:15 develop /bsd:   c_skip: 0
Oct 26 10:09:19 develop /bsd: cd0(pciide0:0:0): timeout
Oct 26 10:09:19 develop /bsd: cd0(pciide0:0:0): timeout
Oct 26 10:09:19 develop /bsd:   type: atapi
Oct 26 10:09:19 develop /bsd:   type: atapi
Oct 26 10:09:19 develop /bsd:   c_bcount: 0
Oct 26 10:09:19 develop /bsd:   c_bcount: 0
Oct 26 10:09:19 develop /bsd:   c_skip: 0
Oct 26 10:09:19 develop /bsd:   c_skip: 0

This message repeats for about 10 minutes, at which point the kernel 
gives up and I get a prompt.

This happens whenever I try to mount cd0[a,c] or 'disklabel cd0'.

I can't find anything relevant in the forums - the closest I got was a 
message about problems with hardware using the le device.
The machine is an IBM xSeries 336 with a Xeon processor. I'm using the 
generic amd64 kernel. I can boot from cd.

Anyone have any idea what the problem could be?

dmesg output: (not including error messages as above)

OpenBSD 3.7-stable (GENERIC) #1: Thu Oct 20 15:48:27 NZDT 2005
   [EMAIL PROTECTED]:/usr/src/sys/arch/amd64/compile/GENERIC
real mem = 1073123328 (1047972K)
avail mem = 909221888 (887912K)
using 22937 buffers containing 10752 bytes (105000K) of memory
mainbus0 (root)
cpu0 at mainbus0: (uniprocessor)
cpu0: Intel(R) Xeon(TM) CPU 3.00GHz, 3000.60 MHz
cpu0: 
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,LONG 


cpu0: 2MB 64b/line 8-way L2 cache
pci0 at mainbus0 bus 0: configuration mode 1
pchb0 at pci0 dev 0 function 0 Intel E7710 SMCH rev 0x0c
Intel E7710 MCH ERR rev 0x0c at pci0 dev 0 function 1 not configured
ppb0 at pci0 dev 2 function 0 Intel E7710 MCH PCIE rev 0x0c
pci1 at ppb0 bus 2
ppb1 at pci0 dev 4 function 0 Intel E7710 MCH PCIE rev 0x0c
pci2 at ppb1 bus 3
ppb2 at pci2 dev 0 function 0 Intel PCIE-PCIE rev 0x09
pci3 at ppb2 bus 4
mpt0 at pci3 dev 1 function 0 Symbios Logic 53c1030 rev 0x08: irq 11
mpt0: sending FW Upload request to IOC (size: 36, img size: 69956)
mpt0: IM support: 4
scsibus0 at mpt0: 16 targets
sd0 at scsibus0 targ 0 lun 0: LSILOGIC, 1030 IM, 1000 SCSI2 0/direct 
fixed
sd0: 70006MB, 70006 cyl, 16 head, 128 sec, 512 bytes/sec, 143372288 
sec total

mpt0: target 0 Asynchronous at 0MHz width 8bit offset 0 QAS 0 DT 0 IU 0
ppb3 at pci2 dev 0 function 2 Intel PCIE-PCIE rev 0x09
pci4 at ppb3 bus 5
ppb4 at pci0 dev 6 function 0 Intel E7710 MCH PCIE rev 0x0c
pci5 at ppb4 bus 6
bge0 at pci5 dev 0 function 0 Broadcom BCM5721 rev 0x11, unknown 
BCM5750 (0x4101): irq 11 address 00:14:5e:30:3e:fc

brgphy0 at bge0 phy 1: BCM5750 10/100/1000baseT PHY, rev. 0
ppb5 at pci0 dev 7 function 0 Intel E7710 MCH PCIE 

Re: isakmpd - Single Phase 1 - Multiple Phase 2 Address

2005-10-27 Thread Hans-Joerg Hoexer
Hi,

On Wed, Oct 26, 2005 at 02:40:52PM -0400, Roy Morris wrote:
 I have been reading through the archives but have not found a reliable answer
 yet. I have recently been converting vpns from manual to isakmpd, with one
 of the other endpoints being a Cisco box. I can bring up a single subnet/IP 
 no problem but if I try to add another phase2 connection it fails. 
...

ok, maybe I'm missing the point here or am not fully understanding
your problem, but something like below works for me.  A single phase
1 SA is used to negotiate different phase 2 SAs.  Note, both sides
are openbsd boxes.

...
[IPsec-vpn7-vpn8]
Phase=  2
ISAKMP-peer=ISAKMP-peer-theothers
Configuration=  Default-quick-mode
Local-ID=   Net-vpn7
Remote-ID=  Net-vpn8

[IPsec-vpn9-vpn10]
Phase=  2
ISAKMP-peer=ISAKMP-peer-theothers
Configuration=  Default-quick-mode
Local-ID=   Net-vpn9
Remote-ID=  Net-vpn10

[Net-vpn7]
ID-type=IPV4_ADDR_SUBNET
Network=192.168.7.0
Netmask=255.255.255.0

[Net-vpn8]
ID-type=IPV4_ADDR_SUBNET
Network=192.168.8.0
Netmask=255.255.255.0

[Net-vpn9]
ID-type=IPV4_ADDR_SUBNET
Network=192.168.9.0
Netmask=255.255.255.0

[Net-vpn10]
ID-type=IPV4_ADDR_SUBNET
Network=192.168.10.0
Netmask=255.255.255.0
...



Re: IBM Thinkpad X41 report?

2005-10-27 Thread Dimitry Andric
On 2005-10-26 at 23:52:52 Mattieu Baptiste wrote:
 just resumed my work on i386-laptop.html after vacation, and I noticed
 we don't have any reports on the IBM/Lenovo Thinkpad X41.
 It's not an X41, but I want to give some feedback on new IBM/Lenevo T
 Series (T43 2668 in my case).

Just FYI, see my previous message about the X41 on the misc@ list.
Basic functionality works, but some things are still a bit quirky.

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



useradd password length

2005-10-27 Thread Isak Lyberth

I want to change the lenght of password requrement, where do i do that?
for this setup i do not need complex passwords, and i need to automate 
the process to be able hand over the process of adding users.


Regards Isak



Re: useradd password length

2005-10-27 Thread Stuart Henderson

--On 27 October 2005 15:14 +0200, Isak Lyberth wrote:


I want to change the lenght of password requrement, where do i do
that?


Password controls are in login.conf(5). You can create a class with 
shell forced to 'nologin' and just relax password quality requirements 
for those users, if you want to make sure that you're not giving away 
shells with easily-cracked passwords.


Going the other way, you can also subject passwords to enforce that 
they're of good quality using a separate program (e.g. 
/usr/ports/security/passwdqc),




Re: know any neat tricks for 2 * dhclient?

2005-10-27 Thread Graham Toal
(description of why it can't work deleted for brevity)

 Now, your bridge should bridge this dhcp-packet from one interface to the
 other? That doesn't work: its sending this packet out through that
 interface, it can't send it out on all other interfaces.

So there's no solution?  I see now that the packet flow doesn't support it,
but logically it  does make sense to want an IP from that DHCP server
to be given to the other interface, after all any systems hanging off that
interface *will* get an address from the DHCP server on the other
side of the bridge, so why shouldn't I?  There has to be some way
around it?  Some pf re-routing trick?  Is dhrelay/dhcprelay my only option?


Graham



backup utilities: boxbackup?

2005-10-27 Thread dick
i'm currently using bzip2-ed dumps to backup my machines and i
wonder if there is a better way to do it. by better i mean
more secure and more automated than adding cron jobs.

i am interested in encrypted backups, as i would prefer to
have non-hijackable backups. i did see
http://www.fluffy.co.uk/boxbackup/ and a couple posts about it
here on [EMAIL PROTECTED]

can anybody vouch for the stability/reliability of this backup
solution (besides the dev, ;) )?

cheers,
jake



Re: know any neat tricks for 2 * dhclient?

2005-10-27 Thread stan
On Wed, Oct 26, 2005 at 11:42:43AM -0500, Graham Toal wrote:
 I wanted to set up a system which has two ether cards (it's part of
 a transparent bridge so it'll be inline with someone's connection)
 such that it'll pick up a DHCP address on *both* cards ... the trick
 comes from not knowing in advance whether the DHCP server will be
 on the inside connection or the net-facing one.  (i.e. if the
 bridge is deployed near the network edge, the DHCP server is inside;
 but if it is deployed immediately in front of a single server, then
 it will see DHCP facing outwards).
 
Why have IP addresses at all on a bridge? Or at most just one side for
remote access.

-- 
U.S. Encouraged by Vietnam Vote - Officials Cite 83% Turnout Despite Vietcong 
Terror 
- New York Times 9/3/1967



Re: know any neat tricks for 2 * dhclient?

2005-10-27 Thread stan
On Wed, Oct 26, 2005 at 04:16:53PM -0500, Graham Toal wrote:
  Assuming that the problem turns out to be that the dhcp request for
  fxp1 is always routed out of fxp1 (makes sense, right?) what can I do
  to have it routed out the other interface via bridging?  (Remembering
  that the solution has to work symmetrically, if in some other deployment
  it is the other of the two interfaces which can't see the DHCP server...)
 
 Confirmed that this is the problem.  Two ways: 1) I changed /etc/netstart
 to bring up the bridge before it configures the interfaces.  Dirty, but
 it works - and the internal interface still didn't manage to talk to
 the dhcp server; and 2) I manually killed the dhclient process for fxp1
 once everything was running smoothly from a clean boot, and manually
 started dhclient -d fxp1 - and again, it did not talk to the dhcp
 server even though the bridge was already running by that point for sure..
 
 I could force the traffic from one interface to the other with pf
 and a route-to option, but only if I know which interface the dhcp
 server is connected to.  Since I cannot make that assumption (it
 depends on where in the network the bridge is inserted) I can't see
 a solution.  Well, short of some really hacky code to scan the output
 of ifconfig -A, and rewrite a new version of pf.conf on the fly.
 
 Can anyone think of some ingenious rule for pf that will get me what
 I need?  This is the last significant stumbling block in a long
 project to build a completely idiot-proof spam filter that works
 just like a commercial appliance - plug it in and use it, no
 config necessary.  (Actually the *last* stumbling block will be
 a completely idiot-proof installer - or a live CD - but I'll cross
 that bridge when I come to it.  No pun intended.)
 

I'm still confused.

Why do you need to succed in getting a DHCP address for _both_ interfaces?
Wouldn't it be OK if jsut the one that hapened to face the DHCP server came
up? This would still give you remote access.

-- 
U.S. Encouraged by Vietnam Vote - Officials Cite 83% Turnout Despite Vietcong 
Terror 
- New York Times 9/3/1967



Re: know any neat tricks for 2 * dhclient?

2005-10-27 Thread dick
So there's no solution?  I see now that the packet flow
doesn't support it,
but logically it  does make sense to want an IP from that
DHCP server
to be given to the other interface, after all any systems
hanging off that
interface *will* get an address from the DHCP server on the other
side of the bridge, so why shouldn't I?  There has to be some way
around it?  Some pf re-routing trick?  Is dhrelay/dhcprelay
my only option?

i am confused as to why anyone would want to make a setup like
this, unless they were being shady. if you are going to be
installing a transparent filter/proxy/etc., shouldn't you have
enough control over the networking environment to work around
the DHCP problems?

it seems to me that working on the setup as it is currently
posited is a poor time investment. i would think harder about
how to change other things to work around this issue. unless,
of course, you were being shady ;).



Re: backup utilities: boxbackup?

2005-10-27 Thread Hannah Schroeter
Hello!

On Thu, Oct 27, 2005 at 09:46:25AM -0500, [EMAIL PROTECTED] wrote:
i'm currently using bzip2-ed dumps to backup my machines and i
wonder if there is a better way to do it. by better i mean
more secure and more automated than adding cron jobs.

i am interested in encrypted backups, as i would prefer to
have non-hijackable backups. i did see
http://www.fluffy.co.uk/boxbackup/ and a couple posts about it
here on [EMAIL PROTECTED]

can anybody vouch for the stability/reliability of this backup
solution (besides the dev, ;) )?

cheers,
jake

I have a simpler backup encryption scheme running. On the box itself,
I have a file /etc/(subdir)/crypt_key, containing a hexadecimal string,
representing 512 bytes of random stuff (probably overkill but so then).

Then I have a small script .../backup_encrypt that looks like this:
#! /bin/sh
exec /usr/sbin/openssl enc -aes-256-cfb -in /dev/stdin -out /dev/stdout \
  -k `cat /etc/(subdir)/crypt_key`

And then, I pipe the gzip output (in my case I don't want that big CPU
hog named bzip2, and gzip is in base, while bzip2 isn't) into that
backup_encrypt thing.

I have a separate backup of /etc/(subdir)/crypt_key and a few scripts
(e.g. the backup_decrypt counterpart [just add -d after enc in the
openssl invocation]) in a few places that are secure enough for me.

Kind regards,

Hannah.



LSISAS1068 driver support

2005-10-27 Thread Mike Keller
Hello, I am trying to get OpenBSD 3.8 running on a
stock HP Proliant DL-320 server (bge network, SATA 
drives, no floppy, no cd, P4, 1G RAM, HP iLo) with the
HP 8 Internal Port SAS Host Bus Adapter with RAID
(link:
http://h18004.www1.hp.com/products/...-hba/index.html


HP part number: 347786-B21

The chipset is LSI SAS 1068, and according to LSI,
supported with the mpt driver.  Here is the link to
LSI's information:

http://www.lsilogic.com/products/sas_ics/lsisas1068.html

When I try to install OBSD 3.8 (via USB CDROM Drive
with cd38.iso downloaded from current), I get to the
Proceed with Install, then no disks found.  I
realize that the hardware isnt currently supported,
but was wondering  if anyone would want to take a
crack at adding support for this to the mpt driver
(assuming it isnt already being worked on).  I am
willing to test, or do whatever I can to help, I just
can't write code (especially drivers), because I dont
know how to.   I was able to get network connectivity,
so I wrote my dmesg output to a file, and sent it to
myself.  Here it is:

OpenBSD 3.8-current (RAMDISK_CD) #853: Tue Oct 25
23:25:14 MDT 2005
   
[EMAIL PROTECTED]:/usr/src/sys/arch/i386/compile/RAMDISK_CD
cpu0: Intel(R) Pentium(R) 4 CPU 3.40GHz
(GenuineIntel 686-class) 3.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,SSE3,MWAIT,CNXT-ID
real mem  = 1073270784 (1048116K)
avail mem = 973828096 (951004K)
using 4278 buffers containing 53768192 bytes (52508K)
of memory
mainbus0 (root)
bios0 at mainbus0: AT/286+(00) BIOS, date 12/31/99,
BIOS32 rev. 0 @ 0xf
pcibios0 at bios0: rev 2.1 @ 0xf/0x2000
pcibios0: PCI BIOS has 6 Interrupt Routing table
entries
pcibios0: PCI Interrupt Router at 000:31:0 (Intel
82801FB LPC rev 0x00)
pcibios0: PCI bus #5 is the last bus
bios0: ROM list: 0xc/0x8000 0xc8000/0x4800
0xcc800/0x1600 0xee000/0x2000!
cpu0 at mainbus0
pci0 at mainbus0 bus 0: configuration mode 1 (no bios)
pchb0 at pci0 dev 0 function 0 Intel E7221 MCH Host
rev 0x05
ppb0 at pci0 dev 1 function 0 Intel E7221 PCIE rev
0x05
pci1 at ppb0 bus 1
ppb1 at pci1 dev 0 function 0 Intel PCIE-PCIE rev
0x09
pci2 at ppb1 bus 2
bge0 at pci2 dev 1 function 0 Broadcom BCM5704C rev
0x10, BCM5704 B0 (0x2100): irq 5, address
00:14:c2:3b:f1:77
brgphy0 at bge0 phy 1: BCM5704 10/100/1000baseT PHY,
rev. 0
bge1 at pci2 dev 1 function 1 Broadcom BCM5704C rev
0x10, BCM5704 B0 (0x2100): irq 7, address
00:14:c2:3b:f1:76
brgphy1 at bge1 phy 1: BCM5704 10/100/1000baseT PHY,
rev. 0
vendor Symbios Logic, unknown product 0x0054 (class
mass storage subclass SCSI, rev 0x00) at pci2 dev 3
function 0 not configured
ppb2 at pci1 dev 0 function 2 Intel PCIE-PCIE rev
0x09
pci3 at ppb2 bus 3
ppb3 at pci0 dev 28 function 0 Intel 82801FB PCIE
rev 0x03
pci4 at ppb3 bus 4
uhci0 at pci0 dev 29 function 0 Intel 82801FB USB
rev 0x03: irq 5
usb0 at uhci0: USB revision 1.0
uhub0 at usb0
uhub0: Intel UHCI root hub, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
uhci1 at pci0 dev 29 function 1 Intel 82801FB USB
rev 0x03: irq 7
usb1 at uhci1: USB revision 1.0
uhub1 at usb1
uhub1: Intel UHCI root hub, rev 1.00/1.00, addr 1
uhub1: 2 ports with 2 removable, self powered
uhci2 at pci0 dev 29 function 2 Intel 82801FB USB
rev 0x03: irq 10
usb2 at uhci2: USB revision 1.0
uhub2 at usb2
uhub2: Intel UHCI root hub, rev 1.00/1.00, addr 1
uhub2: 2 ports with 2 removable, self powered
uhci3 at pci0 dev 29 function 3 Intel 82801FB USB
rev 0x03: irq 10
usb3 at uhci3: USB revision 1.0
uhub3 at usb3
uhub3: Intel UHCI root hub, rev 1.00/1.00, addr 1
uhub3: 2 ports with 2 removable, self powered
ehci0 at pci0 dev 29 function 7 Intel 82801FB USB
rev 0x03: irq 5
usb4 at ehci0: USB revision 2.0
uhub4 at usb4
uhub4: Intel EHCI root hub, rev 2.00/1.00, addr 1
uhub4: 8 ports with 8 removable, self powered
ppb4 at pci0 dev 30 function 0 Intel 82801BA AGP rev
0xd3
pci5 at ppb4 bus 5
vendor Compaq, unknown product 0xb203 (class system
subclass miscellaneous, rev 0x01) at pci5 dev 2
function 0 not configured
vendor Compaq, unknown product 0xb204 (class system
subclass miscellaneous, rev 0x01) at pci5 dev 2
function 2 not configured
vga1 at pci5 dev 3 function 0 ATI Rage XL rev 0x27
wsdisplay0 at vga1 mux 1: console (80x25, vt100
emulation)
ichpcib0 at pci0 dev 31 function 0 Intel 82801FB LPC
rev 0x03: PM disabled
pciide0 at pci0 dev 31 function 1 Intel 82801FB IDE
rev 0x03: DMA, channel 0 configured to compatibility,
channel 1 configured to compatibility
pciide0: channel 0 disabled (no drives)
pciide0: channel 1 disabled (no drives)
isa0 at ichpcib0
isadma0 at isa0
pckbc0 at isa0 port 0x60/5
pckbd0 at pckbc0 (kbd slot)
pckbc0: using irq 1 for kbd slot
wskbd0 at pckbd0: console keyboard, using wsdisplay0
npx0 at isa0 port 0xf0/16: using exception 16
pccom0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte
fifo
pccom1 at isa0 port 0x2f8/8 irq 3: ns16550a, 16 byte
fifo
fdc0 at isa0 port 0x3f0/6 irq 6 drq 2
biomask 

Re: know any neat tricks for 2 * dhclient?

2005-10-27 Thread Graham Toal
 I'm still confused.

 Why do you need to succed in getting a DHCP address for _both_ interfaces?
 Wouldn't it be OK if jsut the one that hapened to face the DHCP server came
 up? This would still give you remote access.

I can get away with DHCP on one side only, but having actually tried
this (at length) it looks like the 'real' address has to be on the
same side as the target server in order to make the NAT work when
faking the source address of the client.   I.e. it is determined by
the client/server relationship and which interfaces the client and
the server talk to me via.  Unfortunately the interface which gets
the address from DHCP can be on *either* the client *or* the server
side.  This is because a filtering appliance like this can either be
placed at the edge of your network (in which case the DHCP server is
on the inside, same interface as your target server, in my case a mail
server) - or it can be placed immediately in front of that server only,
in which case the DHCP server will be on the *outside*, same interface
as the clients.  Therefore to allow for either of these deployments,
its safer if I just get a DHCP address for both sides, from whichever
side the DHCP server happens to be on.

So... if the specific deployment happens to have the DHCP server
on the same interface as the target server whose traffic is being
filtered, then what you suggest above will work OK.  But if they're
on different interfaces, it won't.  I've tried it.

One administrative solution would be to tell people to only place
the filter on the edge, with the DHCP always inside.  However my
own experience here with our own computer center is that they're
pretty reluctant to run all the campus traffic through one device
just to add some mail functionality.  Whereas placing it in front
of the mailer is not such a big deal. (Also cheaper in terms of
supporting the bandwidth - campus edge: 45Mbit - mailer: 1 Mbit)

I really wonder how these transparent commercial anti-spam appliances
do it.  If you think it is tough under OpenBSD/pf, it's next to 
impossible under Linux.  What trick have they worked out thay I'm
missing?  Or are they just not as transparent/config free as I am
assuming they need to be?


Graham



Machine unable to build -STABLE kernel, PEBCAK

2005-10-27 Thread C. Bensend
Hey folks,

   I seem to have gotten myself into a pickle, and I'm not quite sure
how screwed I am.

   I have an AMD64 server that has been having some stability issues
recently.  It has crashed several times when I have fired up sa-learn
from the SpamAssassin package, and it seems that with the right
conditions, it's running out of RAM.  Unfortunately, instead of
hitting swap, it's been kernel panicking (I don't have the ps and
trace information, I'm working on getting a serial console
on it so I can).

   I thought in the interim I'd make sure that I'm all up-to-date
with -STABLE, so I went ahead and updated via CVS, and began a 'make
build'.  And then it crashed part way through.  Uh oh.  Also, I
didn't make a new kernel - I didn't see anything but a few userland
items had changed.  Is that a problem (never dealt with that before)?

   It's been rebooted, it's running OK, but now it's failing when I
try to build -STABLE again.  'make clean' works fine, but when I
attempt a 'make depend' for the kernel:


In file included from /usr/src/sys/uvm/uvm_map.h:391,
 from /usr/src/sys/uvm/uvm_extern.h:376,
 from /usr/src/sys/sys/user.h:45,
 from /tmp/genassym_c.oHhks15538:9:
/usr/src/sys/sys/systm.h:173: warning: conflicting types for built-in
function `vsnprintf'
/usr/src/sys/sys/systm.h:175: warning: conflicting types for built-in
function `snprintf'
/usr/src/sys/sys/systm.h:200: warning: conflicting types for built-in
function `memcpy'
/usr/src/sys/sys/systm.h:205: warning: conflicting types for built-in
function `memset'
In file included from /usr/src/sys/sys/systm.h:301,
 from /usr/src/sys/uvm/uvm_map.h:391,
 from /usr/src/sys/uvm/uvm_extern.h:376,
 from /usr/src/sys/sys/user.h:45,
 from /tmp/genassym_c.oHhks15538:9:
/usr/src/sys/lib/libkern/libkern.h:158: warning: conflicting types for
built-in function `memcmp'
/usr/src/sys/lib/libkern/libkern.h:163: warning: conflicting types for
built-in function `strlen'
/usr/src/sys/lib/libkern/libkern.h:165: warning: conflicting types for
built-in function `strncpy'
/usr/src/sys/lib/libkern/libkern.h:171: warning: conflicting types for
built-in function `strncmp'
*** Error code 1

Stop in /usr/src/sys/arch/i386/compile/GENERIC (line 702 of Makefile).


   So, at this point, I think I just fat fingered my CVS update and
got -CURRENT or some such, so I went ahead and blew away /usr/src/*
and reupdated with -STABLE.  Unfortunately, it does the same thing.

   At this point, I look at /usr/include, and I see that some things
have been updated, and some haven't been since I last built -STABLE.
I recall that people with borked include files have been advised to
do a 'make includes' from /usr/src, so I try that:

...
installing in /usr/src/include/../gnu/lib/libobjc
install -d -m 755 -o root -g bin  /usr/include/objc
installing in /usr/src/include/../gnu/lib/libf2c
install -C -o root -g bin -m 444  /usr/src/gnu/lib/libf2c/f2c.h /usr/include
install -C -o root -g bin -m 444  g2c.h /usr/include
install: g2c.h: No such file or directory
*** Error code 71

Stop in /usr/src/gnu/lib/libf2c (line 159 of Makefile.bsd-wrapper).
*** Error code 1

Stop in /usr/src/include (line 88 of Makefile).
*** Error code 1

Stop in /usr/src (line 57 of Makefile).


   And then I panic a little, quietly to myself, and realize that
I'm in over my head trying to repair this, and I need some help
from people that know what might really be broken.

   I'd really appreciate it if someone could smack me with a
clue-by-four and give me a hand in fixing this.  It's my fault
with the [likely] CVS oops, but that crash in the middle of
the build was just evil timing.

Thanks very much!

Benny


OpenBSD 3.6-stable (GENERIC) #4: Wed Jun 22 08:30:37 CDT 2005
[EMAIL PROTECTED]:/usr/src/sys/arch/amd64/compile/GENERIC
real mem = 1072492544 (1047356K)
avail mem = 909234176 (887924K)
using 22937 buffers containing 107458560 bytes (104940K) of memory
mainbus0 (root)
cpu0 at mainbus0: (uniprocessor)
cpu0: AMD Athlon(tm) 64 Processor 3000+, 2002.86 MHz
cpu0:
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CF
LUSH,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 1
6-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 VIA K8HTB Host rev 0x01
ppb0 at pci0 dev 1 function 0 VIA K8HTB AGP rev 0x00
pci1 at ppb0 bus 1
fxp0 at pci0 dev 11 function 0 Intel 82557 rev 0x08: irq 5, address
00:03:47:4
d:cc:a6
inphy0 at fxp0 phy 1: i82555 10/100 media interface, rev. 4
vga1 at pci0 dev 12 function 0 Cirrus Logic CL-GD5446 rev 0x00
wsdisplay0 at vga1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 

Appliance Vendors?

2005-10-27 Thread L. V. Lammert
We are getting ready to recommend an appliance to one of our clients, .. I 
know we could build a box (a la Soekris), but I have also heard that 
vendors like Lok Technologies are selling pre-built OBSD solutions.


1) Any recommendations pro/con about Lok?

2) Any other vendors (for US customers) with pre-built solutions?

3) Are there other h/w vendors that would be 'between' a Soekris  regular 
PC? I would ilke to offer storage options (perhaps an email server), and I 
know the Soekris don't have regular HDs.


TIA,

Lee



Re: Appliance Vendors?

2005-10-27 Thread Ray Percival
On Thu, Oct 27, 2005 at 11:32:25AM -0500, L. V. Lammert wrote:
 We are getting ready to recommend an appliance to one of our clients, .. I 
 know we could build a box (a la Soekris), but I have also heard that 
 vendors like Lok Technologies are selling pre-built OBSD solutions.
 
 1) Any recommendations pro/con about Lok?
 
 2) Any other vendors (for US customers) with pre-built solutions?
 
 3) Are there other h/w vendors that would be 'between' a Soekris  regular 
 PC? 
Sure just abour any small form factor PC should work.

I would ilke to offer storage options (perhaps an email server), and I 
 know the Soekris don't have regular HDs.
You can put a HDD in a Soekris. In fact I run all mine that way. Mainly because 
I think flash is a bad use for a longterm massstorage device. 

All an appliance really is is a box that does one thing has few to no knobs 
and just works out of hte box. Hardware doesn't really matter. The only real 
reason you see so many of them on samll form factor type boxen is cost. For 
example I use Soekris when I sell perimeter security devices but that's simply  
because they are cheap to buy and to run. No other real reason. For a small 
form factor mail server I'd look at a shuttle type system. But unless you need 
a small form factor I'd just put it all on a PC or 1u server and call it good. 
 
   TIA,
 
   Lee
 

-- 
BOFH excuse #355:

Boredom in the Kernel.



Re: LSISAS1068 driver support

2005-10-27 Thread Olivier Cherrier
On Thu, Oct 27, 2005 at 08:12:43AM -0700, [EMAIL PROTECTED] wrote:
 Hello, I am trying to get OpenBSD 3.8 running on a
 stock HP Proliant DL-320 server (bge network, SATA 
 drives, no floppy, no cd, P4, 1G RAM, HP iLo) with the
 HP 8 Internal Port SAS Host Bus Adapter with RAID
 (link:
 http://h18004.www1.hp.com/products/...-hba/index.html
 
 
 HP part number: 347786-B21
 
 The chipset is LSI SAS 1068, and according to LSI,
 supported with the mpt driver.  Here is the link to
 LSI's information:
 
 http://www.lsilogic.com/products/sas_ics/lsisas1068.html
 
Where do you see it is supported on the OpenBSD website?

 When I try to install OBSD 3.8 (via USB CDROM Drive
 with cd38.iso downloaded from current), I get to the
 Proceed with Install, then no disks found.  I
 realize that the hardware isnt currently supported,
 but was wondering  if anyone would want to take a
 crack at adding support for this to the mpt driver
 (assuming it isnt already being worked on).  I am
 willing to test, or do whatever I can to help, I just
 can't write code (especially drivers), because I dont
 know how to.   I was able to get network connectivity,
 so I wrote my dmesg output to a file, and sent it to
 myself.  Here it is:
 
 OpenBSD 3.8-current (RAMDISK_CD) #853: Tue Oct 25
 23:25:14 MDT 2005

 [EMAIL PROTECTED]:/usr/src/sys/arch/i386/compile/RAMDISK_CD
 cpu0: Intel(R) Pentium(R) 4 CPU 3.40GHz
 (GenuineIntel 686-class) 3.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,SSE3,MWAIT,CNXT-ID
 real mem  = 1073270784 (1048116K)
 avail mem = 973828096 (951004K)
 using 4278 buffers containing 53768192 bytes (52508K)
 of memory
 mainbus0 (root)
 bios0 at mainbus0: AT/286+(00) BIOS, date 12/31/99,
 BIOS32 rev. 0 @ 0xf
 pcibios0 at bios0: rev 2.1 @ 0xf/0x2000
 pcibios0: PCI BIOS has 6 Interrupt Routing table
 entries
 pcibios0: PCI Interrupt Router at 000:31:0 (Intel
 82801FB LPC rev 0x00)
 pcibios0: PCI bus #5 is the last bus
 bios0: ROM list: 0xc/0x8000 0xc8000/0x4800
 0xcc800/0x1600 0xee000/0x2000!
 cpu0 at mainbus0
 pci0 at mainbus0 bus 0: configuration mode 1 (no bios)
 pchb0 at pci0 dev 0 function 0 Intel E7221 MCH Host
 rev 0x05
 ppb0 at pci0 dev 1 function 0 Intel E7221 PCIE rev
 0x05
 pci1 at ppb0 bus 1
 ppb1 at pci1 dev 0 function 0 Intel PCIE-PCIE rev
 0x09
 pci2 at ppb1 bus 2
 bge0 at pci2 dev 1 function 0 Broadcom BCM5704C rev
 0x10, BCM5704 B0 (0x2100): irq 5, address
 00:14:c2:3b:f1:77
 brgphy0 at bge0 phy 1: BCM5704 10/100/1000baseT PHY,
 rev. 0
 bge1 at pci2 dev 1 function 1 Broadcom BCM5704C rev
 0x10, BCM5704 B0 (0x2100): irq 7, address
 00:14:c2:3b:f1:76
 brgphy1 at bge1 phy 1: BCM5704 10/100/1000baseT PHY,
 rev. 0
 vendor Symbios Logic, unknown product 0x0054 (class
 mass storage subclass SCSI, rev 0x00) at pci2 dev 3
 function 0 not configured
 ppb2 at pci1 dev 0 function 2 Intel PCIE-PCIE rev
 0x09
 pci3 at ppb2 bus 3
 ppb3 at pci0 dev 28 function 0 Intel 82801FB PCIE
 rev 0x03
 pci4 at ppb3 bus 4
 uhci0 at pci0 dev 29 function 0 Intel 82801FB USB
 rev 0x03: irq 5
 usb0 at uhci0: USB revision 1.0
 uhub0 at usb0
 uhub0: Intel UHCI root hub, rev 1.00/1.00, addr 1
 uhub0: 2 ports with 2 removable, self powered
 uhci1 at pci0 dev 29 function 1 Intel 82801FB USB
 rev 0x03: irq 7
 usb1 at uhci1: USB revision 1.0
 uhub1 at usb1
 uhub1: Intel UHCI root hub, rev 1.00/1.00, addr 1
 uhub1: 2 ports with 2 removable, self powered
 uhci2 at pci0 dev 29 function 2 Intel 82801FB USB
 rev 0x03: irq 10
 usb2 at uhci2: USB revision 1.0
 uhub2 at usb2
 uhub2: Intel UHCI root hub, rev 1.00/1.00, addr 1
 uhub2: 2 ports with 2 removable, self powered
 uhci3 at pci0 dev 29 function 3 Intel 82801FB USB
 rev 0x03: irq 10
 usb3 at uhci3: USB revision 1.0
 uhub3 at usb3
 uhub3: Intel UHCI root hub, rev 1.00/1.00, addr 1
 uhub3: 2 ports with 2 removable, self powered
 ehci0 at pci0 dev 29 function 7 Intel 82801FB USB
 rev 0x03: irq 5
 usb4 at ehci0: USB revision 2.0
 uhub4 at usb4
 uhub4: Intel EHCI root hub, rev 2.00/1.00, addr 1
 uhub4: 8 ports with 8 removable, self powered
 ppb4 at pci0 dev 30 function 0 Intel 82801BA AGP rev
 0xd3
 pci5 at ppb4 bus 5
 vendor Compaq, unknown product 0xb203 (class system
 subclass miscellaneous, rev 0x01) at pci5 dev 2
 function 0 not configured
 vendor Compaq, unknown product 0xb204 (class system
 subclass miscellaneous, rev 0x01) at pci5 dev 2
 function 2 not configured
 vga1 at pci5 dev 3 function 0 ATI Rage XL rev 0x27
 wsdisplay0 at vga1 mux 1: console (80x25, vt100
 emulation)
 ichpcib0 at pci0 dev 31 function 0 Intel 82801FB LPC
 rev 0x03: PM disabled
 pciide0 at pci0 dev 31 function 1 Intel 82801FB IDE
 rev 0x03: DMA, channel 0 configured to compatibility,
 channel 1 configured to compatibility
 pciide0: channel 0 disabled (no drives)
 pciide0: channel 1 disabled (no drives)
 isa0 at ichpcib0
 isadma0 at isa0
 pckbc0 at isa0 port 0x60/5
 pckbd0 at pckbc0 (kbd slot)
 pckbc0: using irq 1 for kbd slot
 

Re: LSISAS1068 driver support

2005-10-27 Thread Theo de Raadt
 The chipset is LSI SAS 1068, and according to LSI,
 supported with the mpt driver.  Here is the link to
 LSI's information:
 
 http://www.lsilogic.com/products/sas_ics/lsisas1068.html

Unlike what Olivier had to pipe up with (why are so many of our
users sending useless mails these days?)...

This appears to be an MPT varient which is new, and not yet supported.
I have made sure that Marco (mpt driver maintainer) sees the mail.

Thanks for the report.



Re: Adaptec 1205SA

2005-10-27 Thread Christer Solstrand Johannessen

On Thu, 20 Oct 2005, Nick Holland wrote:


Chris Zakelj wrote:

Szechuan Death wrote:


Speaking of which:  Which driver supports the Adaptec 1205SA?  Anybody?
Bueller?  Manpages are not forthcoming.


Don't know if any of them do, especially now that Adaptec SCSI has been
removed from the kernel.  However, if any dev wants it, I just removed
one from my gaming machine, and I'd be more than happy to send it their way.


actually, only the Adaptec RAID controllers using the aac(4) driver were
removed.  Most of the simple SCSI drivers continue on...

Were I a betting man, I'd bet the 1205SA is supported by the pciide(4)
driver.  It appears to be a very basic SATA controller.  If it's not
supported by pciide, it probably could be.  Probably isn't even an
Adaptec chip on it.


The Adaptec 1205SA sports a SiL3112 chip and is supported by the pciide(4)
driver. I plugged one of those into my 3.5 box along with 2x250gb drives, and
it (and they) Just Worked(tm). As noted above, it is a very basic controller,
and performance isn't spectacular, but it is cheap (maybe not the Adaptec
branded one, though; I got mine for free) and works under most operating
systems with little or no hassles (notably, Windows proved to be the most
troublesome to get it working under).

I just bought another, similar controller, a 4-port one based on the 3114
version of the chip. I don't expect any problems with that either. :)

- Christer



Re: powernow

2005-10-27 Thread Sigfred HÃ¥versen

Ted Unangst wrote:

there is a diff from gordon klok in the snapshots that should improve
support for k7 and k8 family powernow (cool and quiet).  i'd like to
know where/if it works, what messages get printed, and if hw.setperf
does anything useful.  md5 -t with setperf=0 and 100 would be nice.




There is no hw.setperf available. The motherboard is ASRock K7VM4
with a VIA KM400 chipset.

$ sysctl hw
hw.machine=i386
hw.model=AMD Athlon(tm) XP 2800+ (AuthenticAMD 686-class, 512KB L2 cache)
hw.ncpu=1
hw.byteorder=1234
hw.physmem=536387584
hw.usermem=535908352
hw.pagesize=4096
hw.disknames=wd0,cd0
hw.diskcount=2
hw.sensors.0=lm0, VCORE_A, volts_dc, 1.74 V
hw.sensors.1=lm0, VCORE_B, volts_dc, 0.00 V
hw.sensors.2=lm0, +3.3V, volts_dc, 3.33 V
hw.sensors.3=lm0, +5V, volts_dc, 4.91 V
hw.sensors.4=lm0, +12V, volts_dc, 11.49 V
hw.sensors.5=lm0, -12V, volts_dc, 0.63 V
hw.sensors.6=lm0, -5V, volts_dc, 1.74 V
hw.sensors.7=lm0, +5VSB, volts_dc, 5.04 V
hw.sensors.8=lm0, VBAT, volts_dc, 3.95 V
hw.sensors.9=lm0, Temp1, temp, 54.00 degC / 129.20 degF
hw.sensors.10=lm0, Temp2, temp, 38.50 degC / 101.30 degF
hw.cpuspeed=2083



OpenBSD 3.8-current (GENERIC) #218: Thu Oct 27 04:13:58 MDT 2005
[EMAIL PROTECTED]:/usr/src/sys/arch/i386/compile/GENERIC
cpu0: AMD Athlon(tm) XP 2800+ (AuthenticAMD 686-class, 512KB L2 cache) 2.09 
GHz
cpu0: 
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR,SSE
cpu0: AMD Powernow: TS
real mem  = 536387584 (523816K)
avail mem = 482570240 (471260K)
using 4278 buffers containing 26923008 bytes (26292K) of memory
mainbus0 (root)
bios0 at mainbus0: AT/286+(00) BIOS, date 03/15/04, BIOS32 rev. 0 @ 0xfdac0
pcibios0 at bios0: rev 2.1 @ 0xf/0x1
pcibios0: PCI IRQ Routing Table rev 1.0 @ 0xf7ce0/144 (7 entries)
pcibios0: PCI Interrupt Router at 000:17:0 (VIA VT8235 ISA rev 0x00)
pcibios0: PCI bus #1 is the last bus
bios0: ROM list: 0xc/0xd000
cpu0 at mainbus0
pci0 at mainbus0 bus 0: configuration mode 1 (no bios)
pchb0 at pci0 dev 0 function 0 VIA VT8378 PCI rev 0x00
ppb0 at pci0 dev 1 function 0 VIA VT8377 PCI-PCI rev 0x00
pci1 at ppb0 bus 1
vga1 at pci1 dev 0 function 0 ATI Radeon 9200 SE Sec rev 0x01
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
ATI Radeon 9200 SE rev 0x01 at pci1 dev 0 function 1 not configured
uhci0 at pci0 dev 16 function 0 VIA VT83C572 USB rev 0x80: irq 11
usb0 at uhci0: USB revision 1.0
uhub0 at usb0
uhub0: VIA UHCI root hub, 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 0x80: irq 3
usb1 at uhci1: USB revision 1.0
uhub1 at usb1
uhub1: VIA UHCI root hub, 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 0x80: irq 5
usb2 at uhci2: USB revision 1.0
uhub2 at usb2
uhub2: VIA UHCI root hub, rev 1.00/1.00, addr 1
uhub2: 2 ports with 2 removable, self powered
ehci0 at pci0 dev 16 function 3 VIA VT6202 USB rev 0x82: irq 10
usb3 at ehci0: USB revision 2.0
uhub3 at usb3
uhub3: VIA EHCI root hub, rev 2.00/1.00, addr 1
uhub3: 6 ports with 6 removable, self powered
pcib0 at pci0 dev 17 function 0 VIA VT8235 ISA rev 0x00
pciide0 at pci0 dev 17 function 1 VIA VT82C571 IDE rev 0x06: ATA133, channel 
0 configured to compatibility, channel 1 configured to compatibility
wd0 at pciide0 channel 0 drive 0: ST3120026A
wd0: 16-sector PIO, LBA48, 114473MB, 234441648 sectors
wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 5
atapiscsi0 at pciide0 channel 1 drive 0
scsibus0 at atapiscsi0: 2 targets
cd0 at scsibus0 targ 0 lun 0: LITE-ON, LTR-48246S, SS0B SCSI0 5/cdrom 
removable
cd0(pciide0:1:0): using PIO mode 4, Ultra-DMA mode 2
auvia0 at pci0 dev 17 function 5 VIA VT8233 AC97 rev 0x50: irq 5
ac97: codec id 0x434d4961 (C-Media Electronics CMI9739)
audio0 at auvia0
vr0 at pci0 dev 18 function 0 VIA RhineII-2 rev 0x74: irq 11 address 
00:0b:6a:37:6d:d2
ukphy0 at vr0 phy 1: Generic IEEE 802.3u media interface, rev. 8: OUI 0x08, 
model 0x4063
isa0 at pcib0
isadma0 at isa0
pckbc0 at isa0 port 0x60/5
pckbd0 at pckbc0 (kbd slot)
pckbc0: using irq 1 for kbd slot
wskbd0 at pckbd0: console keyboard, using wsdisplay0
pcppi0 at isa0 port 0x61
midi0 at pcppi0: PC speaker
spkr0 at pcppi0
sysbeep0 at pcppi0
lpt0 at isa0 port 0x378/4 irq 7
lm0 at isa0 port 0x290/8: W83697HF
npx0 at isa0 port 0xf0/16: using exception 16
pccom0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo
fdc0 at isa0 port 0x3f0/6 irq 6 drq 2
biomask ff6d netmask ff6d ttymask ffef
pctr: user-level cycle counter enabled
mtrr: Pentium Pro MTRR support
uhidev0 at uhub0 port 2 configuration 1 interface 0
uhidev0: Logitech USB Receiver, rev 1.10/16.00, addr 2, iclass 3/1
ums0 at uhidev0: 16 buttons and Z dir.
wsmouse0 at ums0 mux 0
dkcsum: wd0 matches BIOS drive 0x80
root on wd0a
rootdev=0x0 rrootdev=0x300 rawdev=0x302



Re: Machine unable to build -STABLE kernel, PEBCAK

2005-10-27 Thread STeve Andre'
On Thursday 27 October 2005 11:21, C. Bensend wrote:
 Hey folks,

I seem to have gotten myself into a pickle, and I'm not quite sure
 how screwed I am.

I have an AMD64 server that has been having some stability issues
[snip]

If you think you messed up with CVS, I'd move the /src dir to somewhere
and get everything again.  Perhaps someone else will look at your messages
and divine a more specific problem, but I've learned that when I make 
a spectacular CVS blunder getting the last release tree, untaring it and
then CVSing from there has been a good way to fix things.  Later, you
can look at the wounded src tree and figure out what happened; I've
done that and learning about some of my blunders, but thats after I've
gotten a working system again.

--STeve Andre'



Re: Machine unable to build -STABLE kernel, PEBCAK

2005-10-27 Thread Nick Holland
On Thu, Oct 27, 2005 at 10:21:16AM -0500, C. Bensend wrote:
 Hey folks,
 
I seem to have gotten myself into a pickle, and I'm not quite sure
 how screwed I am.
 
I have an AMD64 server that has been having some stability issues
...^
 try to build -STABLE again.  'make clean' works fine, but when I
 attempt a 'make depend' for the kernel:
... 
 Stop in /usr/src/sys/arch/i386/compile/GENERIC (line 702 of Makefile).
... 


 OpenBSD 3.6-stable (GENERIC) #4: Wed Jun 22 08:30:37 CDT 2005
 [EMAIL PROTECTED]:/usr/src/sys/arch/amd64/compile/GENERIC
   

Looks like you were doing some accidental cross compiling there. :)

Nick.



Re: Machine unable to build -STABLE kernel, PEBCAK

2005-10-27 Thread C. Bensend
 If you think you messed up with CVS, I'd move the /src dir to somewhere
 and get everything again.  Perhaps someone else will look at your messages

Yep, I did get another checkout - I mentioned it in my email.  :)
I rm'ed the old src, though, I didn't move it aside.

Benny


-- 
Young lady, I yelled at you because that paperwork looked like it
had been done by a drunk four-year-old. -- Dr. Bob Kelso, Scrubs



Re: Machine unable to build -STABLE kernel, PEBCAK

2005-10-27 Thread C. Bensend
 Stop in /usr/src/sys/arch/i386/compile/GENERIC (line 702 of Makefile).

 OpenBSD 3.6-stable (GENERIC) #4: Wed Jun 22 08:30:37 CDT 2005
 [EMAIL PROTECTED]:/usr/src/sys/arch/amd64/compile/GENERIC

 Looks like you were doing some accidental cross compiling there. :)

Ohfergodsake.  I cannot believe I just did that.  :(

Thanks for the second eyeball there, Nick.  That got the kernel
built...  On to a 'make build'.

Benny


-- 
Young lady, I yelled at you because that paperwork looked like it had
been done by a drunk four-year-old. -- Dr. Bob Kelso, Scrubs



strcpy to strlcpy warnings

2005-10-27 Thread John N. Brahy
First of all, it's been a while since I've written c, so I'm curious if
this is a bulk change I can do.



I'm changing code that another programmer did, but we got rid of him for
doing stupid things. So I'm auditing his source code on a few of our
customer's sites and I came across a strcat. And when I recompile it, I
got warnings saying that it's almost always misused, then I read the
manpage of strlcat and it seemed simple enough to do this:



strcat(mailbox, MAILSPOOLHOME);

strlcat(mailbox, MAILSPOOLHOME, sizeof(mailbox));



Should I look out for anything special or is it safe to do this
everywhere I see strcat or strcpy?



Re: powernow

2005-10-27 Thread Jonathan Fromer
Ted Unangst wrote:
 there is a diff from gordon klok in the snapshots that should improve
 support for k7 and k8 family powernow (cool and quiet).  i'd like to
 know where/if it works, what messages get printed, and if hw.setperf
 does anything useful.

Changing hw.serperf freezes the systems. Well more or less, I can ping
it, but no interaction with the machine is possible, neither physicaly
via the console nor via ssh.

In the dmesg I see the following line
 cpu0: AMD Cool`n'Quiet K8: 0 available states
which can be the reason for the freeze ? setperf tries to change power
state, but has no state to change to..

The machine in question is built on a Asus A8V Deluxe motherboard
(VIA K8T800Pro/VT8237) and the CPU is a Athlon 64 3000+ (venice).

dmesg:

OpenBSD 3.8-current (GENERIC) #218: Thu Oct 27 04:13:58 MDT 2005
[EMAIL PROTECTED]:/usr/src/sys/arch/i386/compile/GENERIC
cpu0: AMD Athlon(tm) 64 Processor 3000+ (AuthenticAMD 686-class,
512KB L2 cache) 1.81 GHz cpu0:
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,SSE3
cpu0: AMD Powernow: TS FID VID TTP TM STC
cpu0: AMD Cool`n'Quiet K8: 0
available states real mem  = 536125440 (523560K)
avail mem = 482324480 (471020K)
using 4278 buffers containing 26910720 bytes (26280K) of memory
mainbus0 (root)
bios0 at mainbus0: AT/286+(00) BIOS, date 05/19/05, BIOS32 rev. 0 @
0xf0010 apm0 at bios0: Power Management spec V1.2
apm0: AC on, battery charge unknown
apm0: flags 30102 dobusy 0 doidle 1
pcibios0 at bios0: rev 2.1 @ 0xf/0x1
pcibios0: PCI IRQ Routing Table rev 1.0 @ 0xf59d0/224 (12 entries)
pcibios0: PCI Interrupt Router at 000:17:0 (VIA VT8237 ISA rev 0x00)
pcibios0: PCI bus #2 is the last bus
bios0: ROM list: 0xc/0x9000 0xc9000/0x6000 0xcf000/0x1000
cpu0 at mainbus0
pci0 at mainbus0 bus 0: configuration mode 1 (no bios)
pchb0 at pci0 dev 0 function 0 VIA K8HTB Host rev 0x00
pchb1 at pci0 dev 0 function 1 VIA K8HTB Host rev 0x00
pchb2 at pci0 dev 0 function 2 VIA K8HTB Host rev 0x00
pchb3 at pci0 dev 0 function 3 VIA K8HTB Host rev 0x00
pchb4 at pci0 dev 0 function 4 VIA K8HTB Host rev 0x00
pchb5 at pci0 dev 0 function 7 VIA K8HTB Host rev 0x00
ppb0 at pci0 dev 1 function 0 VIA K8HTB AGP rev 0x00
pci1 at ppb0 bus 1
skc0 at pci0 dev 10 function 0 Marvell SKv2 rev 0x13: irq 10
skc0: Marvell Yukon Lite (0x9)
sk0 at skc0 port A: address 00:11:d8:a8:51:96
eephy0 at sk0 phy 0: Marvell 88E1011 Gigabit PHY, rev. 5
ppb1 at pci0 dev 11 function 0 vendor Hint, unknown product 0x0021
rev 0x13 pci2 at ppb1 bus 2
vga1 at pci2 dev 0 function 0 Matrox MGA G400/G450 AGP rev 0x85
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
ahc1 at pci0 dev 13 function 0 Adaptec AHA-2940U rev 0x00: irq 5
scsibus0 at ahc1: 16 targets
ahc1: target 1 using 8bit transfers
ahc1: target 1 using asynchronous transfers
sd0 at scsibus0 targ 1 lun 0: COMPAQ, ST32171W, 0682 SCSI2 0/direct
fixed sd0: 2006MB, 5172 cyl, 5 head, 158 sec, 512 bytes/sec, 411
sec total ubsec0 at pci0 dev 14 function 0 Broadcom 5821 rev 0x02:
3DES MD5 SHA1 RNG PK, irq 3 pciide0 at pci0 dev 15 function 0 VIA
VT6420 SATA rev 0x80: DMA pciide0: using irq 10 for native-PCI
interrupt pciide1 at pci0 dev 15 function 1 VIA VT82C571 IDE rev
0x06: DMA, channel 0 configured to compatibility, channel 1 configured
to compatibility pciide1: channel 0 disabled (no drives) atapiscsi0 at
pciide1 channel 1 drive 1 scsibus1 at atapiscsi0: 2 targets
cd0 at scsibus1 targ 0 lun 0: LITE-ON, DVD SOHD-16P9S, FS07 SCSI0 5/
cdrom removable cd0(pciide1:1:1): using PIO mode 4, DMA mode 2
uhci0 at pci0 dev 16 function 0 VIA VT83C572 USB rev 0x81: irq 11
usb0 at uhci0: USB revision 1.0
uhub0 at usb0
uhub0: VIA UHCI root hub, 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 11
usb1 at uhci1: USB revision 1.0
uhub1 at usb1
uhub1: VIA UHCI root hub, 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 10
usb2 at uhci2: USB revision 1.0
uhub2 at usb2
uhub2: VIA UHCI root hub, rev 1.00/1.00, addr 1
uhub2: 2 ports with 2 removable, self powered
ehci0 at pci0 dev 16 function 4 VIA VT6202 USB rev 0x86: irq 5
usb3 at ehci0: USB revision 2.0
uhub3 at usb3
uhub3: VIA EHCI root hub, rev 2.00/1.00, addr 1
uhub3: 6 ports with 6 removable, self powered
pcib0 at pci0 dev 17 function 0 VIA VT8237 ISA rev 0x00
auvia0 at pci0 dev 17 function 5 VIA VT8233 AC97 rev 0x60: irq 5
ac97: codec id 0x414c4790 (Avance Logic ALC850)
audio0 at auvia0
pchb6 at pci0 dev 24 function 0 AMD AMD64 HyperTransport rev 0x00
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 pcib0
isadma0 at isa0
pckbc0 at isa0 port 0x60/5
pckbd0 at pckbc0 (kbd slot)
pckbc0: using irq 1 

Re: strcpy to strlcpy warnings

2005-10-27 Thread Theo de Raadt
 First of all, it's been a while since I've written c, so I'm curious if
 this is a bulk change I can do.
 
 
 
 I'm changing code that another programmer did, but we got rid of him for
 doing stupid things. So I'm auditing his source code on a few of our
 customer's sites and I came across a strcat. And when I recompile it, I
 got warnings saying that it's almost always misused, then I read the
 manpage of strlcat and it seemed simple enough to do this:
 
 
 
 strcat(mailbox, MAILSPOOLHOME);
 
 strlcat(mailbox, MAILSPOOLHOME, sizeof(mailbox));
 
 
 
 Should I look out for anything special or is it safe to do this
 everywhere I see strcat or strcpy?

If your goal is to do the minimum and only the minimum, probably.

But you question is incomplete.  You don't provide enough facts.  It
is better if you go back and read and understand more.  We've been
clear enough in the manual page that there should be no questions.



Re: powernow

2005-10-27 Thread Gordon Willem Klok
On Thu, Oct 27, 2005 at 07:36:47PM +0200, Sigfred Heversen wrote:
 There is no hw.setperf available. The motherboard is ASRock K7VM4
 with a VIA KM400 chipset.
 cpu0: AMD Powernow: TS
Hello Sigfred,
Your processor lacks the necessary features to make use of this
new code (or any incarnation of the powernow code for that matter)
You can determin support for these features in a new snapshot
by looking for the line 
cpu0: AMD Powernow: FID VID (other flags such as TS may be present
but are unrelated, TS is for the built in thermal sensor it isnt
supported yet, I would like to add it but setpef stuff needs to work 
first and on that note in full disclosure there is a bug in patches I 
sent to tedu I have sent him the fix not sure if there will be a 
subsequent snapshot to test but its probably best to hold off testing the 
setperf method until the fix is incorporated since it will hang your 
system, if you dont use setperf, your system won't be affected.

GWK



Re: strcpy to strlcpy warnings

2005-10-27 Thread Otto Moerbeek
On Thu, 27 Oct 2005, John N. Brahy wrote:

 First of all, it's been a while since I've written c, so I'm curious if
 this is a bulk change I can do.
 
 
 
 I'm changing code that another programmer did, but we got rid of him for
 doing stupid things. So I'm auditing his source code on a few of our
 customer's sites and I came across a strcat. And when I recompile it, I
 got warnings saying that it's almost always misused, then I read the
 manpage of strlcat and it seemed simple enough to do this:
 
 
 
 strcat(mailbox, MAILSPOOLHOME);
 
 strlcat(mailbox, MAILSPOOLHOME, sizeof(mailbox));
 
 
 
 Should I look out for anything special or is it safe to do this
 everywhere I see strcat or strcpy?

No, you should understand what you are doing. Depending if mailbox is
declared as an array with known size or a pointer, this will work as
expected or not.

-Otto



Re: strcpy to strlcpy warnings

2005-10-27 Thread jimmy
Quoting John N. Brahy [EMAIL PROTECTED]:

 First of all, it's been a while since I've written c, so I'm curious if
 this is a bulk change I can do.



 I'm changing code that another programmer did, but we got rid of him for
 doing stupid things. So I'm auditing his source code on a few of our
 customer's sites and I came across a strcat. And when I recompile it, I
 got warnings saying that it's almost always misused, then I read the
 manpage of strlcat and it seemed simple enough to do this:



 strcat(mailbox, MAILSPOOLHOME);

 strlcat(mailbox, MAILSPOOLHOME, sizeof(mailbox));



 Should I look out for anything special or is it safe to do this
 everywhere I see strcat or strcpy?



if 'mailbox' was malloc()'ed, that won't work as expected since sizeof is
or can be implemented as a macro.





This message has been sent through ihosting.be
To report spamming or other unaccepted behavior
by a iHosting customer, please send a message 
to [EMAIL PROTECTED]




Re: strcpy to strlcpy warnings

2005-10-27 Thread Hannah Schroeter
Hello!

On Thu, Oct 27, 2005 at 10:46:04AM -0700, John N. Brahy wrote:
[...]

strcat(mailbox, MAILSPOOLHOME);

=

strlcat(mailbox, MAILSPOOLHOME, sizeof(mailbox));

Should I look out for anything special or is it safe to do this
everywhere I see strcat or strcpy?

Works only if mailbox is directly declared as char mailbox[some_size];

If mailbox is a char*, sizeof(mailbox) is utterly wrong.

Kind regards,

Hannah.



Re: How to apply patch to already installed port (squid)

2005-10-27 Thread Mike Keller
Not sure if you have tried this, but I pulled this
from  the squid FAQ's:

2.6 How do I apply a patch or a diff?

You need the patch program. You should probably
duplicate the entire directory structure before
applying the patch. For example, if you are upgrading
from squid-1.1.10 to 1.1.11, you would run these
commands:

cd squid-2.5.STABLE3
mkdir ../squid-2.5.STABLE4
find . -depth -print | cpio -pdv
../squid-1.1.11
cd ../squid-1.1.11
patch -p1 
/tmp/squid-2.5.STABLE3-STABLE4.diff

or alternatively

cp -rl squid-2.5.STABLE3 squid-2.5.STABLE4
cd squid-2.5.STABLE4
zcat /tmp/squid-2.5.STABLE3-STABLE4.diff.gz |
patch -p1

After the patch has been applied, you must rebuild
Squid from the very beginning, i.e.:

make distclean
./configure ...
make
make install

If your patch program seems to complain or refuses to
work, you should get a more recent version, from the
GNU FTP site, for example.

Here is the link:

http://www.squid-cache.org/Doc/FAQ/FAQ-2.html#ss2.6


--- Pavel M. Ivanchev [EMAIL PROTECTED]
wrote:

 Hi there!
 I have installed squid on openbsd 3.7 from port tree
 and dansguardian 
 from source. To extend the functionality or squid i
 need to apply patch 
 for Follow X-Forwarded-For which i downloaded
 separately. Anyway my 
 quiestion is should I just copy the patch to
 patches directory in the 
 squid port and rebuild the squid  with the new 
 option?
 I couldn't find any info how to deal with such case.
 Thanks in advance



Re: strcpy to strlcpy warnings

2005-10-27 Thread Matthias Kilian
On Thu, Oct 27, 2005 at 10:46:04AM -0700, John N. Brahy wrote:
 strlcat(mailbox, MAILSPOOLHOME, sizeof(mailbox));

In addition to the other replies (pointer vs. array), the return value
should be checked to avoid truncation. You don't want errors like this:

$ cat  foo.c 'EOD'
#include stdio.h
#include string.h

int main(int argc, char *argv[]) {
char s[25] = Message: ;

argc--;
argv++;

while (argc--) {
strlcat(s, *argv++, sizeof(s));
}
puts(s);

return 0;
}
EOD
$ cc -o foo foo.c
$ ./foo I like your bumerang collection.
Message: I like your bum

[Spelling errors intended for this contrived example]

Ciao,
Kili



Re: powernow

2005-10-27 Thread Gordon Willem Klok
On Thu, Oct 27, 2005 at 02:45:49PM -0400, Gordon Willem Klok wrote:
A little clarification,

Thanks to all those that have tested this snapshot, the good news
so far is that if you dont attempt to use hw.setperf, your system should
be stable (no new bugs introduced) and from your dmesgs and the source I 
determined that much of it is working, its detecting support for FID and VID 
on your processors, examining the PSB and PST tables and finding a signature 
that matches your processor and passing a number of little checks, currently 
its screwing up and reporting an incorrect value for the number of states 
which as someone mentioned earlier is the culprit in the hang. Ted Unangst has 
a fix for this now so hopefully soon K8 users will soon have working support 
for powernow.

Again thanks for testing,
GWK 



Re: know any neat tricks for 2 * dhclient?

2005-10-27 Thread Henning Brauer
* Graham Toal [EMAIL PROTECTED] [2005-10-27 16:35]:
 (description of why it can't work deleted for brevity)
 
  Now, your bridge should bridge this dhcp-packet from one interface to the
  other? That doesn't work: its sending this packet out through that
  interface, it can't send it out on all other interfaces.
 
 So there's no solution?  I see now that the packet flow doesn't support it,
 but logically it  does make sense to want an IP from that DHCP server
 to be given to the other interface, after all any systems hanging off that
 interface *will* get an address from the DHCP server on the other
 side of the bridge, so why shouldn't I?  There has to be some way
 around it?  Some pf re-routing trick?

nothing similar will help you, since dhclient uses bpf which is very 
very deep in the stack, bridging and pf happen further up.

-- 
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)



DNS

2005-10-27 Thread Mpumi Nu Siyaya
Dear Sir / Madam
im located in SA , Johannebsurg
there is site i can no longer open , pls help it's : www.gwomen.co.za
 
i was wondering if u can provide me with a solution



Re: TV Tuner Cards; Philips 7135 Support?

2005-10-27 Thread Jacob Meuser
On Wed, Oct 26, 2005 at 11:10:29AM -0600, Whyzzi wrote:
 I didn't see any specifics in the archives or from Google. As this
 type of software tuner can be had for cheap (locally here I've found
 the Asus TV FM tuner PCI card for under $40cdn), I was wondering if
 OpenBSD had support for it?

no.  apparently some FreeBSD people have been working on drivers for
these, but I haven't seen any code yet.

-- 
[EMAIL PROTECTED]



Re: device timeout when mounting cd

2005-10-27 Thread Andrew Daugherity
On 10/27/05, Stephen Nelson [EMAIL PROTECTED] wrote:
 Is there any way I can get the device to fall back to a legacy mode that
 would allow me to get further?

I've seen some CD-ROM drives claim to support UDMA2 but not work
properly in UDMA mode.  You could try setting the flags to disable DMA
on it, see atapiscsi(4).  'boot -c' to enter UKC [see boot_config(8)];
'change atapiscsi' and set the flags accordingly.

This may or may not help, but it's worth a try.  Definitely try a
recent snapshot also.

-Andrew



Re: device timeout when mounting cd

2005-10-27 Thread Uwe Dippel
On Wed, 26 Oct 2005 10:23:23 +1300, Stephen Nelson wrote:

 When I attempt to mount a cd or read the disklabel, I get this error 
 from the kernel:
 
 Oct 26 10:08:59 develop /bsd: cd0(pciide0:0:0): timeout
 Oct 26 10:08:59 develop /bsd: cd0(pciide0:0:0): timeout
 Oct 26 10:08:59 develop /bsd:   type: atapi
 Oct 26 10:08:59 develop /bsd:   type: atapi
 Oct 26 10:08:59 develop /bsd:   c_bcount: 0
 Oct 26 10:08:59 develop /bsd:   c_bcount: 0
 Oct 26 10:08:59 develop /bsd:   c_skip: 0
 Oct 26 10:08:59 develop /bsd:   c_skip: 0

How far did you go on your own to debug this ?
Did you try to swap the drive ?
Did you try to swap the cable ?
Do you have another OS on your system to try from there ?
Have you tried some flags from 'man wd' to bring down the PIO/DMA ?

Uwe



Re: device timeout when mounting cd

2005-10-27 Thread Stephen Nelson

Andrew Daugherity wrote:


I've seen some CD-ROM drives claim to support UDMA2 but not work
properly in UDMA mode.  You could try setting the flags to disable DMA
on it, see atapiscsi(4).  'boot -c' to enter UKC [see boot_config(8)];
'change atapiscsi' and set the flags accordingly.

This may or may not help, but it's worth a try.  Definitely try a
recent snapshot also.

-Andrew
 

I have tried disabling UDMA, and UDMA and DMA, with no change. I have 
also tried the latest snapshot from ftp.


Any more ideas?

I have found a PR4570 which seems to be a similar problem.
Interestingly, this was with an nForce4 chipset, whereas my chipset is 
Intel.


Thanks,

Stephen



Re: device timeout when mounting cd

2005-10-27 Thread Stephen Nelson

How far did you go on your own to debug this ?


I'm new to OpenBSD and I don't know how to debug this any further. I'm open to
suggestions though and prepared to learn.


Did you try to swap the drive ?
Did you try to swap the cable ?
Do you have another OS on your system to try from there ?


I have had this drive working correctly with Gentoo Linux and an identical drive
on another machine working with Windows XP.
I haven't changed the drive or the hardware as I can boot from cd with openbsd,
and the drive works with Linux. This is a new machine and I don't want to have
to open the case if I can avoid it as it is sealed.


Have you tried some flags from 'man wd' to bring down the PIO/DMA ?


I have followed Andrew Daugherity's suggestion of disabling UDMA and DMA from
boot_config without success.
dmesg reports that my device uses atapiscsi not wd.

Thanks for your help,

Stephen



Re: TV Tuner Cards; Philips 7135 Support?

2005-10-27 Thread Whyzzi
Heh, I saw something like that in a google search that I conducted
after I posted to the misc list. I found a freebsd list post that
offered up this

http://lists.freebsd.org/pipermail/freebsd-hardware/2005-January/002219.html

which leads to unofficial driver URL:

http://download.purpe.com/

However, I am not brave enough to even attempt a compile under OpenBSD
(especially since it is a lkm).

Thanks Anyways!

Peter Verhagen

On 27/10/05, Jacob Meuser [EMAIL PROTECTED] wrote:
 On Wed, Oct 26, 2005 at 11:10:29AM -0600, Whyzzi wrote:
  I didn't see any specifics in the archives or from Google. As this
  type of software tuner can be had for cheap (locally here I've found
  the Asus TV FM tuner PCI card for under $40cdn), I was wondering if
  OpenBSD had support for it?

 no.  apparently some FreeBSD people have been working on drivers for
 these, but I haven't seen any code yet.

 --
 [EMAIL PROTECTED]




--
I know too much and yet not enough



Re: device timeout when mounting cd

2005-10-27 Thread Andrew Daugherity
On 10/27/05, Stephen Nelson [EMAIL PROTECTED] wrote:
 Any more ideas?

 I have found a PR4570 which seems to be a similar problem.
 Interestingly, this was with an nForce4 chipset, whereas my chipset is
 Intel.

I completely missed that you're running amd64 (I saw Intel Xeon, and
thought i386).  You might try an i386 kernel (maybe the bsd.rd
installer, as you don't want to mix libs between i386 and amd64) to
see if the CD-ROM works there.  If it works under i386, then it looks
like a bug somewhere in the amd64 kernel, and might be worth filing a
bug over (or perhaps adding comments to PR4570).

More data is good.  If you can swap the drive, that would be a good
test.  Also, testing other BSDs can't hurt -- NetBSD, OpenBSD, and
FreeBSD share some code, Net and Open more so than Free; although
they've diverged quite a bit, sometimes drivers (and bugfixes) are
ported between them.  Note that saying but it works in NetBSD, fix
it! isn't likely to get you much help here, but it's also broken in
NetBSD might help track down the bug.  I'm not an OpenBSD developer,
so if someone who is one chimes in, take their word over mine.  :-)


Andrew