Multicast sending error

2007-06-11 Thread tantric The
Hi,
  I tried this program(below) on Linux  OpenBSD. It
works on Linux but not on OpenBSD.
The program, which is trivial, tries to send a
multicast packet to a mcast group. send() fails with
Host is down error message. Its working perfectly
with Linux and I am able to recieve that packet from
OpenBSD too.

Any suggestions ?
 
regards
Praveen


/* Sorry for the bad formatting */

#include sys/types.h
#include sys/socket.h
#include arpa/inet.h
#include netinet/in.h
#include netdb.h
#include err.h
#include string.h


#define GROUP   239.7.6.3
#define PORT9227
#define SND_IF_IP   172.16.0.3

int main()
{
int sd, rc,  i;
unsigned char   ttl, loop;
char buf[] = Hello World!\n;
struct in_addr  ina_if;
struct sockaddr_in  sin;

sd = socket(PF_INET, SOCK_DGRAM, 0);

sd = socket(PF_INET, SOCK_DGRAM, 0);

if  (sd  0)
err(1, socket() failed);


ina_if.s_addr = inet_addr(SND_IF_IP);

rc = setsockopt(sd, IPPROTO_IP,
P_MULTICAST_IF,
ina_if, sizeof(ina_if));
if (rc  0)
 err(1, setsockopt(IP_MULTICAST_IF)
failed);

loop = 1;
rc = setsockopt(sd, IPPROTO_IP,
IP_MULTICAST_LOOP, loop, sizeof(loop));

if (rc  0)
err(1, setsockopt(IP_MULTICAST_LOOP)
failed);


sin.sin_family  = AF_INET;
sin.sin_port= htons(PORT);
sin.sin_addr.s_addr = inet_addr(GROUP);

rc = connect(sd, (struct sockaddr *) sin,
sizeof(sin));

if (rc  0)
err(1, connect() failed);

ttl = 1;
rc = setsockopt(sd, IPPROTO_IP,
IP_MULTICAST_TTL, ttl, sizeof(ttl));

for (i = 0; i  100; i++ ) {
printf(Sending\n);
rc = send(sd, buf, strlen(buf), 0);

if (rc  0)
err(1, sendto() failed);
}

return 0;
}



 

Bored stiff? Loosen up... 
Download and play hundreds of games for free on Yahoo! Games.
http://games.yahoo.com/games/front



Re: WWW to go public, if pf would let me

2007-06-11 Thread Greg Thomas

On 6/9/07, Marti Martinez [EMAIL PROTECTED] wrote:

On 6/9/07, Bray Mailloux [EMAIL PROTECTED] wrote:
 So, I'm trying to get my WWW server, public: 64.142.102.11; private:
 192.168.1.4, to answer requests from the internet. Each time I try to
 access the public address, via firefox, the browser claims it does not
 exist.

Try some more basic network layer stuff -- can you ping it? telnet to
port 80? if yes on the latter, you're good. Also, apply a little
thought-powder and do some troubleshooting, or explain to us what
you've done -- can you get the pages locally? How about with PF turned
off?

More info will help!



Yes, more troubleshooting on Bray's part would help.  He needs to
build some basic routines when he encounters troubles like these.
Basically if I don't have a good idea where the problem might lay I
start from the bottom and work up.  For me a simple routine in this
case would be to rule out network configs, rule out PF, rule out DNS
issues, and rule out httpd issues with some intermediary steps between
those.

Greg

--
http://ticketmastersucks.org/tracker.html

Dethink to survive - Mclusky



Multicast sending

2007-06-11 Thread Praveen
Hi,
  I am using the send program from this example:
http://ntrg.cs.tcd.ie/undergrad/4ba2/multicast/antony/example.html#sender

The only modification is the use of setsockopt() to
set the interface from which I want to send the
packet.
The setsockopt() succeeds but sendto() fails with
host is down message. Any clues?. 
The program works fine on a Linux machine.

regards
Praveen


   

Boardwalk for $500? In 2007? Ha! Play Monopoly Here and Now (it's updated for 
today's economy) at Yahoo! Games.
http://get.games.yahoo.com/proddesc?gamekey=monopolyherenow  



sensors process use 10% CPU time and high memory

2007-06-11 Thread Jean-Gérard Pailloncy
Hi,

I have 3 Tyan Trinity GC-SL boxes with OpenBSD 4.1. sensors kernel process
use 10% of the CPU time and have RES high up to 74 MB.
I did not have a sensorsd daemon runing.
I do the same on my soekris, nothing like that.

Any idea ?
JG Pailloncy

# top -uIS -s1
load averages:  1.18,  0.96,  0.75
09:34:33
70 processes:  5 running, 64 idle, 1 on processor
CPU states:  3.2% user,  0.0% nice, 11.4% system,  0.0% interrupt, 85.4% idle
Memory: Real: 75M/388M act/tot  Free: 615M  Swap: 0K/1028M used/tot
renice
  PIDUID   PRI NICE  SIZE   RES STATEWAIT TIMECPU COMMAND
5  01000K   40M sleeptimeou  57:32  9.03% sensors
# sysctl hw.sensors
hw.sensors.lm1.temp0=0.00 degC
hw.sensors.lm1.temp1=-44.50 degC
hw.sensors.lm1.temp2=-44.50 degC
hw.sensors.lm1.fan0=3199 RPM
hw.sensors.lm1.fan1=49 RPM
hw.sensors.lm1.fan2=49 RPM
hw.sensors.lm1.volt0=0.00 VDC (VCore)
hw.sensors.lm1.volt1=0.00 VDC (VINR0)
hw.sensors.lm1.volt2=0.00 VDC (+3.3V)
hw.sensors.lm1.volt3=0.00 VDC (+5V)
hw.sensors.lm1.volt4=0.00 VDC (+12V)
hw.sensors.lm1.volt5=-14.91 VDC (-12V)
hw.sensors.lm1.volt6=4.56 VDC (-5V)
hw.sensors.lm1.volt7=0.00 VDC (5VSB)
hw.sensors.lm1.volt8=0.00 VDC (VBAT)
# dmesg
OpenBSD 4.1 (GENERIC) #1435: Sat Mar 10 19:07:45 MST 2007
[EMAIL PROTECTED]:/usr/src/sys/arch/i386/compile/GENERIC
cpu0: Intel(R) Pentium(R) 4 CPU 2.66GHz (GenuineIntel 686-class) 2.66 GHz
cpu0:
FPU,V86,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,CNXT-ID,xTPR
real mem  = 1073246208 (1048092K)
avail mem = 745324544 (727856K)
using 4278 buffers containing 280363008 bytes (273792K) of memory
mainbus0 (root)
bios0 at mainbus0: AT/286+ BIOS, date 11/09/04, BIOS32 rev. 0 @ 0xfdb80,
SMBIOS rev. 2.3 @ 0xf0640 (50 entries)
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 @ 0xf4ee0/272 (15 entries)
pcibios0: PCI Interrupt Router at 000:01:7 (ServerWorks CSB5 rev 0x00)
pcibios0: PCI bus #0 is the last bus
bios0: ROM list: 0xc/0x8000 0xc8000/0x2200 0xca800/0x1000 0xcb800/0x1800
acpi at mainbus0 not configured
cpu0 at mainbus0
pci0 at mainbus0 bus 0: configuration mode 1 (no bios)
pchb0 at pci0 dev 0 function 0 ServerWorks GCNB-LE Host rev 0x32
pchb1 at pci0 dev 0 function 1 ServerWorks GCNB-LE Host rev 0x00
pci1 at pchb1 bus 1
ami0 at pci1 dev 3 function 0 Symbios Logic MegaRAID rev 0x01: irq 10
ami0: LSI 520, 64b/lhc, FW 1L37, BIOS vG119, 64MB RAM
ami0: 1 channels, 0 FC loops, 1 logical drives
scsibus0 at ami0: 40 targets
sd0 at scsibus0 targ 0 lun 0: AMI, Host drive #00,  SCSI2 0/direct fixed
sd0: 70512MB, 70512 cyl, 64 head, 32 sec, 512 bytes/sec, 144408576 sec total
scsibus1 at ami0: 16 targets
vga1 at pci0 dev 7 function 0 ATI Rage XL rev 0x27
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
fxp0 at pci0 dev 8 function 0 Intel 8255x rev 0x10, i82551: irq 9,
address 00:e0:81:29:42:76
inphy0 at fxp0 phy 1: i82555 10/100 PHY, rev. 4
piixpm0 at pci0 dev 15 function 0 ServerWorks CSB5 rev 0x93: polling
iic0 at piixpm0
lm1 at iic0 addr 0x28: W83782D
piixpm0: exec: op 1, addr 0x49, cmdlen 1, len 0, flags 0x08: timeout,
status 0x9BUSY,BUSERR
pciide0 at pci0 dev 15 function 1 ServerWorks CSB5 IDE rev 0x93: DMA
atapiscsi0 at pciide0 channel 0 drive 0
scsibus2 at atapiscsi0: 2 targets
cd0 at scsibus2 targ 0 lun 0: SAMSUNG, CD-ROM SH-152A, C504 SCSI0
5/cdrom removable
cd0(pciide0:0:0): using PIO mode 4, DMA mode 2, Ultra-DMA mode 2
ohci0 at pci0 dev 15 function 2 ServerWorks OSB4/CSB5 USB rev 0x05: irq
10, version 1.0, legacy support
usb0 at ohci0: USB revision 1.0
uhub0 at usb0
uhub0: ServerWorks OHCI root hub, rev 1.00/1.00, addr 1
uhub0: 4 ports with 4 removable, self powered
pchb2 at pci0 dev 15 function 3 ServerWorks CSB5 LPC rev 0x00
pchb3 at pci0 dev 16 function 0 ServerWorks CIOB-X2 PCIX rev 0x05
pchb4 at pci0 dev 16 function 2 ServerWorks CIOB-X2 PCIX rev 0x05
pci2 at pchb4 bus 2
em0 at pci2 dev 7 function 0 Intel PRO/1000MT (82545EM) rev 0x01: irq 5,
address 00:e0:81:29:42:77
isa0 at mainbus0
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
lpt0 at isa0 port 0x378/4 irq 7
npx0 at isa0 port 0xf0/16: reported by CPUID; using exception 16
pccom0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo
pccom0: console
pccom1 at isa0 port 0x2f8/8 irq 3: ns16550a, 16 byte fifo
fdc0 at isa0 port 0x3f0/6 irq 6 drq 2
fd0 at fdc0 drive 0: 1.44MB 80 cyl, 2 head, 18 sec
biomask fd45 netmask ff65 ttymask ffe7
pctr: user-level cycle counter enabled
dkcsum: sd0 matches BIOS drive 0x80
root on sd0a
rootdev=0x400 rrootdev=0xd00 rawdev=0xd02



Re: Multicast sending error

2007-06-11 Thread Philip Guenther

On 6/10/07, tantric The [EMAIL PROTECTED] wrote:

  I tried this program(below) on Linux  OpenBSD. It
works on Linux but not on OpenBSD.
The program, which is trivial, tries to send a
multicast packet to a mcast group. send() fails with
Host is down error message. Its working perfectly
with Linux and I am able to recieve that packet from
OpenBSD too.


You need to configure your machine as a multicast host by adding the line
   multicast_host=YES

to your /etc/rc.conf.local.  If neither that nor the multicast_router
variable is set, then the OpenBSD netstart script will add a 'reject'
route for the multicast address range with the experienced result.


Philip Guenther



Getting isakmpd and MacOSX racoon to work together

2007-06-11 Thread Christopher Vance

I have several machines running OpenBSD 4.1, and am really impressed
by how easy it is to get IPSEC working between them these days. Thanks
people, it's great.

Unfortunately one other machine I'd dearly like to include is a MacOSX
10.4.9 machine, running racoon.

Yes I have googled, yes I have spent several days on this, and yes, I
do want to strangle the Mac.

Before I struggle too much longer trying to configure racoon to do the
right thing, or give in to using a package not in the OpenBSD base
system, is there someone out there actually running IPSEC with MacOSX
on one end and OpenBSD on the other, using racoon to do it?  I'd
really appreciate it if you could share working config.

Failing the above, if you've chosen between openvpn, poptop, or other
non-base packages, which worked out best for you?

--
Christopher



Re: Multicast sending error

2007-06-11 Thread Praveen
 You need to configure your machine as a multicast
 host by adding the line
 multicast_host=YES

Thank you very much, its working now.

regards
Praveen

PS:forgot CC to the list


 

Now that's room service!  Choose from over 150,000 hotels
in 45,000 destinations on Yahoo! Travel to find your fit.
http://farechase.yahoo.com/promo-generic-14795097



Re: Getting isakmpd and MacOSX racoon to work together

2007-06-11 Thread Stuart Henderson
On 2007/06/11 18:18, Christopher Vance wrote:

 Before I struggle too much longer trying to configure racoon to do the
 right thing, or give in to using a package not in the OpenBSD base
 system, is there someone out there actually running IPSEC with MacOSX
 on one end and OpenBSD on the other, using racoon to do it?  I'd
 really appreciate it if you could share working config.

Not with racoon myself, but it's probably more generally useful to
know how to work out what's going wrong.

Sometimes tcpdump gives enough clues to work things out, and is quite
easy to read, so I usually try that first. If there's a problem with
phase 1, run it on the physical interface:

# tcpdump -niphys_iface -vvs1500

for phase 2, get isakmpd to log plaintext packets and try to bring
up the connection, then read that file.

# echo p on  /var/run/isakmpd.fifo
# tcpdump -nr /var/run/isakmpd.pcap -vvs1500

If that doesn't help, turn up isakmpd logging, e.g. 'echo D A 70 
/var/run/isakmpd.fifo', this usually gives a more explicit reason for
the failure (by default in /var/log/daemon) but can be harder to read.

 Failing the above, if you've chosen between openvpn, poptop, or other
 non-base packages, which worked out best for you?

I'd keep at it with ipsec a bit longer, it's probably something
relatively straightforward. It sounds like you've got the basics with
ipsec, it sucks less than the third-party software for most uses, and
it definitely sucks less than providing the same service using in-tree
software for some users and third-party code for others...



Re: need a machine for an itanium port

2007-06-11 Thread Pete Vickers

On 9 Jun 2007, at 6:22 PM, Diana Eichert wrote:


A big shout out to deanna@ for getting this up on undeadly.org.

Okay, y'all, with deanna@'s post of dlg@'s request on undeadly.org  
this is gathering steam.  So, keep your cards(Credit) and letters($  
EUR YEN) coming, so Santa can visit Aus. a little earlier than  
usual this year.


diana



I've just transfered another 100eu to the Belgium account for this too.

Is anybody scanning ebay for a suitable machine yet ?


/Pete



Re: Multicast sending

2007-06-11 Thread Damien Miller
On Sun, 10 Jun 2007, Praveen wrote:

 Hi,
   I am using the send program from this example:
 http://ntrg.cs.tcd.ie/undergrad/4ba2/multicast/antony/example.html#sender
 
 The only modification is the use of setsockopt() to
 set the interface from which I want to send the
 packet.
 The setsockopt() succeeds but sendto() fails with
 host is down message. Any clues?. 
 The program works fine on a Linux machine.

The test program doesn't set sin_len. Try adding
addr.sin_len = sizeof(addr);. 

Also ensure that you have set up multicast on your host. Some notes
are in /etc/netstart.

-d



Re: sensors process use 10% CPU time and high memory

2007-06-11 Thread Marc Balmer
* Jean-Girard Pailloncy wrote:
 Hi,

 I have 3 Tyan Trinity GC-SL boxes with OpenBSD 4.1. sensors kernel process
 use 10% of the CPU time and have RES high up to 74 MB.
 I did not have a sensorsd daemon runing.
 I do the same on my soekris, nothing like that.

try to disable iic and ichicc in UKC (boot bsd -c).


 Any idea ?
 JG Pailloncy

 # top -uIS -s1
 load averages:  1.18,  0.96,  0.75
 09:34:33
 70 processes:  5 running, 64 idle, 1 on processor
 CPU states:  3.2% user,  0.0% nice, 11.4% system,  0.0% interrupt, 85.4%
idle
 Memory: Real: 75M/388M act/tot  Free: 615M  Swap: 0K/1028M used/tot
 renice
   PIDUID   PRI NICE  SIZE   RES STATEWAIT TIMECPU COMMAND
 5  01000K   40M sleeptimeou  57:32  9.03% sensors
 # sysctl hw.sensors
 hw.sensors.lm1.temp0=0.00 degC
 hw.sensors.lm1.temp1=-44.50 degC
 hw.sensors.lm1.temp2=-44.50 degC
 hw.sensors.lm1.fan0=3199 RPM
 hw.sensors.lm1.fan1=49 RPM
 hw.sensors.lm1.fan2=49 RPM
 hw.sensors.lm1.volt0=0.00 VDC (VCore)
 hw.sensors.lm1.volt1=0.00 VDC (VINR0)
 hw.sensors.lm1.volt2=0.00 VDC (+3.3V)
 hw.sensors.lm1.volt3=0.00 VDC (+5V)
 hw.sensors.lm1.volt4=0.00 VDC (+12V)
 hw.sensors.lm1.volt5=-14.91 VDC (-12V)
 hw.sensors.lm1.volt6=4.56 VDC (-5V)
 hw.sensors.lm1.volt7=0.00 VDC (5VSB)
 hw.sensors.lm1.volt8=0.00 VDC (VBAT)
 # dmesg
 OpenBSD 4.1 (GENERIC) #1435: Sat Mar 10 19:07:45 MST 2007
 [EMAIL PROTECTED]:/usr/src/sys/arch/i386/compile/GENERIC
 cpu0: Intel(R) Pentium(R) 4 CPU 2.66GHz (GenuineIntel 686-class) 2.66 GHz
 cpu0:

FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUS
H,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,CNXT-ID,xTPR
 real mem  = 1073246208 (1048092K)
 avail mem = 745324544 (727856K)
 using 4278 buffers containing 280363008 bytes (273792K) of memory
 mainbus0 (root)
 bios0 at mainbus0: AT/286+ BIOS, date 11/09/04, BIOS32 rev. 0 @ 0xfdb80,
 SMBIOS rev. 2.3 @ 0xf0640 (50 entries)
 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 @ 0xf4ee0/272 (15 entries)
 pcibios0: PCI Interrupt Router at 000:01:7 (ServerWorks CSB5 rev 0x00)
 pcibios0: PCI bus #0 is the last bus
 bios0: ROM list: 0xc/0x8000 0xc8000/0x2200 0xca800/0x1000
0xcb800/0x1800
 acpi at mainbus0 not configured
 cpu0 at mainbus0
 pci0 at mainbus0 bus 0: configuration mode 1 (no bios)
 pchb0 at pci0 dev 0 function 0 ServerWorks GCNB-LE Host rev 0x32
 pchb1 at pci0 dev 0 function 1 ServerWorks GCNB-LE Host rev 0x00
 pci1 at pchb1 bus 1
 ami0 at pci1 dev 3 function 0 Symbios Logic MegaRAID rev 0x01: irq 10
 ami0: LSI 520, 64b/lhc, FW 1L37, BIOS vG119, 64MB RAM
 ami0: 1 channels, 0 FC loops, 1 logical drives
 scsibus0 at ami0: 40 targets
 sd0 at scsibus0 targ 0 lun 0: AMI, Host drive #00,  SCSI2 0/direct fixed
 sd0: 70512MB, 70512 cyl, 64 head, 32 sec, 512 bytes/sec, 144408576 sec
total
 scsibus1 at ami0: 16 targets
 vga1 at pci0 dev 7 function 0 ATI Rage XL rev 0x27
 wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
 wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
 fxp0 at pci0 dev 8 function 0 Intel 8255x rev 0x10, i82551: irq 9,
 address 00:e0:81:29:42:76
 inphy0 at fxp0 phy 1: i82555 10/100 PHY, rev. 4
 piixpm0 at pci0 dev 15 function 0 ServerWorks CSB5 rev 0x93: polling
 iic0 at piixpm0
 lm1 at iic0 addr 0x28: W83782D
 piixpm0: exec: op 1, addr 0x49, cmdlen 1, len 0, flags 0x08: timeout,
 status 0x9BUSY,BUSERR
 pciide0 at pci0 dev 15 function 1 ServerWorks CSB5 IDE rev 0x93: DMA
 atapiscsi0 at pciide0 channel 0 drive 0
 scsibus2 at atapiscsi0: 2 targets
 cd0 at scsibus2 targ 0 lun 0: SAMSUNG, CD-ROM SH-152A, C504 SCSI0
 5/cdrom removable
 cd0(pciide0:0:0): using PIO mode 4, DMA mode 2, Ultra-DMA mode 2
 ohci0 at pci0 dev 15 function 2 ServerWorks OSB4/CSB5 USB rev 0x05: irq
 10, version 1.0, legacy support
 usb0 at ohci0: USB revision 1.0
 uhub0 at usb0
 uhub0: ServerWorks OHCI root hub, rev 1.00/1.00, addr 1
 uhub0: 4 ports with 4 removable, self powered
 pchb2 at pci0 dev 15 function 3 ServerWorks CSB5 LPC rev 0x00
 pchb3 at pci0 dev 16 function 0 ServerWorks CIOB-X2 PCIX rev 0x05
 pchb4 at pci0 dev 16 function 2 ServerWorks CIOB-X2 PCIX rev 0x05
 pci2 at pchb4 bus 2
 em0 at pci2 dev 7 function 0 Intel PRO/1000MT (82545EM) rev 0x01: irq 5,
 address 00:e0:81:29:42:77
 isa0 at mainbus0
 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
 lpt0 at isa0 port 0x378/4 irq 7
 npx0 at isa0 port 0xf0/16: reported by CPUID; using exception 16
 pccom0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo
 pccom0: console
 pccom1 at isa0 port 0x2f8/8 irq 3: ns16550a, 16 byte fifo
 fdc0 at isa0 port 0x3f0/6 irq 6 drq 2
 fd0 at fdc0 drive 0: 1.44MB 80 cyl, 2 head, 18 sec
 biomask fd45 netmask ff65 

Re: 4.1 with network card issue -solved

2007-06-11 Thread riwanlky

Hi All,

Regarding the issue I mentioned below, it is because I am using
the Intel Motherboard. I have read some email before regarding
the same problem, in those email, need to change the
vparam.h (something) and to build the stable.

I was able to run the OpenBSD 4.1 with the hardware now.

Sorry for the noise.

Best regards,
Riwan

At 03:21 PM 6/9/2007 +0700, riwanlky wrote:

HI All,

I am having problem with network card on Intel Motherboard on OpenBSD 4.1.
However the same motherboard and network card do not have problem wiht
OpenBSD 4.0

When loading the card:
em0 at pci3 dev 0 function 0 Intel PRO/1000MT (82573e) rev 
0x03uvm_fault(0xd0691180,

 0x1f000, 0, 1) -
fatal page fault (6) in supervisor mode
trap type 6 code 0 eip d02b0a10 cs 8 eflags 10202 cr2 1ff07 cp0
panic: trap type 6, code-0, pc-d02b0a10

the operating system has halted
please press any key to reboot

On OpenBSD 4.0 the dmesg:
OpenBSD 4.0 (GENERIC) #1107: Sat Sep 16 19:15:58 MDT 2006
[EMAIL PROTECTED]:/usr/src/sys/arch/i386/compile/GENERIC
RTC BIOS diagnostic error 3
cpu0: Intel(R) Pentium(R) 4 CPU 3.00GHz (GenuineIntel 686-class) 3.01 GHz
cpu0: 
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CF
LUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,SSE3,MWAIT,DS-CPL,EST,TM2,CNXT-ID,C 


X16
cpu0: EST: strange msr value 0x0f270f27
real mem = 533651456 (521144K)
avail mem = 478867456 (467644K)
using 4256 buffers containing 26783744 bytes (26156K) of memory
RTC BIOS diagnostic error 3
mainbus0 (root)
bios0 at mainbus0: AT/286+(00) BIOS, date 07/11/06, SMBIOS rev. 2.4 @ 
0x1fe0e000

(42 entries)
bios0: Intel Corporation S3000AH
pcibios at bios0 function 0x1a not configured
bios0: ROM list: 0xc/0x9000
cpu0 at mainbus0
pci0 at mainbus0 bus 0: configuration mode 1 (no bios)
pchb0 at pci0 dev 0 function 0 Intel E7230 MCH rev 0x00
ppb0 at pci0 dev 28 function 0 Intel 82801GB PCIE rev 0x01
pci1 at ppb0 bus 1
ppb1 at pci0 dev 28 function 4 Intel 82801G PCIE rev 0x01
pci2 at ppb1 bus 2
ppb2 at pci0 dev 28 function 5 Intel 82801G PCIE rev 0x01
pci3 at ppb2 bus 3
em0 at pci3 dev 0 function 0 Intel PRO/1000MT (82573E) rev 0x03: irq 9, 
addres

s 00:15:17:13:c7:36
uhci0 at pci0 dev 29 function 0 Intel 82801GB USB rev 0x01: irq 10
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 82801GB USB rev 0x01: irq 11
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 82801GB USB rev 0x01: irq 11
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 82801GB USB rev 0x01: irq 11
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 82801GB USB rev 0x01: irq 10
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
ppb3 at pci0 dev 30 function 0 Intel 82801BA AGP rev 0xe1
pci4 at ppb3 bus 4
vga1 at pci4 dev 4 function 0 ATI ES1000 rev 0x02
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
em1 at pci4 dev 5 function 0 Intel PRO/1000MT (82541GI) rev 0x05: irq 9, 
addre

ss 00:15:17:13:c7:37
ichpcib0 at pci0 dev 31 function 0 Intel 82801GB LPC rev 0x01: PM disabled
pciide0 at pci0 dev 31 function 1 Intel 82801GB IDE rev 0x01: DMA, 
channel 0 c

onfigured to compatibility, channel 1 configured to compatibility
wd0 at pciide0 channel 0 drive 0: ST320413A
wd0: 16-sector PIO, LBA, 19092MB, 39102336 sectors
wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 5
pciide0: channel 1 disabled (no drives)
ichiic0 at pci0 dev 31 function 3 Intel 82801GB SMBus rev 0x01: irq 11
iic0 at ichiic0
adt0 at iic0 addr 0x2e: sch5017 rev 0x8a
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
pmsi0 at pckbc0 (aux slot)
pckbc0: using irq 12 for aux slot
wsmouse0 at pmsi0 mux 0
pcppi0 at isa0 port 0x61
midi0 at pcppi0: PC speaker
spkr0 at pcppi0
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 eded netmask efed ttymask ffef
pctr: user-level cycle counter enabled
dkcsum: wd0 matches BIOS drive 0x80
root on wd0a
rootdev=0x0 rrootdev=0x300 rawdev=0x302

thanks and best regards,
riwan




Re: 4.1 panic 4.0 ok -solved

2007-06-11 Thread riwanlky

Hi All,

Regarding the issue I mentioned below, it is because I am using
the Intel Motherboard. I have read some email before regarding
the same problem, in those email, need to change the
vparam.h (something) and to build the stable.

I was able to run the OpenBSD 4.1 with the hardware now.

Sorry for the noise.

Best regards,
Riwan



At 04:35 PM 6/4/2007 +0700, riwanlky wrote:

Hi All,

I have a problem with new installation on my new Intel board server.
However installing the OBSD 4.0 on the same server work. The OBSD 4.1
panic on uhci0, I think.

It said kernel panic and halt.

Dmesg from the same server with OBSD 4.0
OpenBSD 4.0 (GENERIC) #1107: Sat Sep 16 19:15:58 MDT 2006
[EMAIL PROTECTED]:/usr/src/sys/arch/i386/compile/GENERIC
RTC BIOS diagnostic error 3
cpu0: Intel(R) Pentium(R) 4 CPU 3.00GHz (GenuineIntel 686-class) 3.01 GHz
cpu0: 
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CF

LUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,SSE3,MWAIT,DS-CPL,EST,TM2,CNXT-ID,C
X16
cpu0: EST: strange msr value 0x0f270f27
real mem  = 533651456 (521144K)
avail mem = 478867456 (467644K)
using 4256 buffers containing 26783744 bytes (26156K) of memory
RTC BIOS diagnostic error 3
mainbus0 (root)
bios0 at mainbus0: AT/286+(00) BIOS, date 07/11/06, SMBIOS rev. 2.4 @ 
0x1fe0e000

 (42 entries)
bios0: Intel Corporation S3000AH
pcibios at bios0 function 0x1a not configured
bios0: ROM list: 0xc/0x9000
cpu0 at mainbus0
pci0 at mainbus0 bus 0: configuration mode 1 (no bios)
pchb0 at pci0 dev 0 function 0 Intel E7230 MCH rev 0x00
ppb0 at pci0 dev 28 function 0 Intel 82801GB PCIE rev 0x01
pci1 at ppb0 bus 1
ppb1 at pci0 dev 28 function 4 Intel 82801G PCIE rev 0x01
pci2 at ppb1 bus 2
ppb2 at pci0 dev 28 function 5 Intel 82801G PCIE rev 0x01
pci3 at ppb2 bus 3
em0 at pci3 dev 0 function 0 Intel PRO/1000MT (82573E) rev 0x03: irq 9, 
addres

s 00:15:17:13:c7:36
uhci0 at pci0 dev 29 function 0 Intel 82801GB USB rev 0x01: irq 10
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 82801GB USB rev 0x01: irq 11
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 82801GB USB rev 0x01: irq 11
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 82801GB USB rev 0x01: irq 11
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 82801GB USB rev 0x01: irq 10
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
ppb3 at pci0 dev 30 function 0 Intel 82801BA AGP rev 0xe1
pci4 at ppb3 bus 4
vga1 at pci4 dev 4 function 0 ATI ES1000 rev 0x02
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
em1 at pci4 dev 5 function 0 Intel PRO/1000MT (82541GI) rev 0x05: irq 9, 
addre

ss 00:15:17:13:c7:37
ichpcib0 at pci0 dev 31 function 0 Intel 82801GB LPC rev 0x01: PM disabled
pciide0 at pci0 dev 31 function 1 Intel 82801GB IDE rev 0x01: DMA, 
channel 0 c

onfigured to compatibility, channel 1 configured to compatibility
wd0 at pciide0 channel 0 drive 0: ST320413A
wd0: 16-sector PIO, LBA, 19092MB, 39102336 sectors
wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 5
pciide0: channel 1 disabled (no drives)
ichiic0 at pci0 dev 31 function 3 Intel 82801GB SMBus rev 0x01: irq 11
iic0 at ichiic0
adt0 at iic0 addr 0x2e: sch5017 rev 0x8a
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
pmsi0 at pckbc0 (aux slot)
pckbc0: using irq 12 for aux slot
wsmouse0 at pmsi0 mux 0
pcppi0 at isa0 port 0x61
midi0 at pcppi0: PC speaker
spkr0 at pcppi0
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 eded netmask efed ttymask ffef
pctr: user-level cycle counter enabled
dkcsum: wd0 matches BIOS drive 0x80
root on wd0a
rootdev=0x0 rrootdev=0x300 rawdev=0x302

OBSD 4.1 stop at: (i couldn't attached the message, i see it several 
time... on the

same spot...)
cpu0: EST: strange msr value 0x0f270f27
real mem  = 533651456 (521144K)
avail mem = 478867456 (467644K)
using 4256 buffers containing 26783744 bytes (26156K) of memory
RTC BIOS diagnostic error 3
mainbus0 (root)
bios0 at mainbus0: AT/286+(00) BIOS, date 07/11/06, SMBIOS rev. 2.4 @ 
0x1fe0e000

 (42 entries)
bios0: Intel Corporation S3000AH
pcibios at bios0 function 0x1a not configured
bios0: ROM list: 

Re: Multicast sending

2007-06-11 Thread Philip Guenther

On 6/11/07, Damien Miller [EMAIL PROTECTED] wrote:
...

The test program doesn't set sin_len. Try adding
addr.sin_len = sizeof(addr);.


I don't believe that's necessary.  According to Stevens's UNIX
Network Programming, the only time a user-space program needs to set
the sin_len member is when using routing sockets.  Indeed, an
examination of sys_connect(), sys_bind(), and sys_sendto() show that
they all use sockargs() to copy the supplied socket address into the
kernel address space and that routine sets the sin_len member to the
supplied length argument.


Philip Guenther



Re: Sometime NAT, sometimes NOT?

2007-06-11 Thread Geraerts Andy
 We have an OpenBSD firewall running for a while now. Since a few days we
 encounter some sort of selective natting. I try to ping a host, I get
reply,
 and 2 minutes later I try to ping the same host and I dont get replies.

So despite the state being created in both instances, you see a packet
egress your external interface with the source address of the internal
host instead of the external interface of the NAT box?

We indeed see the state being created. The packet egresses on the external
interface without NAT. So the ip packet contains the source ip address of my
laptop and therefor further on the path gets blocked because it isn't natted.
A few seconds/minutes later I try again and everything works again.

Is there a way to see why it isn't doing the NAT?

(There are around 80 interfaces (vlan + carp) on the box.)

Regards,

Andy.



No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.5.472 / Virus Database: 269.8.13/843 - Release Date: 10/06/2007
13:39


__

This email and any files transmitted with it are confidential and intended
solely for the use of the individual or entity to whom they are addressed.
If you have received this email in error please notify the system manager at :
[EMAIL PROTECTED] or call +32-(0)11-240234.
This footnote also confirms that this email message has been swept by Sophos
for the presence of computer viruses.
__



Re: sensors process use 10% CPU time and high memory

2007-06-11 Thread Jean-Gérard Pailloncy
 I have 3 Tyan Trinity GC-SL boxes with OpenBSD 4.1. sensors kernel
 process
 use 10% of the CPU time and have RES high up to 74 MB.
 I did not have a sensorsd daemon runing.
 I do the same on my soekris, nothing like that.

 try to disable iic and ichicc in UKC (boot bsd -c).
Works.
Thank you.
JG



Re: need a machine for an itanium port

2007-06-11 Thread Diana Eichert

On Fri, 8 Jun 2007, Diana Eichert wrote:

Sad, well I'll throw US$100 into the mix if someone wants to 
co-ordinate it. I don't have any use for Itanium, but I do know that 
dlg@ has done some great work, so I might as well support him in 
something he wants to do.


Anyone else?

dian


I just saw dlg@'s post on the undeadly thread, 
http://undeadly.org/cgi?action=articlesid=20070609153557mode=expandedcount=8


It looks like we have enough to go ahead and get a machine. Thanks 
everyone :)


Now I just have to find a machine...


Since I'm not in Aus I can't help him find a system, but if there's anyone 
over there who can assist I'm sure dlg@ would appreciate the help.


Thanks everyone for getting this together.

g.day



MINIROOTSIZE query

2007-06-11 Thread mgb

List,

I have a question regarding the value given to MINIROOTSIZE in a kernel 
configuration file.

I have a working ramdisk build (4.1) which has a MINIROOTSIZE of 23000.
Howeverr I try a MINIROOTSIZE of 32768 and the boot stalls at the entry 
point part.  Please see below:


PC Engines WRAP.2B/2C v1.11
640 KB Base Memory
130048 KB Extended Memory

01F0 - no drive found !
ROM segment 0xe000 length 0x8000 reloc 0x
Etherboot 5.4.3 (GPL) http://etherboot.org
Drivers: NATSEMI   Images: NBI ELF Multiboot a.out PXE   Exports: PXE
Protocols: DHCP TFTP
Relocating _text from: [0008bb80,0009fd90) to [07eebdf0,07f0)
Boot from (N)etwork (D)isk or (Q)uit?

Probing pci nic...
[dp83815]
natsemi_probe: MAC addr 00:0D:B9:04:47:F8 at ioaddr 0X1000
natsemi_probe: Vendor:0X100B Device:0X0020
dp83815: Transceiver default autoneg. enabled, advertise 100 full duplex.
dp83815: Transceiver status 7869 advertising 05E1
dp83815: Setting half-duplex based on negotiated link capability.
Searching for server (DHCP).
Me: 192.168.1.201, DHCP: 192.168.1.1, TFTP: 192.168.1.1, Gateway 192.168.1.1
Loading 192.168.1.1:pxeboot ...(PXE)done
probing: pc0 com0 pci pxe![2.1] mem[640K 125M a20=on]
disk:
net: mac 00:0d:b9:04:47:f8, ip 192.168.1.201, server 192.168.1.1
 OpenBSD/i386 PXEBOOT 1.11
switching console to com0
 OpenBSD/i386 PXEBOOT 1.11
com0: changing speed to 38400 baud in 5 seconds, change your terminal to 
match!


com0: 38400 baud
booting tftp:bsd.rd: 18742548+237116 [52+117504+107223]=0x1250ad0
dp83815: Setting half-duplex based on negotiated link capability.
entry point at 0x200120

Any ideas why this is and what needs to be done to stop the stalling?
My board has the following memory, if that helps.
real mem  = 132657152 (129548K)
avail mem = 106545152 (104048K)

Thanks for your time



Enregistrement

2007-06-11 Thread Marie-Thé Robin
Bonjour,

Suite ` lintirjt croissant de la protection sur Internet,
lenregistrement de votre marque est devenue une prioriti.
Dicouvrez de linformation pertinente, une illustration et un outil clair
pour se garantir pendant des annies, des cybersquatteurs.

Dans lattente dun prochain contact,
Veuillez accepter ma considiration distinguie.
Marie-Thi ROBIN
[EMAIL PROTECTED]
http://www.nom-domaine.com

 br/
Offre riservie exclusivement aux entreprises.

Conformiment ` la Loi Informatique et Libertis parue au Journal Officiel
du 6 janvier 1978, vous disposez d'un droit d'acchs, de rectification, et
d'opposition aux donnies personnelles vous concernant. Pour ne plus
recevoir d'informations de notre part, Cliquez ici



Re: Getting isakmpd and MacOSX racoon to work together

2007-06-11 Thread Björn Ketelaars
On Mon, 11 Jun 2007 18:18:45 +1000, Christopher Vance
[EMAIL PROTECTED] wrote:
 I have several machines running OpenBSD 4.1, and am really impressed
 by how easy it is to get IPSEC working between them these days. Thanks
 people, it's great.
 
 Unfortunately one other machine I'd dearly like to include is a MacOSX
 10.4.9 machine, running racoon.
 
 Yes I have googled, yes I have spent several days on this, and yes, I
 do want to strangle the Mac.
 
 Before I struggle too much longer trying to configure racoon to do the
 right thing, or give in to using a package not in the OpenBSD base
 system, is there someone out there actually running IPSEC with MacOSX
 on one end and OpenBSD on the other, using racoon to do it?  I'd
 really appreciate it if you could share working config.
 
 Failing the above, if you've chosen between openvpn, poptop, or other
 non-base packages, which worked out best for you?
 
 --
 Christopher

I'm using an IPSEC-tunnel on my Macbook (OSX) to an OpenBSD 4.1 machine.
After giving up on Racoon I tried IPSecuritas
(http://www.lobotomo.com/index.html). IPSecuritas is a GUI in combination
with a 'own' compiled version of Racoon (newer version, better
NAT-Traversal support etecera).

Before looking at IPSecuritas I tried OpenVPN. Personally I realy dislike
the idea of installing third-party kernel modules on my Macbook (there are
no tun-interfaces on a standard OSX-install). On the other side; it
worked...



Re: french characters on imap server

2007-06-11 Thread Juan Miscaro
--- Joachim Schipper [EMAIL PROTECTED] wrote:

 On Mon, May 28, 2007 at 08:37:42PM -0600, Philip Guenther wrote:
  On 5/28/07, Juan Miscaro [EMAIL PROTECTED] wrote:
  I am serving up email via imap (courier-imap) on OpenBSD 4.0.
  
  My users (with Outlook) complain of french characters being
 garbled.
  How can I fix this?
  
  The same way any problem is fixed: by determining which part isn't
  behaving correctly and fixing it.  In this case, the possible
 guilty
  parties include
  A) the sending party: are the messages being marked with the
 correct 
  charset in
 the Content-Type header field?
  B) the IMAP server: is it returning the message accurately and
 calculating 
  the
 ENVELOPE and BODYSTRUCTURE FETCH items correctly?
  C) Outlook: is it presenting the messages accurately as it was
 received 
  from the
 IMAP server?
  
  However, this is all off-topic to OpenBSD, as the IMAP server
 behavior
  should not dependend on the OS.  I suggest you take your question
 to
  the comp.mail.imap newgroup after doing your best to answer the
  questions suggested above.
  
  Note that when you post there you should, at a *minimum*, clarify
 what
  is garbled (subjects, bodies, or both) and to what extent they are
  garbled: is it just the non-ASCII characters (those with accents
 and
  cedilla and accents), all letters but not numbers or punctuation,
 or
  all characters?
 
 Nah, misc@ does handle more off-topic questions; that's not a reason
 to
 tell someone off to a more specialized group, though it's true that
 the
 people there might be more capable of answering such a question.
 
 I'd try the following:
 
 0. Get one of the complainers to provide you with a full
 (headers+body)
 e-mail and a copy that has been `fixed' (i.e., looks like it should).
 1. Verify that the fixed version is properly formatted
 2. Verify that Outlook can display it properly
 3. Send it as-is to your mail server (nc mail.localdomain smtp 
 mail.fixed)
 4. Look in the logs. Did anything interesting happen? If not, just
 get
 the message-id.
 5. Retrieve the file directly from the mail spool. Is this already
 mangled? If so, good luck - that shouldn't happen. (And it's most
 likely
 a spam filter, not your MTA proper, that mangled it, as MTAs, at
 most,
 care for headers; try to disable the filter for a test account and
 run
 the test again.)
 6. Retrieve the message via IMAP, using any known-good client. nc
 works
 fine; mutt might work, too. Is this mangled? If yes, fix the IMAP
 server, this shouldn't happen either.
 7. Retrieve the message using Outlook. Is it broken? If so, something
 truly weird is going on, as the fixed version displated just fine in
 step 1...
 
 Post back with the information required by Philip and me, plus log
 files, and if at all possible complete copies of the messages.

Thank you for your pointers.  It ended up being a bad Perl module
called by amavisd-new.  I applied a patch to libnet 1.20 [1] and
everything is ok.

Juan

[1] It unwarrantedly attempts to convert 8-bit characters
to UTF-8 without considering a declared MIME type.


  Ask a question on any topic and get answers from real people. Go to 
Yahoo! Answers and share what you know at http://ca.answers.yahoo.com



zmailer with OpenBSD

2007-06-11 Thread Dana Booth
Anyone run zmailer on an OpenBSD i386 system?

-- 


Dana Booth [EMAIL PROTECTED]




ThinkPad T41p suspend is fine from console, hangs from X

2007-06-11 Thread Jonathan Thornburg
Summary
===
I have a problem with suspend-to-RAM on an IBM/Lenovo ThinkPad T41p
running OpenBSD 4.1-stable.  Basically, suspend-to-RAM works fine if
I'm not running X, but hangs the system if I'm running X.  My basic
question is, has anyone gotten suspend-to-RAM to work while X is
running on a T41p, and if so, how did you do it?

Details
===
hardware: IBM/Lenovo ThinkPad T41p laptop, model 2373-221, dmesg
  is given below.  The entire disk is devoted to OpenBSD; I
  wiped the IBM/Lenovo recovery partition to get more disk
  space for OpenBSD
software: OpenBSD 4.1-stable, last cvs updated 7.Jun.2007.
  rc.conf.local starts apmd with the -C flag

What works fine:
* automatic clock speed adjustment (done by apmd)
* powerdown with 'halt -p'
* suspend-to-RAM if X is *not* running:
  boot the machine
  login (as either root or my normal non-root login)
  do stuff in a console shell *without* starting X
  type 'zzz' == the moon-shaped status light blinks a few times,
 the machine beeps,
 and in a second or two it goes into suspend-to-RAM
 state (disk and fan are off)
  press 'Fn' key, or close and then re-open the lid
 == machine recovers from suspend-to-RAM and works normally

What doesn't work:
* boot the machine
  login (as either root or my normal non-root login)
  type 'startx;logout'
  X starts
  type 'zzz' in an xterm
== the moon-shaped status light starts blinking
and keeps on blinking, disk and fan stay running,
and the machine is hung (all keyboard input is ignored,
including 'Fn' and 'Fn-F4'; I have to power-cycle it
to regain control (which in turn requires fsck-ing all
mounted the file systems etc))
* something else that doesn't work is this:
  boot the machine
  login (as either root or my normal non-root login)
  type 'startx;logout'
  X starts
  shut down X
  login again to console shell
  type 'zzz' == same symptoms as when I tried it under X

In summary, suspend-to-RAM works fine if I don't use X, but if X is
running, or even _has_ run since I last booted the machine, then
suspend-to-RAM hangs the machine. :( :(

Can anyone point me to how to get suspend-to-RAM to work with X
(under OpenBSD -- I don't want to change OSs)?

Here's my dmesg:
OpenBSD 4.1-stable (GENERIC) #1: Thu Jun  7 10:55:58 CEST 2007
[EMAIL PROTECTED]:/usr/src/sys/arch/i386/compile/GENERIC
cpu0: Intel(R) Pentium(R) M processor 1700MHz (GenuineIntel 686-class) 599 MHz
cpu0: 
FPU,V86,DE,PSE,TSC,MSR,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PAT,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,TM,SBF,EST,TM2
real mem  = 535785472 (523228K)
avail mem = 481177600 (469900K)
using 4278 buffers containing 26914816 bytes (26284K) of memory
mainbus0 (root)
bios0 at mainbus0: AT/286+ BIOS, date 04/07/04, BIOS32 rev. 0 @ 0xfd750, SMBIOS 
rev. 2.33 @ 0xe0010 (61 entries)
bios0: IBM 2373221
apm0 at bios0: Power Management spec V1.2
apm0: battery life expectancy 98%
apm0: AC off, battery charge high, estimated 3:16 hours
apm0: flags 30102 dobusy 0 doidle 1
pcibios0 at bios0: rev 2.1 @ 0xfd6e0/0x920
pcibios0: PCI IRQ Routing Table rev 1.0 @ 0xfdea0/272 (15 entries)
pcibios0: PCI Interrupt Router at 000:31:0 (Intel 82371FB ISA rev 0x00)
pcibios0: PCI bus #6 is the last bus
bios0: ROM list: 0xc/0x1 0xd/0x1000 0xd1000/0x1000 0xdc000/0x4000! 
0xe/0x1
acpi at mainbus0 not configured
cpu0 at mainbus0
cpu0: Enhanced SpeedStep 600 MHz (956 mV): speeds: 1700, 1400, 1200, 1000, 800, 
600 MHz
pci0 at mainbus0 bus 0: configuration mode 1 (no bios)
pchb0 at pci0 dev 0 function 0 Intel 82855PE Hub rev 0x03
ppb0 at pci0 dev 1 function 0 Intel 82855PE AGP rev 0x03
pci1 at ppb0 bus 1
vga1 at pci1 dev 0 function 0 vendor ATI, unknown product 0x4e54 rev 0x80
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 0x01: irq 11
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 82801DB USB rev 0x01: irq 11
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 82801DB USB rev 0x01: irq 11
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
ehci0 at pci0 dev 29 function 7 Intel 82801DB USB rev 0x01: irq 11
usb3 at ehci0: USB revision 2.0
uhub3 at usb3
uhub3: Intel EHCI root hub, rev 2.00/1.00, addr 1
uhub3: 6 ports with 6 removable, self powered
ppb1 at pci0 dev 30 function 0 Intel 82801BAM Hub-to-PCI rev 0x81
pci2 at ppb1 bus 2
cbb0 at pci2 dev 0 function 0 TI PCI4520 CardBus rev 0x01: irq 11
cbb1 at pci2 dev 0 function 1 TI PCI4520 CardBus rev 0x01: irq 11

Re: ThinkPad T41p suspend is fine from console, hangs from X

2007-06-11 Thread James Hartley
On 6/11/07, Jonathan Thornburg [EMAIL PROTECTED] wrote:

 My basic
 question is, has anyone gotten suspend-to-RAM to work while X is
 running on a T41p, and if so, how did you do it?


You might look at tphdisk.



Re: ThinkPad T41p suspend is fine from console, hangs from X

2007-06-11 Thread Jonathan Thornburg
Hi,

In message http://marc.info/?l=openbsd-miscm=118157353605570w=1
I wrote
 My basic
 question is, has anyone gotten suspend-to-RAM to work while X is
 running on a T41p, and if so, how did you do it?

In message http://marc.info/?l=openbsd-miscm=118157460315701w=1,
James Hartley suggested:
 You might look at tphdisk.

Thanks for the tip.  Looking at the documentation, though, that seems
to address a different issue, namely getting suspend-to-disk to work.
My current issue is suspend-to-RAM...

ciao,

-- 
-- Jonathan Thornburg -- remove -animal to reply [EMAIL PROTECTED]
   Max-Planck-Institut fuer Gravitationsphysik (Albert-Einstein-Institut)
   and School of Mathematics, U of Southampton, England
   Washing one's hands of the conflict between the powerful and the
powerless means to side with the powerful, not to be neutral.
  -- quote by Freire / poster by Oxfam



Re: MINIROOTSIZE query

2007-06-11 Thread Brian A. Seklecki
There was a thread discussing this and proposing the solution less then 72 
hours before you sent this.  The list archives tell all!


http://marc.info/?l=openbsd-miscw=2r=1s=MINIROOTSIZEq=b

On Mon, 11 Jun 2007, mgb wrote:


List,

I have a question regarding the value given to MINIROOTSIZE in a kernel 
configuration file.

I have a working ramdisk build (4.1) which has a MINIROOTSIZE of 23000.
Howeverr I try a MINIROOTSIZE of 32768 and the boot stalls at the entry 
point part.  Please see below:


PC Engines WRAP.2B/2C v1.11
640 KB Base Memory
130048 KB Extended Memory

01F0 - no drive found !
ROM segment 0xe000 length 0x8000 reloc 0x
Etherboot 5.4.3 (GPL) http://etherboot.org
Drivers: NATSEMI   Images: NBI ELF Multiboot a.out PXE   Exports: PXE
Protocols: DHCP TFTP
Relocating _text from: [0008bb80,0009fd90) to [07eebdf0,07f0)
Boot from (N)etwork (D)isk or (Q)uit?

Probing pci nic...
[dp83815]
natsemi_probe: MAC addr 00:0D:B9:04:47:F8 at ioaddr 0X1000
natsemi_probe: Vendor:0X100B Device:0X0020
dp83815: Transceiver default autoneg. enabled, advertise 100 full duplex.
dp83815: Transceiver status 7869 advertising 05E1
dp83815: Setting half-duplex based on negotiated link capability.
Searching for server (DHCP).
Me: 192.168.1.201, DHCP: 192.168.1.1, TFTP: 192.168.1.1, Gateway 192.168.1.1
Loading 192.168.1.1:pxeboot ...(PXE)done
probing: pc0 com0 pci pxe![2.1] mem[640K 125M a20=on]
disk:
net: mac 00:0d:b9:04:47:f8, ip 192.168.1.201, server 192.168.1.1

OpenBSD/i386 PXEBOOT 1.11

switching console to com0

OpenBSD/i386 PXEBOOT 1.11
com0: changing speed to 38400 baud in 5 seconds, change your terminal to 
match!


com0: 38400 baud
booting tftp:bsd.rd: 18742548+237116 [52+117504+107223]=0x1250ad0
dp83815: Setting half-duplex based on negotiated link capability.
entry point at 0x200120

Any ideas why this is and what needs to be done to stop the stalling?
My board has the following memory, if that helps.
real mem  = 132657152 (129548K)
avail mem = 106545152 (104048K)

Thanks for your time




l8*
-lava (Brian A. Seklecki - Pittsburgh, PA, USA)
   http://www.spiritual-machines.org/

Guilty? Yeah. But he knows it. I mean, you're guilty.
You just don't know it. So who's really in jail?
~James Maynard Keenan



RAIDFrame root autoconfig fails in -current

2007-06-11 Thread Josh Grosse
Running i386-current with a 26-May build everything is fine.  I just built
a new kernel today, and got:

WARNING: raid0: end of partition `a' exceeds the size of raid (69206144)
WARNING: raid0: end of partition `e' exceeds the size of raid (69206144)

And then dropped into ddb, since it cannot find raid0a.  I assume this is
due to recent disklabel changes.

The disklabel is correct, and if I use a non-RAID boot drive, raid0a can
be mounted without trouble.
--
# /dev/rraid0c:
type: RAID
disk: raid
label: fictitious
flags:
bytes/sector: 512
sectors/track: 128
tracks/cylinder: 8
sectors/cylinder: 1024
cylinders: 67584
total sectors: 69206144
rpm: 3600
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:20473763  4.2BSD   2048 163841 # Cyl 0*-   199 
  c:  69206144 0  unused  0 0  # Cyl 0 - 67584*
  d:   2097152204800  4.2BSD  0 0  323 # Cyl   200 -  2247 
  e:  20971520   2301952  4.2BSD   2048 163841 # Cyl  2248 - 22727 
  f:  45932672  23273472  4.2BSD  0 0  323 # Cyl 22728 - 67584*
--
include /usr/src/sys/arch/i386/conf/GENERIC
pseudo-device   raid4
option  RAID_AUTOCONFIG
makeoptions DEBUG=-g
config  bsdraid root on wd0a swap on wd0b
--
OpenBSD 4.1-current (JGGIMI) #41: Mon Jun 11 12:02:28 EDT 2007
[EMAIL PROTECTED]:/usr/src/sys/arch/i386/compile/JGGIMI
cpu0: AMD Sempron(tm) 2600+ (AuthenticAMD 686-class, 256KB L2 cache) 1.84 GHz
cpu0: 
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR,SSE
real mem  = 502820864 (479MB)
avail mem = 476368896 (454MB)
mainbus0 at root
bios0 at mainbus0: AT/286+ BIOS, date 01/07/05, BIOS32 rev. 0 @ 0xfb9b0, SMBIOS 
rev. 2.2 @ 0xf (44 entries)
bios0: ASUS A7VT
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/0xda84
pcibios0: PCI IRQ Routing Table rev 1.0 @ 0xfda10/112 (5 entries)
pcibios0: PCI Exclusive IRQs: 3 5 10 11
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/0x7e00 0xc8000/0x8000!
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 AGP rev 0x00
pci1 at ppb0 bus 1
vga1 at pci1 dev 0 function 0 VIA VT8378 VGA rev 0x01: aperture at 
0xe400, size 0x1000
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
dc0 at pci0 dev 8 function 0 Lite-On PNIC-II rev 0x25: irq 10, address 
00:a0:cc:e3:42:d6
dcphy0 at dc0 phy 31: internal PHY
uhci0 at pci0 dev 16 function 0 VIA VT83C572 USB rev 0x80: irq 11
uhci1 at pci0 dev 16 function 1 VIA VT83C572 USB rev 0x80: irq 10
uhci2 at pci0 dev 16 function 2 VIA VT83C572 USB rev 0x80: irq 5
ehci0 at pci0 dev 16 function 3 VIA VT6202 USB rev 0x82: irq 3
usb0 at ehci0: USB revision 2.0
uhub0 at usb0: VIA EHCI root hub, rev 2.00/1.00, addr 1
viapm0 at pci0 dev 17 function 0 VIA VT8235 ISA rev 0x00
iic0 at viapm0
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: ExcelStor Technology J880
wd0: 16-sector PIO, LBA48, 78533MB, 160836480 sectors
wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 6
atapiscsi0 at pciide0 channel 1 drive 0
scsibus0 at atapiscsi0: 2 targets
cd0 at scsibus0 targ 0 lun 0: LITE-ON, DVDRW SHW-160P6S, PS01 SCSI0 5/cdrom 
removable
wd1 at pciide0 channel 1 drive 1: Maxtor 6Y080P0
wd1: 16-sector PIO, LBA, 78167MB, 160086528 sectors
cd0(pciide0:1:0): using PIO mode 4, Ultra-DMA mode 4
wd1(pciide0:1:1): using PIO mode 4, Ultra-DMA mode 6
auvia0 at pci0 dev 17 function 5 VIA VT8233 AC97 rev 0x50: irq 5
ac97: codec id 0x41445368 (Analog Devices AD1888)
ac97: codec features headphone, 20 bit DAC, No 3D Stereo
audio0 at auvia0
vr0 at pci0 dev 18 function 0 VIA RhineII-2 rev 0x74: irq 11, address 
00:11:2f:85:b1:90
ukphy0 at vr0 phy 1: Generic IEEE 802.3u media interface, rev. 10: OUI 
0x004063, model 0x0032
usb1 at uhci0: USB revision 1.0
uhub1 at usb1: VIA UHCI root hub, rev 1.00/1.00, addr 1
usb2 at uhci1: USB revision 1.0
uhub2 at usb2: VIA UHCI root hub, rev 1.00/1.00, addr 1
usb3 at uhci2: USB revision 1.0
uhub3 at usb3: VIA UHCI root hub, rev 1.00/1.00, addr 1
isa0 at mainbus0
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
lpt0 at isa0 port 0x378/4 irq 7
lm0 at isa0 port 

Re: ADVERT: Secure communications

2007-06-11 Thread Steve Shockley

Dag-Erling SmC8rgrav wrote:

A shoo-in candidate for Bruce Schneier's doghouse award...


Nuts, and I was going to use it for a crime against humanity.



Re: sensors process use 10% CPU time and high memory

2007-06-11 Thread Constantine A. Murenin

On 11/06/07, Marc Balmer [EMAIL PROTECTED] wrote:

* Jean-Girard Pailloncy wrote:
 Hi,

 I have 3 Tyan Trinity GC-SL boxes with OpenBSD 4.1. sensors kernel process
 use 10% of the CPU time and have RES high up to 74 MB.
 I did not have a sensorsd daemon runing.
 I do the same on my soekris, nothing like that.

try to disable iic and ichicc in UKC (boot bsd -c).


Are drivers attached at i2c bus always that bad on CPU time?

C.




 Any idea ?
 JG Pailloncy

 # top -uIS -s1
 load averages:  1.18,  0.96,  0.75
 09:34:33
 70 processes:  5 running, 64 idle, 1 on processor
 CPU states:  3.2% user,  0.0% nice, 11.4% system,  0.0% interrupt, 85.4%
idle
 Memory: Real: 75M/388M act/tot  Free: 615M  Swap: 0K/1028M used/tot
 renice
   PIDUID   PRI NICE  SIZE   RES STATEWAIT TIMECPU COMMAND
 5  01000K   40M sleeptimeou  57:32  9.03% sensors
 # sysctl hw.sensors
 hw.sensors.lm1.temp0=0.00 degC
 hw.sensors.lm1.temp1=-44.50 degC
 hw.sensors.lm1.temp2=-44.50 degC
 hw.sensors.lm1.fan0=3199 RPM
 hw.sensors.lm1.fan1=49 RPM
 hw.sensors.lm1.fan2=49 RPM
 hw.sensors.lm1.volt0=0.00 VDC (VCore)
 hw.sensors.lm1.volt1=0.00 VDC (VINR0)
 hw.sensors.lm1.volt2=0.00 VDC (+3.3V)
 hw.sensors.lm1.volt3=0.00 VDC (+5V)
 hw.sensors.lm1.volt4=0.00 VDC (+12V)
 hw.sensors.lm1.volt5=-14.91 VDC (-12V)
 hw.sensors.lm1.volt6=4.56 VDC (-5V)
 hw.sensors.lm1.volt7=0.00 VDC (5VSB)
 hw.sensors.lm1.volt8=0.00 VDC (VBAT)
 # dmesg
 OpenBSD 4.1 (GENERIC) #1435: Sat Mar 10 19:07:45 MST 2007
 [EMAIL PROTECTED]:/usr/src/sys/arch/i386/compile/GENERIC
 cpu0: Intel(R) Pentium(R) 4 CPU 2.66GHz (GenuineIntel 686-class) 2.66 GHz
 cpu0:

FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUS
H,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,CNXT-ID,xTPR
 real mem  = 1073246208 (1048092K)
 avail mem = 745324544 (727856K)
 using 4278 buffers containing 280363008 bytes (273792K) of memory
 mainbus0 (root)
 bios0 at mainbus0: AT/286+ BIOS, date 11/09/04, BIOS32 rev. 0 @ 0xfdb80,
 SMBIOS rev. 2.3 @ 0xf0640 (50 entries)
 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 @ 0xf4ee0/272 (15 entries)
 pcibios0: PCI Interrupt Router at 000:01:7 (ServerWorks CSB5 rev 0x00)
 pcibios0: PCI bus #0 is the last bus
 bios0: ROM list: 0xc/0x8000 0xc8000/0x2200 0xca800/0x1000
0xcb800/0x1800
 acpi at mainbus0 not configured
 cpu0 at mainbus0
 pci0 at mainbus0 bus 0: configuration mode 1 (no bios)
 pchb0 at pci0 dev 0 function 0 ServerWorks GCNB-LE Host rev 0x32
 pchb1 at pci0 dev 0 function 1 ServerWorks GCNB-LE Host rev 0x00
 pci1 at pchb1 bus 1
 ami0 at pci1 dev 3 function 0 Symbios Logic MegaRAID rev 0x01: irq 10
 ami0: LSI 520, 64b/lhc, FW 1L37, BIOS vG119, 64MB RAM
 ami0: 1 channels, 0 FC loops, 1 logical drives
 scsibus0 at ami0: 40 targets
 sd0 at scsibus0 targ 0 lun 0: AMI, Host drive #00,  SCSI2 0/direct fixed
 sd0: 70512MB, 70512 cyl, 64 head, 32 sec, 512 bytes/sec, 144408576 sec
total
 scsibus1 at ami0: 16 targets
 vga1 at pci0 dev 7 function 0 ATI Rage XL rev 0x27
 wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
 wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
 fxp0 at pci0 dev 8 function 0 Intel 8255x rev 0x10, i82551: irq 9,
 address 00:e0:81:29:42:76
 inphy0 at fxp0 phy 1: i82555 10/100 PHY, rev. 4
 piixpm0 at pci0 dev 15 function 0 ServerWorks CSB5 rev 0x93: polling
 iic0 at piixpm0
 lm1 at iic0 addr 0x28: W83782D
 piixpm0: exec: op 1, addr 0x49, cmdlen 1, len 0, flags 0x08: timeout,
 status 0x9BUSY,BUSERR
 pciide0 at pci0 dev 15 function 1 ServerWorks CSB5 IDE rev 0x93: DMA
 atapiscsi0 at pciide0 channel 0 drive 0
 scsibus2 at atapiscsi0: 2 targets
 cd0 at scsibus2 targ 0 lun 0: SAMSUNG, CD-ROM SH-152A, C504 SCSI0
 5/cdrom removable
 cd0(pciide0:0:0): using PIO mode 4, DMA mode 2, Ultra-DMA mode 2
 ohci0 at pci0 dev 15 function 2 ServerWorks OSB4/CSB5 USB rev 0x05: irq
 10, version 1.0, legacy support
 usb0 at ohci0: USB revision 1.0
 uhub0 at usb0
 uhub0: ServerWorks OHCI root hub, rev 1.00/1.00, addr 1
 uhub0: 4 ports with 4 removable, self powered
 pchb2 at pci0 dev 15 function 3 ServerWorks CSB5 LPC rev 0x00
 pchb3 at pci0 dev 16 function 0 ServerWorks CIOB-X2 PCIX rev 0x05
 pchb4 at pci0 dev 16 function 2 ServerWorks CIOB-X2 PCIX rev 0x05
 pci2 at pchb4 bus 2
 em0 at pci2 dev 7 function 0 Intel PRO/1000MT (82545EM) rev 0x01: irq 5,
 address 00:e0:81:29:42:77
 isa0 at mainbus0
 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
 lpt0 at isa0 port 0x378/4 irq 7
 npx0 at isa0 port 0xf0/16: reported by CPUID; using exception 16
 pccom0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo
 pccom0: console
 pccom1 at isa0 port 0x2f8/8 irq 3: ns16550a, 16 byte fifo
 

Re: RAIDFrame root autoconfig fails in -current

2007-06-11 Thread Stuart Henderson
On 2007/06/11 13:00, Josh Grosse wrote:
 Running i386-current with a 26-May build everything is fine.  I just built
 a new kernel today, and got:

softraidtm* is in GENERIC now and it autoconfigures; it may be causing
a conflict with raidframe since they both use partitions with type raid.

If you want to try disabling it, it's in the MI kernel config,
/sys/conf/GENERIC.

(if it's raid1 you want, the other option is to rebuild the box with
softraid instead, if you do this and move files with dump/restore,
update to the very recent sbin/dump/traverse.c first to keep ctime/mtime
intact).



* well, it wass, but the owners didn't renew it, so that's ok.



Re: About BSD Certification

2007-06-11 Thread bofh

On 6/11/07, Daniel Ouellet [EMAIL PROTECTED] wrote:

The Admin that really know their stuff, will put them just as an other
stone in their knowledge, but sadly most will put it on top and as first
to justify they are good and know what you need and these same one will
also put in to all their emails, business cards, walls, where ever.


My business cards typically have my name, and the letters bofh after
it[1].  Well, that got stopped at the last place, but I'm going to put
it in again at the new place :)  Depending on certification, and what
you do, sometimes having those letters does help.  Then again, I go
around telling everyone I got my CISSP by reading the CISSP for
Dummies[2] book... *blink* :)

I've never put my title or other such crap in my .sig.  I'm starting
to see the benefits of my phone number in my .sig at work, still
contemplating that.  I've always figured, if someone thinks it's
important enough to find out who am I/what I do, then they can go look
it up in the corporate directory.

-b0fh
[1]  At one prior place, I sneaked LAN Lord on to the cards too.
[2]  Much *MUCH* better than those official cissp books.  Took us a
month just to read 10 pages.  I read the dummies book in one night,
and passed it the next day.  Having always been interested in
security, and reading about it did help too :)
--
This officer's men seem to follow him merely out of idle curiosity.
-- Sandhurst officer cadet evaluation.



Re: RAIDFrame root autoconfig fails in -current

2007-06-11 Thread Brian A. Seklecki

On Mon, 11 Jun 2007, Otto Moerbeek wrote:



Please contact krw@, he has been searching testers for RAIDframe root
autoconfig on [EMAIL PROTECTED] There's even a diff posted there, iirc.


I'm your point-man there.  A while back I wrote 3 pages of 
technical detritus on making it work in 3.9/4.0.  ISOs w/ install.sh 
patches, too.


So we're changing the software raid subsystems eh?

~BAS



-Otto



The disklabel is correct, and if I use a non-RAID boot drive, raid0a can




Re: ThinkPad T41p suspend is fine from console, hangs from X

2007-06-11 Thread Niall O'Higgins
On Mon, Jun 11, 2007 at 04:47:43PM +0200, Jonathan Thornburg wrote:
 Summary
 ===
 I have a problem with suspend-to-RAM on an IBM/Lenovo ThinkPad T41p
 running OpenBSD 4.1-stable.  Basically, suspend-to-RAM works fine if
 I'm not running X, but hangs the system if I'm running X.  My basic
 question is, has anyone gotten suspend-to-RAM to work while X is
 running on a T41p, and if so, how did you do it?

Try switching to console before suspend.



Re: RAIDFrame root autoconfig fails in -current

2007-06-11 Thread Otto Moerbeek
On Mon, 11 Jun 2007, Brian A. Seklecki wrote:

 On Mon, 11 Jun 2007, Otto Moerbeek wrote:
 
  
  Please contact krw@, he has been searching testers for RAIDframe root
  autoconfig on [EMAIL PROTECTED] There's even a diff posted there, iirc.
 
 I'm your point-man there.  A while back I wrote 3 pages of technical detritus
 on making it work in 3.9/4.0.  ISOs w/ install.sh patches, too.
 
 So we're changing the software raid subsystems eh?

Well, if possible, we would like to have a working RAIDframe with the
new disklabel stuff. Hence krw@ searching for testers. I believe he
got very little responce on [EMAIL PROTECTED] 

Anyway, to anwer your question, yes, at some point in time RAIDFrame
will probaly be even more unsupported than it is now; in contrast, the
new softraid(4) will become part of a release in the future. But do
not draw the conclusion that these two events will occur at the same
time. 

-Otto



Slackathon 2007 , June 16, 2007, Stockholm, Sweden

2007-06-11 Thread Wim Vandeputte
Hi,

as a reminder for all in Scandinavia, there is an informal event in Stockholm
next Saturday:

http://www.slackathon.se/

I just packaged a huge box of stuff for the event ;-)

Wim.

-- 
   =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=   
https://kd85.com/notforsale.html
 --



Re: RAIDFrame root autoconfig fails in -current

2007-06-11 Thread Nick Bender

On 6/11/07, Otto Moerbeek [EMAIL PROTECTED] wrote:

On Mon, 11 Jun 2007, Brian A. Seklecki wrote:

 On Mon, 11 Jun 2007, Otto Moerbeek wrote:

 
  Please contact krw@, he has been searching testers for RAIDframe root
  autoconfig on [EMAIL PROTECTED] There's even a diff posted there, iirc.

 I'm your point-man there.  A while back I wrote 3 pages of technical detritus
 on making it work in 3.9/4.0.  ISOs w/ install.sh patches, too.

 So we're changing the software raid subsystems eh?

Well, if possible, we would like to have a working RAIDframe with the
new disklabel stuff. Hence krw@ searching for testers. I believe he
got very little responce on [EMAIL PROTECTED]

Anyway, to anwer your question, yes, at some point in time RAIDFrame
will probaly be even more unsupported than it is now; in contrast, the
new softraid(4) will become part of a release in the future. But do
not draw the conclusion that these two events will occur at the same
time.

-Otto



I have the patch sitting in my inbox - it was against rev. 1.35 while current
looks to be up to 1.39. I should have time to test it on Wednesday, any
chance of an updated diff? If not I'll make do...

-N



Re: Arc Raid Card trouble

2007-06-11 Thread Sam Fourman Jr.
here is a dmesg from 4.1 RELEASE, and the Raid set is fine, everything
works.

penBSD 4.1 (GENERIC.MP) #1225: Sat Mar 10 19:23:18 MST 2007
[EMAIL PROTECTED]:/usr/src/sys/arch/i386/compile/GENERIC.MP
cpu0: Intel(R) Pentium(R) D CPU 2.80GHz (GenuineIntel 686-class) 2.81 GHz
cpu0: 
FPU,V86,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,SSE3,MWAIT,DS-CPL,CNXT-ID,CX16,xTPR
real mem  = 1064857600 (1039900K)
avail mem = 964161536 (941564K)
using 4278 buffers containing 53366784 bytes (52116K) of memory
User Kernel Config
UKC disable apm
298 apm0 disabled
UKC enable acpi
388 acpi0 enabled
UKC quit
Continuing...
mainbus0 (root)
bios0 at mainbus0: AT/286+ BIOS, date 12/29/06, BIOS32 rev. 0 @
0xfa020, SMBIOS rev. 2.4 @ 0xf (39 entries)
bios0: Biostar 945GZ Micro 775 SE
apm at bios0 function 0x15 not configured
pcibios0 at bios0: rev 3.0 @ 0xf/0xc964
pcibios0: PCI IRQ Routing Table rev 1.0 @ 0xfc810/304 (17 entries)
pcibios0: bad IRQ table checksum
pcibios0: PCI BIOS has 19 Interrupt Routing table entries
pcibios0: PCI Exclusive IRQs: 3 5 10 11 12 15
pcibios0: PCI Interrupt Router at 000:31:0 (Intel 82801GB LPC rev 0x00)
pcibios0: PCI bus #4 is the last bus
bios0: ROM list: 0xc/0xaa00! 0xcc000/0x1000
acpi0 at mainbus0: rev 0
acpi0: tables DSDT FACP _HPT MCFG APIC
acpitimer at acpi0 not configured
acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: apic clock running at 200 MHz
cpu1 at mainbus0: apid 1 (application processor)
cpu1: Intel(R) Pentium(R) D CPU 2.80GHz (GenuineIntel 686-class) 2.81 GHz
cpu1: 
FPU,V86,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,SSE3,MWAIT,DS-CPL,CNXT-ID,CX16,xTPR
ioapic0 at mainbus0: apid 4 pa 0xfec0, version 20, 24 pins
ioapic0: misconfigured as apic 0, remapped to apid 4
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus 1 (PEX0)
acpiprt2 at acpi0: bus 0 (PEX1)
acpiprt3 at acpi0: bus 0 (PEX2)
acpiprt4 at acpi0: bus 0 (PEX3)
acpiprt5 at acpi0: bus 0 (PEX4)
acpiprt6 at acpi0: bus 0 (PEX5)
acpiprt7 at acpi0: bus 4 (HUB0)
acpibtn at acpi0 not configured
acpibtn at acpi0 not configured
acpitz at acpi0 not configured
pci0 at mainbus0 bus 0: configuration mode 1 (no bios)
pchb0 at pci0 dev 0 function 0 Intel 82945GP rev 0x02
vga1 at pci0 dev 2 function 0 Intel 82945G Video rev 0x02: aperture
at 0xfde8, size 0x1000
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
azalia0 at pci0 dev 27 function 0 Intel 82801GB HD Audio rev 0x01:
apic 4 int 16 (irq 12)
azalia0: host: High Definition Audio rev. 1.0
azalia0: codec: 0x04x/0x10ec (rev. 0.1), HDA version 1.0
audio0 at azalia0
ppb0 at pci0 dev 28 function 0 Intel 82801GB PCIE rev 0x01
pci1 at ppb0 bus 1
ppb1 at pci1 dev 0 function 0 Intel IOP332 PCIE-PCIX rev 0x07
pci2 at ppb1 bus 2
arc0 at pci2 dev 14 function 0 Areca ARC-1210 rev 0x00: apic 4 int 18 (irq 11)
arc0: 4 SATA Ports, 256MB SDRAM, FW Version: V1.42 2007-1-15
scsibus0 at arc0: 16 targets
sd0 at scsibus0 targ 0 lun 0: Areca, ARC-1210-VOL#00, R001 SCSI3
0/direct fixed
sd0: 610351MB, 59185 cyl, 44 head, 480 sec, 512 bytes/sec, 124872 sec total
ppb2 at pci1 dev 0 function 2 Intel IOP332 PCIE-PCIX rev 0x07
pci3 at ppb2 bus 3
uhci0 at pci0 dev 29 function 0 Intel 82801GB USB rev 0x01: apic 4
int 23 (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 82801GB USB rev 0x01: apic 4
int 19 (irq 15)
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 82801GB USB rev 0x01: apic 4
int 18 (irq 3)
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 82801GB USB rev 0x01: apic 4
int 16 (irq 12)
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 82801GB USB rev 0x01: apic 4
int 23 (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
ppb3 at pci0 dev 30 function 0 Intel 82801BA AGP rev 0xe1
pci4 at ppb3 bus 4
rl0 at pci4 dev 5 function 0 Realtek 8139 rev 0x10: apic 4 int 20
(irq 10), address 00:e0:4d:14:d6:22
rlphy0 at rl0 phy 0: RTL internal PHY
ichpcib0 at pci0 dev 31 function 0 Intel 82801GB LPC rev 0x01: PM disabled
pciide0 at pci0 dev 31 function 1 Intel 82801GB IDE rev 0x01: DMA,
channel 0 configured to compatibility, channel 1 configured to
compatibility
atapiscsi0 at pciide0 channel 0 drive 0
scsibus1 at atapiscsi0: 2 targets

upgrading RAIDFRAME systems

2007-06-11 Thread David Newman
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

What's the deal for upgrading systems running RAIDframe?

I have Sparc64 boxes running 4.0 and RAIDframe. Is it possible to
upgrade these through the regular process, or do I need to do a clean
install and restore from backups?

Thanks in advance for pointers about what to do/not to do.

dn
iD8DBQFGbZmIyPxGVjntI4IRAhtUAKDYrsFHRq/E5BPSof0Lnzi2eLJ/CwCg7+KY
gEtkHjL21cFw+T/S3QBdbnM=
=G+gZ
-END PGP SIGNATURE-



Re: RAIDFrame root autoconfig fails in -current

2007-06-11 Thread Josh Grosse
On Mon, Jun 11, 2007 at 06:48:22PM +0100, Stuart Henderson wrote:
 softraidtm* is in GENERIC now and it autoconfigures; it may be causing
 a conflict with raidframe since they both use partitions with type raid.
 
 If you want to try disabling it, it's in the MI kernel config,
 /sys/conf/GENERIC.

I have attempted disabling softraid0 via UKC, which doesn't change the
results -- so it looks like the patch in tech@ is my next step.
 
 (if it's raid1 you want, the other option is to rebuild the box with
 softraid instead, if you do this and move files with dump/restore,
 update to the very recent sbin/dump/traverse.c first to keep ctime/mtime
 intact).

Hmmm I was under the impression -- from reading commits -- that softraid
recoverability is not yet developed and committed.  

(It might be, as commit logs are often very terse.  I'm not singling out any 
developer, just noting a generality.  My favorite commits are the ones that 
only say, Oops.) 



Re: simple spamd questions

2007-06-11 Thread Jeff Santos
Hi,

Thank you very much.

 If they are blacklisted, the connected/disconntected message
 will name the blacklist(s) they are on. if they are greylisted, there
 will be no mention of lists in the log message. For example, from my logs,

So if the host is greylisted the connection should not last long,
since spamd will not tarpit the host yet, right?

I am asking because I see some connected/disconnected messages not
related to any blacklist that last quite a while.

Regards,

Jeff

--
Get a Free E-mail Account at Mail.com!
Choose From 100+ Personalized Domains
Visit http://www.mail.com today



spamd inbound

2007-06-11 Thread Jeff Santos
Hi,

The default setup in pf.conf makes spamd work on both
directions:

#no rdr on $ext_if proto tcp from spamd-white to any port smtp
#rdr pass on $ext_if proto tcp from any to any port smtp \
#   - 127.0.0.1 port spamd

What is the best way to tell PF that spamd should work only
on inbound traffic?

Thank you very much

Regards,

Jeff.

--
Get a Free E-mail Account at Mail.com!
Choose From 100+ Personalized Domains
Visit http://www.mail.com today



Re: ThinkPad T41p suspend is fine from console, hangs from X

2007-06-11 Thread Jussi Peltola
I use an X22 with Linux, and I simply added chvt to my suspend script to
change to a text console before suspend. OpenBSD does not have chvt as
far as I know, but Google found the following:
http://www.cs.cmu.edu/~joshuad/wsswitch.c

I haven't tested it, but I guess it should do the job, unless the
machine needs saving and restoring of config registers (which can be
done in linux by saving the contents on mysterious files in /proc/pci
and writing them back after resume).



Re: upgrading RAIDFRAME systems

2007-06-11 Thread Josh Grosse
On Mon, Jun 11, 2007 at 11:50:48AM -0700, David Newman wrote:
 
 What's the deal for upgrading systems running RAIDframe?
 
 I have Sparc64 boxes running 4.0 and RAIDframe. Is it possible to
 upgrade these through the regular process, or do I need to do a clean
 install and restore from backups?
 
 Thanks in advance for pointers about what to do/not to do.

What I have always done is a manual upgrade:

1.  Back up.
2.  Boot in single user mode
3.  # mount -a -t ffs
4.  For each fileset except etcXX.tgz and xetcXX.tgz, issue:
# tar xpzf fileset -C /
5.  Using etcXX.tgz and xetcXX.tgz, manually update /etc and /var, and make 
any other changes, per the upgrade FAQ.  The mergemaster port/package 
makes this fairly quick and easy.



Re: upgrading RAIDFRAME systems

2007-06-11 Thread Josh Grosse
On Mon, Jun 11, 2007 at 03:53:49PM -0400, I wrote:
 What I have always done is a manual upgrade:
 
 1.  Back up.
 2.  Boot in single user mode
 3.  # mount -a -t ffs
 4.  For each fileset except etcXX.tgz and xetcXX.tgz, issue:
 # tar xpzf fileset -C /
 5.  Using etcXX.tgz and xetcXX.tgz, manually update /etc and /var, and make 
 any other changes, per the upgrade FAQ.  The mergemaster port/package 
 makes this fairly quick and easy.

I am replying to my own post because I neglected to add:

6.  # cd /dev; sh MAKEDEV all
7.  Rewrite boot blocks (arch dependant).



Re: RAIDFrame root autoconfig fails in -current

2007-06-11 Thread Christian Weisgerber
Josh Grosse [EMAIL PROTECTED] wrote:

 Running i386-current with a 26-May build everything is fine.  I just built
 a new kernel today, and got:

Another data point:  My sparc64 with a -current (yesterday) kernel
with root on raidframe is fine both with and without krw's tech
patch.

-- 
Christian naddy Weisgerber  [EMAIL PROTECTED]



Re: beck's greyscanner for spamd 4.1

2007-06-11 Thread Bob Beck
read the archives for the answer to this and other fascinating 
questions.
or look very carefully at the contents of that directory.

* Anton Karpov [EMAIL PROTECTED] [2007-06-09 04:53]:
 I've noticed that original greyscanner by beck@ doesn't work with latest
 spamd.
 Is there fixed/updated version of greyscanner anywhere?
 Thanks.
 

-- 
#!/usr/bin/perl
if ((not 0  not 1) !=  (! 0  ! 1)) {
   print Larry and Tom must smoke some really primo stuff...\n; 
}



Re: upgrading RAIDFRAME systems

2007-06-11 Thread Christian Weisgerber
Josh Grosse [EMAIL PROTECTED] wrote:

  5.  Using etcXX.tgz and xetcXX.tgz, manually update /etc and /var, and make 
  any other changes, per the upgrade FAQ.  The mergemaster port/package 
  makes this fairly quick and easy.
 
 6.  # cd /dev; sh MAKEDEV all

mergemaster will offer to do this after installing a new /dev/MAKEDEV.

-- 
Christian naddy Weisgerber  [EMAIL PROTECTED]



Re: RAIDFrame root autoconfig fails in -current

2007-06-11 Thread Josh Grosse
On Mon, Jun 11, 2007 at 03:01:03PM -0400, I wrote:
 ...so it looks like the patch in tech@ is my next step.

I have retrofitted it for rev 1.39, but it did not eliminate my problem. :(

Index: rf_openbsdkintf.c
===
RCS file: /home/cvs/src/sys/dev/raidframe/rf_openbsdkintf.c,v
retrieving revision 1.39
diff -u -r1.39 rf_openbsdkintf.c
--- rf_openbsdkintf.c   8 Jun 2007 05:27:58 -   1.39
+++ rf_openbsdkintf.c   11 Jun 2007 20:26:46 -
@@ -270,7 +270,7 @@
 
 void rf_shutdown_hook(RF_ThreadArg_t);
 void raidgetdefaultlabel(RF_Raid_t *, struct raid_softc *, struct disklabel *);
-void raidgetdisklabel(dev_t);
+void raidgetdisklabel(dev_t, struct disklabel *, struct cpu_disklabel *, int);
 void raidmakedisklabel(struct raid_softc *);
 
 int  raidlock(struct raid_softc *);
@@ -623,7 +623,6 @@
 {
int unit = DISKUNIT(dev);
struct raid_softc *rs;
-   struct disklabel *lp;
int part,pmask;
int error = 0;
 
@@ -633,7 +632,6 @@
 
if ((error = raidlock(rs)) != 0)
return (error);
-   lp = rs-sc_dkdev.dk_label;
 
part = DISKPART(dev);
pmask = (1  part);
@@ -643,15 +641,17 @@
 
 
if ((rs-sc_flags  RAIDF_INITED)  (rs-sc_dkdev.dk_openmask == 0))
-   raidgetdisklabel(dev);
+   raidgetdisklabel(dev, rs-sc_dkdev.dk_label,
+   rs-sc_dkdev.dk_cpulabel, 0);
 
/* Make sure that this partition exists. */
 
if (part != RAW_PART) {
db1_printf((Not a raw partition..\n));
if (((rs-sc_flags  RAIDF_INITED) == 0) ||
-   ((part = lp-d_npartitions) ||
-   (lp-d_partitions[part].p_fstype == FS_UNUSED))) {
+   ((part = rs-sc_dkdev.dk_label-d_npartitions) ||
+   (rs-sc_dkdev.dk_label-d_partitions[part].p_fstype ==
+   FS_UNUSED))) {
error = ENXIO;
raidunlock(rs);
db1_printf((Bailing out...\n));
@@ -1601,9 +1601,11 @@
rs-sc_flags = ~RAIDF_WLABEL;
break;
 
-   case DIOCGPDINFO:
-   raidgetdefaultlabel(raidPtr, rs, (struct disklabel *) data);
-   break;
+   case DIOCGPDINFO: {
+   struct cpu_disklabel osdep;
+   raidgetdisklabel(dev, (struct disklabel *)data, osdep, 1);
+   break;
+   }
 
default:
retcode = ENOTTY;
@@ -2112,10 +2114,6 @@
lp-d_interleave = 1;
lp-d_version = 1;
 
-   DL_SETPOFFSET(lp-d_partitions[RAW_PART], 0);
-   DL_SETPSIZE(lp-d_partitions[RAW_PART], raidPtr-totalSectors);
-   lp-d_partitions[RAW_PART].p_fstype = FS_UNUSED;
-   lp-d_npartitions = RAW_PART + 1;
 
lp-d_magic = DISKMAGIC;
lp-d_magic2 = DISKMAGIC;
@@ -2127,19 +2125,19 @@
  * If one is not present, fake one up.
  */
 void
-raidgetdisklabel(dev_t dev)
+raidgetdisklabel(dev_t dev, struct disklabel *lp, struct cpu_disklabel *clp,
+int spoofonly)
 {
int unit = DISKUNIT(dev);
struct raid_softc *rs = raid_softc[unit];
char *errstring;
-   struct disklabel *lp = rs-sc_dkdev.dk_label;
-   struct cpu_disklabel *clp = rs-sc_dkdev.dk_cpulabel;
RF_Raid_t *raidPtr;
int i;
struct partition *pp;
 
db1_printf((Getting the disklabel...\n));
 
+   bzero(lp, sizeof(*lp));
bzero(clp, sizeof(*clp));
 
raidPtr = raidPtrs[unit];
@@ -2150,7 +2148,7 @@
 * Call the generic disklabel extraction routine.
 */
errstring = readdisklabel(DISKLABELDEV(dev), raidstrategy, lp,
-   rs-sc_dkdev.dk_cpulabel, 0);
+   clp, spoofonly);
if (errstring) {
/*printf(%s: %s\n, rs-sc_xname, errstring);*/
return;



Re: RAIDFrame root autoconfig fails in -current

2007-06-11 Thread Marco Peereboom
pseudo devices can not be disabled in UKC.  Maja has a diff for that.
I'll try to have a look at that soonish so that it can be disabled.  If
one wants to run raidframe one should disable softraid.  I have not
tested it but would expect them to step on each other.


On Mon, Jun 11, 2007 at 06:48:22PM +0100, Stuart Henderson wrote:
 On 2007/06/11 13:00, Josh Grosse wrote:
  Running i386-current with a 26-May build everything is fine.  I just built
  a new kernel today, and got:
 
 softraidtm* is in GENERIC now and it autoconfigures; it may be causing
 a conflict with raidframe since they both use partitions with type raid.
 
 If you want to try disabling it, it's in the MI kernel config,
 /sys/conf/GENERIC.
 
 (if it's raid1 you want, the other option is to rebuild the box with
 softraid instead, if you do this and move files with dump/restore,
 update to the very recent sbin/dump/traverse.c first to keep ctime/mtime
 intact).
 
 
 
 * well, it wass, but the owners didn't renew it, so that's ok.



Re: RAIDFrame root autoconfig fails in -current

2007-06-11 Thread Josh Grosse
On Mon, Jun 11, 2007 at 04:03:11PM -0500, Marco Peereboom wrote:
 pseudo devices can not be disabled in UKC.  Maja has a diff for that.
 I'll try to have a look at that soonish so that it can be disabled.  If
 one wants to run raidframe one should disable softraid.  I have not
 tested it but would expect them to step on each other.

I just tried with softraid removed from src/sys/conf/GENERIC -- same results ..
something else is causing this problem.



Re: Arc Raid Card trouble

2007-06-11 Thread David Gwynne
On Mon, Jun 11, 2007 at 01:45:45PM -0500, Sam Fourman Jr. wrote:
 
here is a dmesg from 4.1 RELEASE, and the Raid set is fine, everything
works.

told ya :)

 penBSD 4.1 (GENERIC.MP) #1225: Sat Mar 10 19:23:18 MST 2007
 [EMAIL PROTECTED]:/usr/src/sys/arch/i386/compile/GENERIC.MP
 cpu0: Intel(R) Pentium(R) D CPU 2.80GHz (GenuineIntel 686-class) 2.81 GHz
 cpu0: 
 FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,C
 FLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,SSE3,MWAIT,DS-CPL,CNXT-ID,CX16,xT
 PR
 real mem  = 1064857600 (1039900K)
 avail mem = 964161536 (941564K)
 using 4278 buffers containing 53366784 bytes (52116K) of memory
 User Kernel Config
 UKC disable apm
 298 apm0 disabled
 UKC enable acpi
 388 acpi0 enabled
 UKC quit
 Continuing...
 mainbus0 (root)
 bios0 at mainbus0: AT/286+ BIOS, date 12/29/06, BIOS32 rev. 0 @ 0xfa020, 
 SMBIOS
  rev. 2.4 @ 0xf (39 entries)
 bios0: Biostar 945GZ Micro 775 SE
 apm at bios0 function 0x15 not configured
 pcibios0 at bios0: rev 3.0 @ 0xf/0xc964
 pcibios0: PCI IRQ Routing Table rev 1.0 @ 0xfc810/304 (17 entries)
 pcibios0: bad IRQ table checksum
 pcibios0: PCI BIOS has 19 Interrupt Routing table entries
 pcibios0: PCI Exclusive IRQs: 3 5 10 11 12 15
 pcibios0: PCI Interrupt Router at 000:31:0 (Intel 82801GB LPC rev 0x00)
 pcibios0: PCI bus #4 is the last bus
 bios0: ROM list: 0xc/0xaa00! 0xcc000/0x1000
 acpi0 at mainbus0: rev 0
 acpi0: tables DSDT FACP _HPT MCFG APIC
 acpitimer at acpi0 not configured
 acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
 cpu0 at mainbus0: apid 0 (boot processor)
 cpu0: apic clock running at 200 MHz
 cpu1 at mainbus0: apid 1 (application processor)
 cpu1: Intel(R) Pentium(R) D CPU 2.80GHz (GenuineIntel 686-class) 2.81 GHz
 cpu1: 
 FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,C
 FLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,SSE3,MWAIT,DS-CPL,CNXT-ID,CX16,xT
 PR
 ioapic0 at mainbus0: apid 4 pa 0xfec0, version 20, 24 pins
 ioapic0: misconfigured as apic 0, remapped to apid 4
 acpiprt0 at acpi0: bus 0 (PCI0)
 acpiprt1 at acpi0: bus 1 (PEX0)
 acpiprt2 at acpi0: bus 0 (PEX1)
 acpiprt3 at acpi0: bus 0 (PEX2)
 acpiprt4 at acpi0: bus 0 (PEX3)
 acpiprt5 at acpi0: bus 0 (PEX4)
 acpiprt6 at acpi0: bus 0 (PEX5)
 acpiprt7 at acpi0: bus 4 (HUB0)
 acpibtn at acpi0 not configured
 acpibtn at acpi0 not configured
 acpitz at acpi0 not configured
 pci0 at mainbus0 bus 0: configuration mode 1 (no bios)
 pchb0 at pci0 dev 0 function 0 Intel 82945GP rev 0x02
 vga1 at pci0 dev 2 function 0 Intel 82945G Video rev 0x02: aperture at 
 0xfde8
 , size 0x1000
 wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
 wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
 azalia0 at pci0 dev 27 function 0 Intel 82801GB HD Audio rev 0x01: apic 4 
 int
  16 (irq 12)
 azalia0: host: High Definition Audio rev. 1.0
 azalia0: codec: 0x04x/0x10ec (rev. 0.1), HDA version 1.0
 audio0 at azalia0
 ppb0 at pci0 dev 28 function 0 Intel 82801GB PCIE rev 0x01
 pci1 at ppb0 bus 1
 ppb1 at pci1 dev 0 function 0 Intel IOP332 PCIE-PCIX rev 0x07
 pci2 at ppb1 bus 2
 arc0 at pci2 dev 14 function 0 Areca ARC-1210 rev 0x00: apic 4 int 18 (irq 
 11
 )
 arc0: 4 SATA Ports, 256MB SDRAM, FW Version:
 V1.42 2007-1-15
 scsibus0 at arc0: 16 targets
 sd0 at scsibus0 targ 0 lun 0: Areca, ARC-1210-VOL#00, R001 SCSI3 0/direct 
 fix
 ed
 sd0: 610351MB, 59185 cyl, 44 head, 480 sec, 512 bytes/sec, 124872 sec 
 total
 ppb2 at pci1 dev 0 function 2 Intel IOP332 PCIE-PCIX rev 0x07
 pci3 at ppb2 bus 3
 uhci0 at pci0 dev 29 function 0 Intel 82801GB USB rev 0x01: apic 4 int 23 
 (ir
 q 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 82801GB USB rev 0x01: apic 4 int 19 
 (ir
 q 15)
 
 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 82801GB USB rev 0x01: apic 4 int 18 
 (ir
 q 3)
 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 82801GB USB rev 0x01: apic 4 int 16 
 (ir
 q 12)
 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 82801GB USB rev 0x01: apic 4 int 23 
 (ir
 q 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
 ppb3 at pci0 dev 30 function 0 Intel 82801BA AGP rev 0xe1
 pci4 at ppb3 bus 4
 rl0 at pci4 dev 5 function 0 Realtek 8139 rev 0x10: apic 4 int 20 (irq 10), 
 a
 ddress 00:e0:4d:14:d6:22
 rlphy0 at rl0 phy 0: RTL internal PHY
 ichpcib0 at pci0 dev 31 function 0 Intel 82801GB 

Re: RAIDFrame root autoconfig fails in -current

2007-06-11 Thread Mats O Jansson
On Mon, 11 Jun 2007, Marco Peereboom wrote:

 pseudo devices can not be disabled in UKC.  Maja has a diff for that.
 I'll try to have a look at that soonish so that it can be disabled.  If
 one wants to run raidframe one should disable softraid.  I have not
 tested it but would expect them to step on each other.

Just for the record...

Even without my diff you can disable a pseudo device by modifing the
count for the device to zero (it even might work with a negative number,
i havn't tested). pseudo devices is only attached if count is greater than
zero. but working disable/enable commands for pseudo devices is nicer... 

-moj
 
 
 On Mon, Jun 11, 2007 at 06:48:22PM +0100, Stuart Henderson wrote:
  On 2007/06/11 13:00, Josh Grosse wrote:
   Running i386-current with a 26-May build everything is fine.  I just built
   a new kernel today, and got:
  
  softraidtm* is in GENERIC now and it autoconfigures; it may be causing
  a conflict with raidframe since they both use partitions with type raid.
  
  If you want to try disabling it, it's in the MI kernel config,
  /sys/conf/GENERIC.
  
  (if it's raid1 you want, the other option is to rebuild the box with
  softraid instead, if you do this and move files with dump/restore,
  update to the very recent sbin/dump/traverse.c first to keep ctime/mtime
  intact).
  
  
  
  * well, it wass, but the owners didn't renew it, so that's ok.



Re: iic raidframe

2007-06-11 Thread Jean-Gérard Pailloncy
 * Jean-Girard Pailloncy wrote:
 Hi,

 I have 3 Tyan Trinity GC-SL boxes with OpenBSD 4.1. sensors kernel
 process
 use 10% of the CPU time and have RES high up to 74 MB.
 I did not have a sensorsd daemon runing.
 I do the same on my soekris, nothing like that.

 try to disable iic and ichicc in UKC (boot bsd -c).

Wonderful, by disabling iic I sole a problem with raidframe.
Raidframe was very slow, I got only 3 Mb/s, and the first build of the
parity was slw.
With iic disabled. Sensors CPU time down to zero. Raidframe runs!
I got 22 Mb/s on each drive. 7 times quicker.
It becomes usable.

Cordialement,
Jean-Girard Pailloncy



C Programming, ioctl(), SIOCGIFCONF and getifaddrs()

2007-06-11 Thread Mikolaj Kucharski
Hi,

I've extracted two functions from Pidgin and its SIPE plugin. Both
functions are returning an IP address of an interface (if I understand
correctly).

I'm attaching C source and output from OpenBSD and Linux. On Linux this
function detects an IP address correctly, but on OpenBSD not.

Here is part (among others) which I don't understand. Declaration of
struc:

struct ifreq *ifr;

and with printf I can see that:

sizeof(*ifr) == sizeof(struct ifreq) /* 32 bytes */

and with my function print_buf I see that on Linux each interface starts
every 32 bytes in a buffer[1024], but on OpenBSD this isn't the case.

Could someone which knows the subject in question contact with me off
the list, how to fix this issue and shed some light so I could
understand that. Thanks in advance.


My other question is, you think that Pidgin should use getifaddrs() to
detect an IP address (please see attached source to avoid confusions)?

-- 
best regards
q#



Re: C Programming, ioctl(), SIOCGIFCONF and getifaddrs()

2007-06-11 Thread Mikolaj Kucharski
I've readed netinfro(4), ifmedia(4), getifaddrs(3) but still not
understand difference between Linux and OpenBSD. Links to any other
documentation, books and manuals will be good enough for me.

-- 
best regards
q#



Arab Beverages 2007, more important speakers confirmed

2007-06-11 Thread ABF Marketing Team
 http://www.arabbeveragesforum.com/teaser/images/abf_2007_01.jpg
http://www.arabbeveragesforum.com/teaser/images/abf_2007_02.jpg
http://www.arabbeveragesforum.com/teaser/images/abf_2007_03.jpg
http://www.arabbeveragesforum.com/teaser/images/abf_2007_04.jpg   
 http://www.arabbeveragesforum.com/teaser/images/abf_2007_05.jpg
http://www.arabbeveragesforum.com/teaser/images/abf_2007_06.jpg
http://www.arabbeveragesforum.com/teaser/images/abf_2007_07.jpg
http://www.arabbeveragesforum.com/teaser/images/abf_2007_08.jpg   
 http://www.arabbeveragesforum.com/teaser/images/abf_2007_09.jpg
http://www.arabbeveragesforum.com/teaser/images/abf_2007_10.jpg
http://www.arabbeveragesforum.com/teaser/images/abf_2007_11.jpg
http://www.arabbeveragesforum.com/teaser/images/abf_2007_12.jpg   
 http://www.arabbeveragesforum.com/teaser/images/abf_2007_13.jpg
http://www.arabbeveragesforum.com/teaser/images/abf_2007_14.jpg
http://www.arabbeveragesforum.com/teaser/images/abf_2007_15.jpg
http://www.arabbeveragesforum.com/teaser/images/abf_2007_16.jpg   
 http://www.arabbeveragesforum.com/teaser/images/abf_2007_17.jpg
http://www.arabbeveragesforum.com/teaser/images/abf_2007_18.jpg
http://www.arabbeveragesforum.com/teaser/images/abf_2007_19.jpg
http://www.arabbeveragesforum.com/teaser/images/abf_2007_20.jpg   
 http://www.arabbeveragesforum.com/teaser/images/abf_2007_21.jpg
http://www.arabbeveragesforum.com/teaser/images/abf_2007_22.jpg
http://www.arabbeveragesforum.com/teaser/images/abf_2007_23.jpg
http://www.arabbeveragesforum.com/teaser/images/abf_2007_24.jpg   
 http://www.arabbeveragesforum.com/teaser/images/abf_2007_25.jpg
http://www.arabbeveragesforum.com/teaser/images/abf_2007_26.jpg
http://www.arabbeveragesforum.com/teaser/images/abf_2007_27.jpg
http://www.arabbeveragesforum.com/teaser/images/abf_2007_28.jpg   
 http://www.arabbeveragesforum.com/teaser/images/abf_2007_29.jpg
http://www.arabbeveragesforum.com/teaser/images/abf_2007_30.jpg
http://www.arabbeveragesforum.com/teaser/images/abf_2007_31.jpg
http://www.arabbeveragesforum.com/teaser/images/abf_2007_32.jpg   
 http://www.arabbeveragesforum.com/teaser/images/abf_2007_33.jpg
http://www.arabbeveragesforum.com/teaser/images/abf_2007_34.jpg
http://www.arabbeveragesforum.com/teaser/images/abf_2007_35.jpg
http://www.arabbeveragesforum.com/teaser/images/abf_2007_36.jpg   
 http://www.arabbeveragesforum.com/teaser/images/abf_2007_37.jpg
http://www.arabbeveragesforum.com/teaser/images/abf_2007_38.jpg
http://www.arabbeveragesforum.com/teaser/images/abf_2007_39.jpg
http://www.arabbeveragesforum.com/teaser/images/abf_2007_40.jpg   
 http://www.arabbeveragesforum.com/teaser/images/abf_2007_41.jpg
http://www.arabbeveragesforum.com/teaser/images/abf_2007_42.jpg
http://www.arabbeveragesforum.com/teaser/images/abf_2007_43.jpg
http://www.arabbeveragesforum.com/teaser/images/abf_2007_44.jpg   



 
http://www.taaheel.ae/ezflash/ezflash/read_tracking.asp?i=138697m=427
You have been subscribed to this mailinglist as [EMAIL PROTECTED] If you
wish to unsubscribe, please click on the following link or copy and
paste it into your browser. Be careful of line wrapping:
http://www.taaheel.ae/ezflash/ezflash/mailinglist.asp?a=ui=138697c=284
8m=427



Re: C Programming, ioctl(), SIOCGIFCONF and getifaddrs()

2007-06-11 Thread Claudio Jeker
On Mon, Jun 11, 2007 at 11:34:26PM +0100, Mikolaj Kucharski wrote:
 Hi,
 
 I've extracted two functions from Pidgin and its SIPE plugin. Both
 functions are returning an IP address of an interface (if I understand
 correctly).
 
 I'm attaching C source and output from OpenBSD and Linux. On Linux this
 function detects an IP address correctly, but on OpenBSD not.
 
 Here is part (among others) which I don't understand. Declaration of
 struc:
 
   struct ifreq *ifr;
 
 and with printf I can see that:
 
   sizeof(*ifr) == sizeof(struct ifreq) /* 32 bytes */
 
 and with my function print_buf I see that on Linux each interface starts
 every 32 bytes in a buffer[1024], but on OpenBSD this isn't the case.
 

We don't do that, all ifreq follow each other without padding.
The size of the objects depends on the size of the passed data in such a
evil way that I will not try to explain it here. You don't want to use
that interface anyway.

 Could someone which knows the subject in question contact with me off
 the list, how to fix this issue and shed some light so I could
 understand that. Thanks in advance.
 
 
 My other question is, you think that Pidgin should use getifaddrs() to
 detect an IP address (please see attached source to avoid confusions)?
 

YES. getifaddrs is the right way to receive all interface addresses.
This is easier to handle.

-- 
:wq Claudio



Re: upgrading RAIDFRAME systems

2007-06-11 Thread Nick Holland
Josh Grosse wrote:
 On Mon, Jun 11, 2007 at 03:53:49PM -0400, I wrote:
 What I have always done is a manual upgrade:
 
 1.  Back up.
 2.  Boot in single user mode
 3.  # mount -a -t ffs
 4.  For each fileset except etcXX.tgz and xetcXX.tgz, issue:
 # tar xpzf fileset -C /
 5.  Using etcXX.tgz and xetcXX.tgz, manually update /etc and /var, and make 
 any other changes, per the upgrade FAQ.  The mergemaster port/package 
 makes this fairly quick and easy.
 
 I am replying to my own post because I neglected to add:
 
 6.  # cd /dev; sh MAKEDEV all
 7.  Rewrite boot blocks (arch dependant).

am I missing something, or did you neglect to help him with his question,
which was about how to upgrade with RAIDframe in use?

I don't see you installing a kernel at all in your process, RAIDframe or
otherwise...

anyway, to answer the original question:
You will need a custom kernel including the RAIDframe driver.

Depends on how much of your system is RAIDframed.  If you got carried
away and did the whole system, I hope you have a spare machine to build
the new RAIDframe kernel on.  You then use the in-place upgrade process
in upgrade41.html.

IF you have just (say) /home RAIDframed, you can probably not mount
the RAIDframe partitions, upgrade, build a new kernel, boot from it,
and then mount your RAIDframe partitions.

Alternately, if you have some unallocated disk space available, you
could probably build a temporary work area...but that's not trivial.

Nick.



Re: hoststated/spamd

2007-06-11 Thread Stuart Henderson
On 2007/06/08 16:02, Bob Beck wrote:
  rdr-anchor hoststated/smtp from spamd-white
  rdr proto tcp from !spamd-exempt to $MX port smtp - 127.0.0.1 port spamd
 
   The fact that those two table names are different looks suspiciously
 wrong to me.

It took you pointing this out for me to work out exactly how anchors
with wildcards and host restrictions work, but it does work for me;

rdr-anchor hoststated/smtp from spamd-white
- spamd-white is handled by hoststated rules in the anchor,

rdr proto tcp from !spamd-exempt to $MX port smtp - 127.0.0.1 port spamd
- normal hosts hit this reasonably normal spamd rdr,

rdr-anchor hoststated/*
- spamd-exempt, holding hosts exempted from greylisting, has fallen
through from the first two; this and non-smtp services are handled by
hoststated rules.



stability probs with 4.1/sparc64 on Sun Fire V100

2007-06-11 Thread Peter Bartoli
I sent this message to sparc@ and received no reply, except strangely  
enough from a buddy at Sun.  Can anybody give me some guidance on  
making sure I get panic information and/or a DDB prompt?


-peter

Begin forwarded message:
Just a heads up, since I can't really provide much more information  
than the dmesg output below, but I am consistenly able to lock up  
my V100 *hard* just by scp'ing stuff from it.


The first time I experienced the problem, I plugged a serial  
console in and had a DDB prompt, but ever since with something  
watching the console full-time, I've just gotten a locked-up  
machine and no DDB prompt or panic information.  Any tips for  
making sure I'm able to get either one?


Any help is sincerely appreciated.

-peter

console is /[EMAIL PROTECTED],0/[EMAIL PROTECTED]/[EMAIL PROTECTED],3f8
Copyright (c) 1982, 1986, 1989, 1991, 1993
The Regents of the University of California.  All rights  
reserved.
Copyright (c) 1995-2007 OpenBSD. All rights reserved.  http:// 
www.OpenBSD.org


OpenBSD 4.1 (GENERIC) #1099: Sat Mar 10 19:18:09 MST 2007
[EMAIL PROTECTED]:/usr/src/sys/arch/sparc64/compile/ 
GENERIC

total memory = 1073741824
avail memory = 968957952
using 6553 buffers containing 53682176 bytes of memory
bootpath: /[EMAIL PROTECTED],0/[EMAIL PROTECTED],0/[EMAIL PROTECTED],0
mainbus0 (root): Sun Fire V100 (UltraSPARC-IIe 648MHz)
cpu0 at mainbus0: SUNW,UltraSPARC-IIe (rev 3.3) @ 648 MHz, version  
0 FPU
cpu0: physical 16K instruction (32 b/l), 16K data (32 b/l), 512K  
external (64 b/

l)
psycho0 at mainbus0: SUNW,sabre, impl 0, version 0, ign 7c0
psycho0: bus range 0-0, PCI bus 0
psycho0: dvma map 6000-7fff, iotdb 4d18000-4d98000
pci0 at psycho0
ebus0 at pci0 dev 7 function 0 Acer Labs M1533 ISA rev 0x00
dma at ebus0 addr 0- ipl 42 not configured
rtc0 at ebus0 addr 70-71: m5819
power0 at ebus0 addr 2000-2007 ipl 35: can't map register space
SUNW,lomh at ebus0 addr 8010-8011 ipl 42 not configured
com0 at ebus0 addr 3f8-3ff ipl 43: ns16550a, 16 byte fifo
com0: console
com1 at ebus0 addr 2e8-2ef ipl 43: ns16550a, 16 byte fifo
flashprom at ebus0 addr 0-7 not configured
Acer Labs M7101 Power rev 0x00 at pci0 dev 3 function 0 not  
configured
dc0 at pci0 dev 12 function 0 Davicom DM9102 rev 0x31: ivec  
0x7c6, address 00:

03:ba:2a:92:9c
amphy0 at dc0 phy 1: DM9102 10/100 PHY, rev. 0
dc1 at pci0 dev 5 function 0 Davicom DM9102 rev 0x31: ivec 0x7dc,  
address 00:0

3:ba:2a:92:9d
amphy1 at dc1 phy 1: DM9102 10/100 PHY, rev. 0
ohci0 at pci0 dev 10 function 0 Acer Labs M5237 USB rev 0x03:  
ivec 0x7e4, vers

ion 1.0, legacy support
usb0 at ohci0: USB revision 1.0
uhub0 at usb0
uhub0: Acer Labs OHCI root hub, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
pciide0 at pci0 dev 13 function 0 Acer Labs M5229 UDMA IDE rev  
0xc3: DMA, chan

nel 0 configured to native-PCI, channel 1 configured to native-PCI
pciide0: using ivec 0x7cc for native-PCI interrupt
wd0 at pciide0 channel 0 drive 0: ST340016A
wd0: 16-sector PIO, LBA, 38166MB, 78165360 sectors
wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 2
atapiscsi0 at pciide0 channel 1 drive 0
scsibus0 at atapiscsi0: 2 targets
cd0 at scsibus0 targ 0 lun 0: TEAC, DV-28E-B, 1.2A SCSI0 5/cdrom  
removable

wd1 at pciide0 channel 1 drive 1: ST340016A
wd1: 16-sector PIO, LBA, 38166MB, 78165360 sectors
cd0(pciide0:1:0): using PIO mode 4, Ultra-DMA mode 2
wd1(pciide0:1:1): using PIO mode 4, Ultra-DMA mode 2
pcons at mainbus0 not configured
No counter-timer -- using %tick at 648MHz as system clock.
root on wd0a
rootdev=0xc00 rrootdev=0x1a00 rawdev=0x1a02
dc0: failed to force tx and rx to idle state
dc0: failed to force tx and rx to idle state




Re: About BSD Certification

2007-06-11 Thread Karsten McMinn

On 6/10/07, Adam [EMAIL PROTECTED] wrote:

That's just as stupid as requiring people have a cert.  Lots of people have
certs because so many places toss your resume if you don't have MCSE or
CCNA listed on it.  Just because they have a cert doesn't mean they don't
know what they're doing.


alot of anti-cert sentiment. borderline misinformation in
some cases. I've interviewed folks with and without certs.
I don't know why some people insist on arguing
that book != cover[1] with regard to certs. silly.

here's a couple points for consideration:

1) not all certs are created equal. ccie != mcse

2) many organizations hold cisco and MS partnerships
and will often choose a unix admin with a mcp and ccna
over one who doesn't so they can keep partnership
status or increase it -- all other factors being equal.

3) a few certs do carry salary floors with them.
the ccie being one and maybe the gse another.[2]

4) Most top firms that most of us would enjoy being
employed by almost always care less about certification,
as talent and skill means everything.

5) some argue that certification is a better-than-nothing
form of peer-reviewal of ones skills.

[1] book=person and their skills, cover=resume
[2] this assumes 5ish+ years of good real world experience



Re: Getting isakmpd and MacOSX racoon to work together

2007-06-11 Thread Damon McMahon

Hello Christopher,

On 11/06/2007 Christopher Vance [EMAIL PROTECTED] wrote:



I have several machines running OpenBSD 4.1, and am really impressed
by how easy it is to get IPSEC working between them these days. Thanks
people, it's great.

Unfortunately one other machine I'd dearly like to include is a MacOSX
10.4.9 machine, running racoon.

Yes I have googled, yes I have spent several days on this, and yes, I
do want to strangle the Mac.

Before I struggle too much longer trying to configure racoon to do the
right thing, or give in to using a package not in the OpenBSD base
system, is there someone out there actually running IPSEC with MacOSX
on one end and OpenBSD on the other, using racoon to do it?  I'd
really appreciate it if you could share working config.


I am doing IPsec between OpenBSD 4.1 and MacOS X 10.4.9 using ISAKMP  
and a pre-shared key. I couldn't get racoon to use blowfish  
encryption despite the racoon documentation implying it was supported  
so I'm using AES but besides that everything works.


I'm assuming you're adept with IPsec configuration on OpenBSD so for  
brevity I'll just include the MacOS X configuration. For further info  
see the MacOS X manual pages for racoon(8), racoon.conf(5) and setkey 
(8) which surprisingly are quite good (though not up to the standard  
of OpenBSD documentation, of course!) Apple adapted their IPsec  
implementation from FreeBSD so documentation from/regarding that  
project is worth a look as well.


% cat /etc/ipsec.conf
##
# ipsec.conf
##
# For use as argument to -f switch by setkey(8)
##
# NOTE:
#   Hard-coded assumptions are as follows:
#   - IPsec tunnel entry point is 192.168.1.2
#   - IPsec tunnel end point is 192.168.1.1
#   Consider using something similar to the script described at
#   http://forums.macosxhints.com/showthread.php?t=51774 to more
#   flexibly deal with dynamic host configuration.
##
# adapted from http://ezine.daemonnews.org/200401/wifi-ipsec.html
##
flush ;
spdflush ;
#
##
# Uncomment the below lines to permit DHCP outside of the tunnel
##
spdadd 0.0.0.0/32[68] 255.255.255.255/32[67] udp -P out none ;
spdadd 192.168.1.1[67] 192.168.1.0/24[68] udp -P in none ;
#
##
# Uncomment the below lines to permit SSH outside of the tunnel
##
#spdadd 192.168.1.2 192.168.1.1[22] tcp -P out none;
#spdadd 192.168.1.1[22] 192.168.1.2 tcp -P in none;
#
##
# Uncomment the below lines if this host is a gateway (router)
##
#spdadd 0.0.0.0/0 192.168.1.1 any -P out ipsec esp/tunnel/ 
192.168.1.2-192.168.1.1/unique ;
#spdadd 192.168.1.1 0.0.0.0/0 any -P in ipsec esp/tunnel/ 
192.168.1.1-192.168.1.2/unique ;

#
##
# Uncomment the below lines if this host is a node (end-point)
##
spdadd 192.168.1.2 192.168.1.1 any -P out ipsec esp/transport//unique ;
spdadd 192.168.1.1 192.168.1.2 any -P in ipsec esp/transport//unique ;
spdadd 192.168.1.2 0.0.0.0/0 any -P out ipsec esp/tunnel/ 
192.168.1.2-192.168.1.1/unique ;
spdadd 0.0.0.0/0 192.168.1.2 any -P in ipsec esp/tunnel/ 
192.168.1.1-192.168.1.2/unique ;

#
##
# end ipsec.conf
##

% cat /etc/racoon/racoon.conf
# path must be placed before it should be used.
# You can overwrite which you defined, but it should not use due to  
confusing.

path include /etc/racoon ;

# Allow third parties the ability to specify remote and sainfo entries
# by including all files matching /etc/racoon/remote/*.conf
include /etc/racoon/remote/*.conf ;

# search this file for pre_shared_key with various ID key.
path pre_shared_key /etc/racoon/psk.txt ;

# racoon will look for certificate file in the directory,
# if the certificate/certificate request payload is received.
path certificate /etc/cert ;

# log specifies logging level.  It is followed by either notify,  
debug

# or debug2.
#log debug;

# padding defines some parameter of padding.  You should not touch  
these.

padding
{
maximum_length 20;  # maximum padding length.
randomize off;  # enable randomize length.
strict_check off;   # enable strict check.
exclusive_tail off; # extract last one octet.
}

# if no listen directive is specified, racoon will listen to all
# available interface addresses.
listen
{
#isakmp ::1 [7000];
#isakmp 202.249.11.124 [500];
isakmp 192.168.1.2 [500];
#admin [7002];  # administrative's port by kmpstat.
#strict_address;# required all addresses must be bound.
}

# Specification of default various timer.
timer
{
# These value can be changed per remote node.
counter 10; # maximum trying count to send.
interval 3 sec; # interval to resend (retransmit)
persend 1;  # the number of packets per a send.

# timer for waiting to complete each phase.
phase1 30 sec;
phase2 30 sec;
}

#
# anonymous entry is defined in /etc/racoon/remote/anonymous.conf
#
##
# end racoon.conf
##

% cat /etc/racoon/remote/anonymous.conf
remote anonymous
{
 

mpi success

2007-06-11 Thread Karsten McMinn

Hi,
I'm posting a mpi success. Great work on the mpt(4)
rewrite David, Marco.

The same LSI7102XP under solaris8 on a Netra120
was netting 7MB/sec write, 18MB/sec read using
LSI's driver. sd1 is a Dothill SANnet II FC setup with
4 146G 10k FC drives in Raid5 with a 512k byte stripe size.

V-V

root:14# disklabel -E sd1
# Inside MBR partition 3: type A6 start 255 size 858627585
disklabel: Can't get bios geometry: Device not configured

Treating sectors 255-858627840 as the OpenBSD portion of the disk.
You can use the 'b' command to change this.

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

p

device: /dev/rsd1c
type: SCSI
disk: SCSI disk
label: NS-2500F
bytes/sector: 512
sectors/track: 255
tracks/cylinder: 64
sectors/cylinder: 16320
cylinders: 52612
total sectors: 858642432
free sectors: 858627585
rpm: 5411

16 partitions:
# sizeoffset  fstype [fsize bsize  cpg]
 a: 858627585   255  unused  0 0  # Cyl 0*- 52611
 c: 858642432 0  unused  0 0  # Cyl 0 - 52612*

d a
a a

offset: [255]
size: [858627585] 10g
Rounding to nearest cylinder: 20970945
FS type: [4.2BSD]

w
q

No label changes.
root:15# newfs /dev/sd1a
newfs: /dev/sd1a: not a character-special device
Warning: cylinder groups must have a multiple of 8 cylinders
Warning: 256 sector(s) in last cylinder unallocated
/dev/sd1a:  20970944 sectors in 20560 cylinders of 4 tracks, 255 sectors
   10239.7MB in 65 cyl groups (320 c/g, 159.38MB/g, 20352 i/g)
super-block backups (for fsck -b #) at:
snip
root:16# mount /dev/sd1a /mnt
root:19# dd if=/dev/zero of=/mnt/testfile bs=128k count=1
1+0 records in
1+0 records out
131072 bytes transferred in 17.067 secs (76797794 bytes/sec)
root:20# ls -sal /mnt
total 2560692
 4 drwxr-xr-x   2 root  wheel 512 Jun 11 06:31 ./
 4 drwxr-xr-x  14 root  wheel 512 Jun 11 05:03 ../
2560672 -rw-r--r--   1 root  wheel  131072 Jun 11 06:31 testfile
root:21# dd if=/dev/zero of=/mnt/testfile bs=128k count=1
root:21# dd if=/mnt/testfile of=/dev/null bs=128k
1+0 records in
1+0 records out
131072 bytes transferred in 21.531 secs (60874080 bytes/sec)
root:22# time rm /mnt/testfile
   0m0.26s real 0m0.00s user 0m0.08s system
root:23# dd if=/dev/zero of=/mnt/testfile bs=256k count=5000
5000+0 records in
5000+0 records out
131072 bytes transferred in 17.169 secs (76338052 bytes/sec)
root:24# dd if=/mnt/testfile of=/dev/null bs=256k
5000+0 records in
5000+0 records out
131072 bytes transferred in 22.234 secs (58949032 bytes/sec)
root:25# ls -sal /mnt | grep testfile
2560672 -rw-r--r--   1 root  wheel  131072 Jun 11 06:33 testfile
root:26# time rm /mnt/testfile
   0m0.23s real 0m0.00s user 0m0.07s system
root:27# dd if=/dev/zero of=/mnt/testfile bs=512k count=2500
2500+0 records in
2500+0 records out
131072 bytes transferred in 17.258 secs (75944612 bytes/sec)
root:28# dd if=/mnt/testfile of=/dev/null bs=512k
2500+0 records in
2500+0 records out
131072 bytes transferred in 22.398 secs (58519012 bytes/sec)
root:29# dd if=/dev/zero of=/mnt/testfile bs=48k count=3
3+0 records in
3+0 records out
147456 bytes transferred in 19.114 secs (77145176 bytes/sec)
root:30# dd if=/mnt/testfile of=/dev/null bs=48k
3+0 records in
3+0 records out
147456 bytes transferred in 23.789 secs (61984016 bytes/sec)
root:31# time rm /mnt/testfile
   0m0.24s real 0m0.00s user 0m0.07s system
root:32# dd if=/dev/zero of=/mnt/testfile bs=8k count=10
10+0 records in
10+0 records out
81920 bytes transferred in 10.134 secs (80831228 bytes/sec)
root:33# dd if=/mnt/testfile of=/dev/null bs=8k
10+0 records in
10+0 records out
81920 bytes transferred in 9.487 secs (86341860 bytes/sec)
root:34# ls -sal /mnt/testfile
1600448 -rw-r--r--  1 root  wheel  81920 Jun 11 06:37 /mnt/testfile
root:35# time rm /mnt/testfile
   0m0.09s real 0m0.00s user 0m0.04s system
root:36#
root:36# fdisk sd1
fdisk: sysctl(machdep.bios.diskinfo): Device not configured
Disk: sd1   geometry: 52612/64/255 [858642432 Sectors]
Offset: 0   Signature: 0xAA55
Starting   Ending   LBA Info:
#: idC   H  S -C   H  S [   start:  size   ]

0: 000   0  0 -0   0  0 [   0:   0 ] unused
1: 000   0  0 -0   0  0 [   0:   0 ] unused
2: 000   0  0 -0   0  0 [   0:   0 ] unused
*3: A60   1  1 - 52611  63 255 [ 255:   858627585 ] OpenBSD
root:37#




root:38# dmesg
OpenBSD 4.1 (GENERIC) #1435: Sat Mar 10 19:07:45 MST 2007
   [EMAIL PROTECTED]:/usr/src/sys/arch/i386/compile/GENERIC
RTC BIOS diagnostic error 28config_unit,fixed_disk
cpu0: Intel Pentium III (GenuineIntel 686-class) 994 MHz
cpu0: 

Re: need a machine for an itanium port

2007-06-11 Thread David Gwynne
On Mon, Jun 11, 2007 at 06:34:18AM -0600, Diana Eichert wrote:
 On Fri, 8 Jun 2007, Diana Eichert wrote:
 
 Sad, well I'll throw US$100 into the mix if someone wants to 
 co-ordinate it. I don't have any use for Itanium, but I do know that 
 dlg@ has done some great work, so I might as well support him in 
 something he wants to do.
 
 Anyone else?
 
 dian
 
 I just saw dlg@'s post on the undeadly thread, 
 http://undeadly.org/cgi?action=articlesid=20070609153557mode=expandedcount=8
 
 It looks like we have enough to go ahead and get a machine. Thanks 
 everyone :)
 
 Now I just have to find a machine...
 
 Since I'm not in Aus I can't help him find a system, but if there's anyone 
 over there who can assist I'm sure dlg@ would appreciate the help.
 
 Thanks everyone for getting this together.

I second that thanks :)

I'm struggling to find a machine in .au still though. There is one
itanium machine on ebay in australia, but it is overkill (mostly in
terms of price) for me to be able to purchase it.

If anyone knows of a place in Australias that have itanium machines
that theyre moving out of production and who would be happy to sell
one of them to me, I'd love to know about it.

Thanks again,
dlg



Re: About BSD Certification

2007-06-11 Thread Lars Hansson

Diana Eichert wrote:
Uggg, certs, I give little credence to any vendor cert.  So many 
people use bootcamps for tests and walk away with little more than 
paper.  I know, I work with them. 


Indeed. The problem isn't with certification in itself but the way it 
currently works in the IT industry. The majority of the people with 
certification got it by going to a boot camp or buying one of them 
examcram books thus end up with a certificate yet knowing nothing of value.



---
Lars Hansson



Re: About BSD Certification

2007-06-11 Thread bofh

On 6/11/07, Lars Hansson [EMAIL PROTECTED] wrote:

Indeed. The problem isn't with certification in itself but the way it
currently works in the IT industry. The majority of the people with
certification got it by going to a boot camp or buying one of them
examcram books thus end up with a certificate yet knowing nothing of value.


That's why there are some highly ethical companies that not only
provide training but REAL, HONEST-TO-GOODNESS experience!  How?!

You see, they analyzed the market, and came to the conclusion that
being a cert mill is impeding their marketability - ie, all those
whiners who paid for the class and can't get jobs is causing a lack of
new people who want to give them lots of money.  So, they have to
offer value-add.  Now, the people actually _running_ the show ain't
stupid, and really, its easy to see, have cert, no experience == no
job.  Getting the cert is easy - heck, don't they do it day in day
out?

How the heck do you get someone some hard earned experience?!!!

*ponder*

*ponder some more*

action fx=lightbulbAHA!  Lets do a paid internship program.  This
is how it works.  *YOU* pay them a large sum of money, usually around
US$10k or so, and in return, you get all the training you want for a
year or some such.  Or perhaps they guarantee you a msce cert.  OK,
that takes care of step 1.  Step 2, once you pass any exam, you now
get to teach that class.  Since it's an internship, they don't have to
pay you (see above note about US$10k).  After about 6 months or so,
hey, you now have 6 months of actual HONEST-TO-GOODNESS TEACHING
EXPERIENCE!  And you can even tell your new potential employers
that you're so good that YOU CAN TEACH THE CLASS!!!

And the best part about this program - it's self renewing.  After all,
the folks who paid $10k for the certs need the experience of teaching
other fools too, right?

-Mr. Sarcasm 'r' Us, for those who can't read between the lines.
--
This officer's men seem to follow him merely out of idle curiosity.
-- Sandhurst officer cadet evaluation.



Re: About BSD Certification

2007-06-11 Thread bofh

On 6/11/07, Karsten McMinn [EMAIL PROTECTED] wrote:

alot of anti-cert sentiment. borderline misinformation in
some cases. I've interviewed folks with and without certs.
I don't know why some people insist on arguing
that book != cover[1] with regard to certs. silly.

here's a couple points for consideration:


I think those are extremely good points.  As with everything else, not
everything is black and white.  And in certain cases, certifications
do ensure a minimum level of knowledge.  I try to keep an open mind.
Certain certs, I don't really care (ie, mcse).  Other certs, such as
ccnp, do imply a minimum level of knowledge.  Of course, there are
dumb as rocks CCIEs too.

One thing to keep in mind, just because I have a cert doesn't mean I
don't know what I'm doing.  Sometimes, it is necessary, for example,
to get past HR.  Way back in the mid-90s, a large back in town was
hiring for a security guy.  I tried for months to apply, but never got
past the HR firewall.  One day, the hiring manager put his own ad out,
with his email address.  I sent in my resume, and was immediately
summoned for an interview, and offered the job right then.  It was a
damned cool job too - he told me 70% of my time will be spent surfing
the net!!! :)

--
This officer's men seem to follow him merely out of idle curiosity.
-- Sandhurst officer cadet evaluation.



Re: upgrading RAIDFRAME systems

2007-06-11 Thread Josh Grosse
On Mon, Jun 11, 2007 at 06:59:46PM -0400, Nick Holland wrote:
 am I missing something, or did you neglect to help him with his question,
 which was about how to upgrade with RAIDframe in use?

I had everything except building the kernel, and placing it on the one (or 
two) non-RAIDFrame controlled partitions for booting.  Yep, I forgot 
that. :(