Re: Server room temperature sensors

2008-02-10 Thread Ryan Corder
On Wednesday, 06.02.2008 at 23:07 -0800, Joe wrote:
| Can anyone recommend a server room temperature sensor that I can use
| with openbsd?
| 
| I want to monitor temperature and humidity.
|
| I hope to graph the data from the sensor.
|
| The sensor can be connected to my openbsd via usb, serial, or even
| network.

http://www.itwatchdogs.com/products_mon.shtml

specifically, I have used the WeatherDuck -- best price, hooks directly to
your machine via serial, and you can get text-based data straight out of
it.  All of their other devices have superflourous features, if you ask me,
but many like the network-able products and SNMP support.


later.
ryanc



Story Writer Job !!

2008-02-10 Thread Sante Magazine
 Work as a 'Story Writer'

We are seeking for someone who can work as a 'Story Writer' in USA.

This opportunity is widely open to anyone who has the knowlegde to write
Stories. The successful candidate will need to have a computer with
internet connnetion and have good communication skills someone who can
write story.
The job description involves writing Stories all with good Spelling,
Grammar, Punctuation and Presentation for a magazine company. Applicants
must have a good knowledge of writing stories.

 To apply please send your Application letter with CV/Resume to our
email: [EMAIL PROTECTED]

Polly Diaz
Sante Magazine
email: [EMAIL PROTECTED]
Website: http://www.santemagazine.fr/



electronic safe for home,offices,hotels,institutes,........

2008-02-10 Thread ARMOUR ELECTRONICS PVT. LTD.
Dear sir,

we have entire range of security system including heavy safe, lockers, strong
room doors,
safety stick, metal detector,home security, cctv, ..

Please visit the link below.

Web site:
http://armourelectronics.tradeindia.com
http://www.armourindia.net

Dealership inquiry solicited.

Thanking you,
Armour Electronics Pvt. Ltd.

Ranjit Singh.
Director.



Postal address :
Armour Electronics Pvt. Ltd.
plot no. 3737,
phase -4, behind new nirma,
GIDC, Vatva,
Ahmedabad, gujarat,
india - 382445.

Phone No. :--  098250 37288
   093750 37288
 079-25842111
tele-fax - 091- 79-25840818

[demime 1.01d removed an attachment of type application/pdf which had a name of 
for homes and offices.pdf]



Re: Route-based VPN - Fortigate to OpenBSD

2008-02-10 Thread Chris Jones
Thanks for the advice I will look into that should the gif option not 
work. Do you have any advice as to how to run gif over ipsec?


-Chris

Claer wrote:

On Sat, Feb 09 2008 at 00:10, Chris Jones wrote:

Hi all,

Hi,

A while back I attempted to setup a route-based VPN tunnel between a 
Fortigate firewall and an OpenBSD firewall with no success. I now have the 
need to get this to work and wondering if someone on the list can shed some 
light on the configuration. The end goal is to have a gif(4) interface run 
over IPSec so that I can use a dynamic routing protocol to route traffic to 
remote VPN networks.


I can successfully create an IPSec VPN connection between the Fortigate and 
OpenBSD 4.2 system. Normally the tunnel interfaces on Fortigates and 
Netscreens are un-numbered.


I have tried bringing up the gif interface after successfully establishing 
an IPSec connection by issuing the following commands.


$ sudo ifconfig gif0 create
$ sudo ifconfig gif0 tunnel 1.1.1.1 2.2.2.2
$ sudo ifconfig gif0 10.0.0.3 10.0.0.2 prefixlen 32
$ sudo route add -inet 10.2.0.0/16 10.0.0.2

I then modified the un-numbered tunnel interface on the Fortigate side to 
use src 10.0.0.2 dst 10.0.0.3. This didn't seem right to begin with as I 
already have an IPSec tunnel established. Where I'm confused is setting up 
gif to tunnel over the IPSec connection in order route traffic across it. 
Can someone point me in the right direction.

Routed VPN in Netscreen and Fortinet is done by modifying the way ipsec
should work. It's not the way to go if you want to take the vpn decision
based on ip routes.

I'd firstly try to create a GRE tunnel (numbered) between peers and then
create a host to host vpn with GRE tunnel on top of it. 


Both OpenBSD and Netscreen support GRE, I hope Fortinet does.

Claer


My setup is quite simple.

network
---

internal  externalexternal   internal
--- |  - Internet -  | ---
10.1.1.0/24   1.1.1.1 2.2.2.210.2.0.0/16


ipsec.conf
--

remote_gw = 2.2.2.2

ike dynamic esp from 10.1.1.0/24 to 10.2.0.0/16 peer $remote_gw \
aggressive auth hmac-sha1 enc 3des group modp1536 \
quick auth hmac-sha1 enc 3des group modp1536 \
srcid [EMAIL PROTECTED] \
psk secret


Thanks,
-Chris

--
Chris Jones




--
Chris Jones

GDI Software Services Canada Inc.
Suite 1300, 1500 West Georgia St.
Vancouver, BC, Canada
V6G 2Z6
Email:  [EMAIL PROTECTED]
Mobile: 604.218.5981
Phone:  604.909.3300 | Fax: 604.909.0100



Java : Cafe Babe...

2008-02-10 Thread Mayuresh Kathe
Hi,

I've go an AMD32 bit machine (dmesg at the bottom of the mail).
I compiled JDK 1.5 from the ports and am able to run complex Java
based applications like NetBeans.
I wrote a small test prog like the one below:
class helloWorld {
public static void main(String args[]) {
System.out.println(Hello World!);
}
}

Compiled it using javac and ran it using java.
It runs OK, but when I viewed it using od -x helloWorld.class | less
the first 8 bytes have been inverted, reminds me of the NUXI problem,
see below:
000 fecabeba31001d00000a0006090f
020 1000110000080a121300140000070715
040 160000013c066e697469013e03002928
060 015604006f43656400014c0f6e694e65
100 6d75656254726261656c00016d046961
120 016e16005b286a4c76612f61616c676e
140 532f72746e693b6756290001530a756f

Any ideas about why this is happening and how I could fix it?

dmesg below:
OpenBSD 4.2 (GENERIC) #1: Thu Feb  7 20:46:53 IST 2008
[EMAIL PROTECTED]:/usr/src/sys/arch/i386/compile/GENERIC
cpu0: AMD Sempron(tm) Processor 3000+ (AuthenticAMD 686-class, 256KB
L2 cache) 1.61 GHz
cpu0: 
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,SSE3,CX16
real mem  = 469069824 (447MB)
avail mem = 445792256 (425MB)
mainbus0 at root
bios0 at mainbus0: AT/286+ BIOS, date 05/01/07, BIOS32 rev. 0 @
0xf0010, SMBIOS rev. 2.4 @ 0xf06f0 (49 entries)
bios0: vendor American Megatrends Inc. version 0201date 05/01/2007
bios0: ASUSTeK Computer INC. M2N-MX SE
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 3.0 @ 0xf/0x1
pcibios0: PCI IRQ Routing Table rev 1.0 @ 0xf7a40/256 (14 entries)
pcibios0: no compatible PCI ICU found: ICU vendor 0x10de product 0x03e0
pcibios0: PCI bus #4 is the last bus
bios0: ROM list: 0xc/0xee00 0xcf000/0x800
cpu0 at mainbus0
pci0 at mainbus0 bus 0: configuration mode 1 (no bios)
NVIDIA MCP61 Memory rev 0xa1 at pci0 dev 0 function 0 not configured
pcib0 at pci0 dev 1 function 0 NVIDIA MCP61 ISA rev 0xa2
nviic0 at pci0 dev 1 function 1 NVIDIA MCP61 SMBus rev 0xa2
iic0 at nviic0
iic1 at nviic0
NVIDIA MCP61 Memory rev 0xa2 at pci0 dev 1 function 2 not configured
ohci0 at pci0 dev 2 function 0 NVIDIA MCP61 USB rev 0xa2: irq 11,
version 1.0, legacy support
ehci0 at pci0 dev 2 function 1 NVIDIA MPC61 USB rev 0xa2: irq 10
usb0 at ehci0: USB revision 2.0
uhub0 at usb0: NVIDIA EHCI root hub, rev 2.00/1.00, addr 1
ppb0 at pci0 dev 4 function 0 NVIDIA MCP61 rev 0xa1
pci1 at ppb0 bus 1
xl0 at pci1 dev 6 function 0 3Com 3c905C 100Base-TX rev 0x74: irq
11, address 00:50:da:0d:c9:90
bmtphy0 at xl0 phy 24: Broadcom 3C905C internal PHY, rev. 6
azalia0 at pci0 dev 5 function 0 NVIDIA MCP61 HD Audio rev 0xa2: irq 11
azalia0: host: High Definition Audio rev. 1.0
azalia0: codec: Realtek/0x0662 (rev. 1.1), HDA version 1.0
audio0 at azalia0
pciide0 at pci0 dev 6 function 0 NVIDIA MCP61 IDE rev 0xa2: DMA,
channel 0 configured to compatibility, channel 1 configured to
compatibility
atapiscsi0 at pciide0 channel 0 drive 0
scsibus0 at atapiscsi0: 2 targets
cd0 at scsibus0 targ 0 lun 0: SONY, CD-RW CRX320EE, RYK4 SCSI0
5/cdrom removable
cd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 2
pciide0: channel 1 ignored (disabled)
nfe0 at pci0 dev 7 function 0 NVIDIA MCP61 LAN rev 0xa2: irq 11,
address bb:58:90:fc:1b:00
ukphy0 at nfe0 phy 1: Generic IEEE 802.3u media interface, rev. 1: OUI
0x001374, model 0x0002
pciide1 at pci0 dev 8 function 0 NVIDIA MCP61 SATA rev 0xa2: DMA
pciide1: using irq 15 for native-PCI interrupt
wd0 at pciide1 channel 0 drive 0: ST380215AS
wd0: 16-sector PIO, LBA48, 76319MB, 156301488 sectors
wd0(pciide1:0:0): using PIO mode 4, Ultra-DMA mode 5
ppb1 at pci0 dev 9 function 0 NVIDIA MCP61 PCIE rev 0xa2
pci2 at ppb1 bus 2
ppb2 at pci0 dev 11 function 0 NVIDIA MCP61 PCIE rev 0xa2
pci3 at ppb2 bus 3
ppb3 at pci0 dev 12 function 0 NVIDIA MCP61 PCIE rev 0xa2
pci4 at ppb3 bus 4
vga1 at pci0 dev 13 function 0 NVIDIA GeForce 6100 nForce 430 rev 0xa2
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
pchb0 at pci0 dev 24 function 0 AMD AMD64 HyperTransport rev 0x00
pchb1 at pci0 dev 24 function 1 AMD AMD64 Address Map rev 0x00
pchb2 at pci0 dev 24 function 2 AMD AMD64 DRAM Cfg rev 0x00
pchb3 at pci0 dev 24 function 3 AMD AMD64 Misc Cfg rev 0x00
isa0 at pcib0
isadma0 at isa0
pckbc0 at isa0 port 0x60/5
pckbd0 at pckbc0 (kbd slot)
pckbc0: using irq 1 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
lpt0 at isa0 

Re: ports.openbsd.nu

2008-02-10 Thread Fredrik Carlsson
Edd Barrett vext01 at gmail.com writes:

 
 hey,
 what happened to ports.openbsd.nu?.
 


The owner forgot to renew it and I can't reach him, so the site has moved to
http://openports.se

Regards
Fredrik Carlsson



Where is NAN Defined?

2008-02-10 Thread Jim Razmus
I'm trying to compile a program that uses NAN.  It includes math.h which
I'm told C99 says should define it.  I've grepped the entire source tree
and read up on man 3 math and man 3 isinf.  Still no joy.

Trying to compile the program yields error: `NAN' undeclared (first use
in this function).

Can anyone point me in the right direction?

Thanks,
Jim



Re: Where is NAN Defined?

2008-02-10 Thread Marc Balmer

Jim Razmus wrote:

I'm trying to compile a program that uses NAN.  It includes math.h which
I'm told C99 says should define it.  I've grepped the entire source tree
and read up on man 3 math and man 3 isinf.  Still no joy.

Trying to compile the program yields error: `NAN' undeclared (first use
in this function).

Can anyone point me in the right direction?


you can use the isnan(3) function to test for NaN.  Does that not work
in your program?



Re: Where is NAN Defined?

2008-02-10 Thread Chris Kuethe
On Feb 10, 2008 8:31 AM, Jim Razmus [EMAIL PROTECTED] wrote:
 I'm trying to compile a program that uses NAN.  It includes math.h which
 I'm told C99 says should define it.  I've grepped the entire source tree
 and read up on man 3 math and man 3 isinf.  Still no joy.

 Trying to compile the program yields error: `NAN' undeclared (first use
 in this function).

 Can anyone point me in the right direction?

#ifndef NAN
#define NAN (0.0/0.0)
#endif


-- 
GDB has a 'break' feature; why doesn't it have 'fix' too?



Re: Where is NAN Defined?

2008-02-10 Thread Floor Terra
On 2/10/08, Jim Razmus [EMAIL PROTECTED] wrote:
 I'm trying to compile a program that uses NAN.  It includes math.h which
 I'm told C99 says should define it.  I've grepped the entire source tree
 and read up on man 3 math and man 3 isinf.  Still no joy.

 Trying to compile the program yields error: `NAN' undeclared (first use
 in this function).

 Can anyone point me in the right direction?

 Thanks,
 Jim



Not OpenBSD related, but I was curious myself.

Try reading http://en.wikipedia.org/wiki/NaN

Or read isnan(3) if you just want to test is a number is NaN. (NaN != NaN)


Floor



Re: Where is NAN Defined?

2008-02-10 Thread Jim Razmus
* Chris Kuethe [EMAIL PROTECTED] [080210 12:34]:
 On Feb 10, 2008 8:31 AM, Jim Razmus [EMAIL PROTECTED] wrote:
  I'm trying to compile a program that uses NAN.  It includes math.h which
  I'm told C99 says should define it.  I've grepped the entire source tree
  and read up on man 3 math and man 3 isinf.  Still no joy.
 
  Trying to compile the program yields error: `NAN' undeclared (first use
  in this function).
 
  Can anyone point me in the right direction?
 
 #ifndef NAN
 #define NAN (0.0/0.0)
 #endif
 
 
 -- 
 GDB has a 'break' feature; why doesn't it have 'fix' too?
 

I'm told that math.h should do this for me.  Moreover, I think NAN is a
machine dependent value.

Adding the line you mention would break on VAX (assuming I understand
this correctly).  Although I don't think anyone would run this program
on a VAX, if it's in the ports tree there's the possibility.

Worst case, I could add those defines though.

Thanks.
Jim



Re: Where is NAN Defined?

2008-02-10 Thread Jim Razmus
* Marc Balmer [EMAIL PROTECTED] [080210 12:06]:
 Jim Razmus wrote:
 I'm trying to compile a program that uses NAN.  It includes math.h which
 I'm told C99 says should define it.  I've grepped the entire source tree
 and read up on man 3 math and man 3 isinf.  Still no joy.
 Trying to compile the program yields error: `NAN' undeclared (first use
 in this function).
 Can anyone point me in the right direction?

 you can use the isnan(3) function to test for NaN.  Does that not work
 in your program?


The isnan test is not the issue.  The program actually sets a variable to
the value NAN.  It's those lines that gak the compiler.

The lines that fail are:

sp-t_req = NAN;
sp-t_resp = NAN;

and the error during compilation is:

gcc -DHAVE_CONFIG_H -I. -I../.. -I../../include   -include config.h
-DVARNISH_STATE_DIR='/usr/local/var/varnish' -g -O2 -MT
varnishd-cache_center.o -MD -MP -MF .deps/varnishd-cache_center.Tpo -c
-o varnishd-cache_center.o `test -f 'cache_center.c' || echo
'./'`cache_center.c
cache_center.c: In function `cnt_done':
cache_center.c:212: error: `NAN' undeclared (first use in this function)
cache_center.c:212: error: (Each undeclared identifier is reported only
once
cache_center.c:212: error: for each function it appears in.)
*** Error code 1

Hope that helps clear up my question.

Jim



prng and a fix wich should (not?) happen..?

2008-02-10 Thread sebastian . rother
I would like to get the point of the developers related to the PRNG issue
wich was discovered last year.

Back then OpenBSD developers said OpenBSD is not affected but now I read a
Slashdot-Article wich links to informations wich say the total opposite.

http://it.slashdot.org/it/08/02/10/0136236.shtml
leads to:
http://readlist.com/lists/securityfocus.com/bugtraq/4/22004.html

So could somebody finaly tell me what's the status about it?
And please no oBSD rocks or OpenBSD sucks or We're l33t and
unbreakable ubercoders talks. I think the informations provided are
pretty omg and bad PR too :-/

OpenBSD's coordinator stated, in an email, that OpenBSD is completely
uninterested in the problem and that the problem is completely irrelevant
in the real world.

So I would be happy about a technical explantation why so many (even BSD
projects) think it's a problem but OpenBSD does not.

Another omg comment:


Interestingly enough, OpenBSD uses a flavor of this PRNG for
another field, this time the IP fragmentation ID, part of the
OpenBSD kernel network stack. The analysis carries out quite
similarly to show that OpenBSD's IP ID is predictable as well,
which gives way to O/S fingerprinting, idle-scanning, host alias
detection, traffic analysis, and in some cases, even to TCP blind
data injection.

That doesn't sound like Theory but like a PoC wich lays arround
somewhere

Sebastian

p.s.
I hate registrations (even if I may have used fake data) so:
http://www.trusteer.com/docs/DNS_Poisoning_paper.pdf



Re: Energy saving AMD 64 X2 EE CPU possible?

2008-02-10 Thread gwk
What version of OpenBSD is this ? Try -current with acpi enabled the
powernow driver may be able to find the state data and you will have the
opportunity to save some juice.

gwk

On Sat, Aug 25, 2007 at 09:35:38PM +0200, James Lepthien wrote:
 Hi,

 I run my OpenBSD 4.1-stable firewallsystem on a System which is way 
 oversized for my needs.
 I want this system to consume as little power as possible so I need your 
 advices. I started the
 apmd with the option -C but the apm output is the following:

 Battery state: unknown, 0% remaining, unknown life estimate
 A/C adapter state: not known
 Performance adjustment mode: cool running (2009 MHz)

 So the CPU is still running at full speed! Here is my dmesg output for the 
 cpu:

 cpu0 at mainbus0: apid 0 (boot processor)
 cpu0: AMD Athlon(tm) 64 X2 Dual Core Processor 3800+, 2009.58 MHz
 cpu0: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,
 CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,CX16,NXE,MMXX,FFXSR,
 LONG,3DNOW2,3DNOW
 cpu0: 64KB 64b/line 2-way I-cache, 64KB 64b/line 2-way D-cache, 512KB 
 64b/line 16-way L2 cache
 cpu0: ITLB 32 4KB entries fully associative, 8 4MB entries fully 
 associative
 cpu0: DTLB 32 4KB entries fully associative, 8 4MB entries fully 
 associative
 cpu0: apic clock running at 200MHz
 cpu1 at mainbus0: apid 1 (application processor)
 cpu1: AMD Athlon(tm) 64 X2 Dual Core Processor 3800+, 2009.26 MHz
 cpu1: 
 FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,
 CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,CX16,NXE,MMXX,FFXSR,LONG,3DNOW2,3DNOW
 cpu1: 64KB 64b/line 2-way I-cache, 64KB 64b/line 2-way D-cache, 512KB 
 64b/line 16-way L2 cache
 cpu1: ITLB 32 4KB entries fully associative, 8 4MB entries fully 
 associative
 cpu1: DTLB 32 4KB entries fully associative, 8 4MB entries fully 
 associative

 Can I do something about this or is this simply not supported? Is there 
 anything more I can do to
 reduce power consumption of my system?

 Thanks in advance!

 James



Re: Server room temperature sensors

2008-02-10 Thread Paul Greidanus

Joe wrote:
Can anyone recommend a server room temperature sensor that I can use 
with openbsd?


I want to monitor temperature and humidity.

I hope to graph the data from the sensor.

The sensor can be connected to my openbsd via usb, serial, or even 
network.


I'm pretty happy with my overpriced and expensive Netbotz boxes from 
APC.. they do everything, and more, including email alarms, http works 
great from my blackberry.  You can snmp query them if you want, or just 
trust that they'll alert you as appropriate.  They don't so much work 
with OpenBSD as they work on their own and use smtp, http and snmp to 
talk to the world over Ethernet.


However, the cheapest one was around $1500 when I picked them up, so 
it's by far not the cheapest way to do this.


Paul



Re: Where is NAN Defined?

2008-02-10 Thread James

Jim Razmus wrote:

* Chris Kuethe [EMAIL PROTECTED] [080210 12:34]:
  

On Feb 10, 2008 8:31 AM, Jim Razmus [EMAIL PROTECTED] wrote:


I'm trying to compile a program that uses NAN.  It includes math.h which
I'm told C99 says should define it.  I've grepped the entire source tree
and read up on man 3 math and man 3 isinf.  Still no joy.

Trying to compile the program yields error: `NAN' undeclared (first use
in this function).

Can anyone point me in the right direction?
  

#ifndef NAN
#define NAN (0.0/0.0)
#endif


--
GDB has a 'break' feature; why doesn't it have 'fix' too?




I'm told that math.h should do this for me.  Moreover, I think NAN is a
machine dependent value.

Adding the line you mention would break on VAX (assuming I understand
this correctly).  Although I don't think anyone would run this program
on a VAX, if it's in the ports tree there's the possibility.

Worst case, I could add those defines though.

Thanks.
Jim


  


Have you tried using grep in the library tree to find it?



Re: Bluetooth on 4.2 (solved in -current)

2008-02-10 Thread gwk
On Thu, Jan 17, 2008 at 02:56:24PM -0800, Wim Lewis wrote:
 On Jan 14, 2008, at 7:24 AM, Uwe Stuehler wrote:
 On Sun, Jan 13, 2008 at 03:20:46AM +, Wim Lewis wrote:
 How much should I expect Bluetooth to be working on OBSD 4.2? I can get 
 some
 things to work, but I can't successfully open an RFCOMM connecton.

 The ubt(4) driver was fixed in -current, -r1.10 of sys/dev/usb/ubt.c.

 Aha! Thank you, with that change pulled into -stable I can search/browse 
 SDP info and make rfcomm connections to nearby devices.

 I notice that the sockets and interfaces used by Bluetooth don't show up in 
 utilities like netstat and ifconfig. Is that the direction that Bluetooth 
 support is heading? I think it would be a reasonable approach to treat bt 
 like any other network interface (albeit one that doesn't carry IP), since 
 bt is pretty network-like...

I am not sure what direction OpenBSD will go WRT the bluetooth tools
uwe@ and I imported the bluetooth stack from netbsd at c2k7 but I think
we are in agreement that the userland interface is awful 4 uttilities to
setup a serial connection is unacceptable, perhaps we can get something
cleaner but it will be post 4.3.

gwk



Re: Where is NAN Defined?

2008-02-10 Thread David Higgs
On Feb 10, 2008 12:55 PM, Jim Razmus [EMAIL PROTECTED] wrote:
 * Chris Kuethe [EMAIL PROTECTED] [080210 12:34]:
  On Feb 10, 2008 8:31 AM, Jim Razmus [EMAIL PROTECTED] wrote:
   I'm trying to compile a program that uses NAN.  It includes math.h which
   I'm told C99 says should define it.  I've grepped the entire source tree
   and read up on man 3 math and man 3 isinf.  Still no joy.
  
   Trying to compile the program yields error: `NAN' undeclared (first use
   in this function).
  
   Can anyone point me in the right direction?
 
  #ifndef NAN
  #define NAN (0.0/0.0)
  #endif
 
 
  --
  GDB has a 'break' feature; why doesn't it have 'fix' too?
 

 I'm told that math.h should do this for me.  Moreover, I think NAN is a
 machine dependent value.

 Adding the line you mention would break on VAX (assuming I understand
 this correctly).  Although I don't think anyone would run this program
 on a VAX, if it's in the ports tree there's the possibility.

 Worst case, I could add those defines though.

 Thanks.
 Jim

Is your source familiar with OpenBSD?
You say C99 math.h supposedly provides NAN.
math(3) says nothing about C99.  That's your first clue.
Looking through gcc(1) for -std=c99 points to the GCC webpage [1].
It says additional math library functions are missing.  That might
be another clue.

If you can't use NAN in a simple test program using -std=c99 and/or
-lm, you're SOL unless you start patching your program.

Both math(3) and the source for isnan(3) (see [2]) indicate that there
are many potential NaN values.  Unless you know exactly what this
program is doing or are very familiar with your arch's floating point
support, don't assume that #define will work 100% of the time.

I'm no expert though.  Good luck.

--david

[1] http://gcc.gnu.org/gcc-3.3/c99status.html
[2] http://www.openbsd.org/cgi-bin/cvsweb/src/lib/libm/src/s_isnan.c



Re: Java : Cafe Babe...

2008-02-10 Thread Philip Guenther
On Feb 10, 2008 4:55 AM, Mayuresh Kathe [EMAIL PROTECTED] wrote:
 I've go an AMD32 bit machine (dmesg at the bottom of the mail).
...
 Compiled it using javac and ran it using java.
 It runs OK, but when I viewed it using od -x helloWorld.class | less
 the first 8 bytes have been inverted, reminds me of the NUXI problem,
 see below:
 000 fecabeba31001d00000a0006090f

To quote SUSv3's specification for od's -x option:
 The byte order used when interpreting numeric values is
implementation-defined,
 but shall correspond to the order in which a constant of the
corresponding type is
 stored in memory on the system.

So, on AMD64, it's little-endian and the output you report is correct.
 If you want the hex values to be reported individually in the byte
order of the file, use od -t xC.


 Any ideas about why this is happening and how I could fix it?

Step 1: learn to question your assumptions...


Philip Guenther



Re: Java : Cafe Babe...

2008-02-10 Thread Edd Barrett
On Feb 10, 2008 12:55 PM, Mayuresh Kathe [EMAIL PROTECTED] wrote:
 Compiled it using javac and ran it using java.
 It runs OK, but when I viewed it using od -x helloWorld.class | less
 the first 8 bytes have been inverted, reminds me of the NUXI problem,
 see below:
 000 fecabeba31001d00000a0006090f

Because your machine is little endian :P

Now try on a sparc64 and see what happens.

-- 

Best Regards

Edd

http://students.dec.bournemouth.ac.uk/ebarrett



sd0: not queuqued error 5

2008-02-10 Thread Beavis
Is there anyone here that have the same problem with a dell 1950 box,
I tried to run openbsd 4.2 with a stock kernel, and when i try to
extract the ports.tgz on the box i get the following msg:

sd0: not queuqued error 5

I've tried to run a stable kernel but with the same results. below is
my dmesg: any help would be greatly appreciated.

-b

OpenBSD 4.2-stable (MX01) #0: Fri Feb  8 04:51:27 CST 2008
[EMAIL PROTECTED]:/usr/src/sys/arch/i386/compile/MX01
cpu0: Intel(R) Xeon(R) CPU 5130 @ 2.00GHz (GenuineIntel 686-class) 2 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,VMX,TM2,CX16,xTPR
real mem  = 2146697216 (2047MB)
avail mem = 2068189184 (1972MB)
mainbus0 at root
bios0 at mainbus0: AT/286+ BIOS, date 08/10/07, BIOS32 rev. 0 @
0xffe90, SMBIOS rev. 2.4 @ 0x7ffbc000 (62 entries)
bios0: vendor Dell Inc. version 1.5.1 date 08/10/2007
bios0: Dell Inc. PowerEdge 1950
pcibios0 at bios0: rev 2.1 @ 0xf/0x1
pcibios0: PCI IRQ Routing Table rev 1.0 @ 0xfaa30/368 (21 entries)
pcibios0: PCI Interrupt Router at 000:31:0 (Intel 6321ESB LPC rev 0x00)
pcibios0: PCI bus #17 is the last bus
bios0: ROM list: 0xc/0x9000! 0xc9000/0x1000 0xca000/0x1800
0xcb800/0x5200 0xec000/0x4000!
cpu0 at mainbus0
pci0 at mainbus0 bus 0: configuration mode 1 (no bios)
pchb0 at pci0 dev 0 function 0 Intel 5000X Host rev 0x12
ppb0 at pci0 dev 2 function 0 Intel 5000 PCIE rev 0x12
pci1 at ppb0 bus 6
ppb1 at pci1 dev 0 function 0 Intel 6321ESB PCIE rev 0x01
pci2 at ppb1 bus 7
ppb2 at pci2 dev 0 function 0 Intel 6321ESB PCIE rev 0x01
pci3 at ppb2 bus 8
ppb3 at pci3 dev 0 function 0 ServerWorks PCIE-PCIX rev 0xc3
pci4 at ppb3 bus 9
bnx0 at pci4 dev 0 function 0 Broadcom BCM5708 rev 0x12: irq 11
ppb4 at pci2 dev 1 function 0 Intel 6321ESB PCIE rev 0x01
pci5 at ppb4 bus 10
ppb5 at pci1 dev 0 function 3 Intel 6321ESB PCIE-PCIX rev 0x01
pci6 at ppb5 bus 11
ppb6 at pci0 dev 3 function 0 Intel 5000 PCIE rev 0x12
pci7 at ppb6 bus 1
ppb7 at pci7 dev 0 function 0 Intel IOP333 PCIE-PCIX rev 0x00
pci8 at ppb7 bus 2
mfi0 at pci8 dev 14 function 0 Dell PERC 5 rev 0x00: irq 5
mfi0: logical drives 1, version 5.1.1-0040, 256MB RAM
scsibus0 at mfi0: 1 targets
sd0 at scsibus0 targ 0 lun 0: DELL, PERC 5/i, 1.03 SCSI3 0/direct fixed
sd0: 69376MB, 8844 cyl, 255 head, 63 sec, 512 bytes/sec, 142082048 sec total
ppb8 at pci7 dev 0 function 2 Intel IOP333 PCIE-PCIX rev 0x00
pci9 at ppb8 bus 3
ppb9 at pci0 dev 4 function 0 Intel 5000 PCIE rev 0x12
pci10 at ppb9 bus 12
ppb10 at pci10 dev 0 function 0 Intel PCIE-PCIE rev 0x09
pci11 at ppb10 bus 13
ppb11 at pci0 dev 5 function 0 Intel 5000 PCIE rev 0x12
pci12 at ppb11 bus 14
ppb12 at pci0 dev 6 function 0 Intel 5000 PCIE rev 0x12
pci13 at ppb12 bus 15
ppb13 at pci0 dev 7 function 0 Intel 5000 PCIE rev 0x12
pci14 at ppb13 bus 16
pchb1 at pci0 dev 16 function 0 Intel 5000 Error Reporting rev 0x12
pchb2 at pci0 dev 16 function 1 Intel 5000 Error Reporting rev 0x12
pchb3 at pci0 dev 16 function 2 Intel 5000 Error Reporting rev 0x12
pchb4 at pci0 dev 17 function 0 Intel 5000 Reserved rev 0x12
pchb5 at pci0 dev 19 function 0 Intel 5000 Reserved rev 0x12
pchb6 at pci0 dev 21 function 0 Intel 5000 FBD rev 0x12
pchb7 at pci0 dev 22 function 0 Intel 5000 FBD rev 0x12
ppb14 at pci0 dev 28 function 0 Intel 6321ESB PCIE rev 0x09
pci15 at ppb14 bus 4
ppb15 at pci15 dev 0 function 0 ServerWorks PCIE-PCIX rev 0xc3
pci16 at ppb15 bus 5
bnx1 at pci16 dev 0 function 0 Broadcom BCM5708 rev 0x12: irq 11
uhci0 at pci0 dev 29 function 0 Intel 6321ESB USB rev 0x09: irq 11
uhci1 at pci0 dev 29 function 1 Intel 6321ESB USB rev 0x09: irq 10
uhci2 at pci0 dev 29 function 2 Intel 6321ESB USB rev 0x09: irq 11
ehci0 at pci0 dev 29 function 7 Intel 6321ESB USB rev 0x09: irq 11
usb0 at ehci0: USB revision 2.0
uhub0 at usb0: Intel EHCI root hub, rev 2.00/1.00, addr 1
ppb16 at pci0 dev 30 function 0 Intel 82801BA AGP rev 0xd9
pci17 at ppb16 bus 17
vga1 at pci17 dev 13 function 0 ATI ES1000 rev 0x02
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
ichpcib0 at pci0 dev 31 function 0 Intel 6321ESB LPC rev 0x09: PM disabled
pciide0 at pci0 dev 31 function 1 Intel 6321ESB IDE rev 0x09: DMA,
channel 0 configured to compatibility, channel 1 configured to
compatibility
atapiscsi0 at pciide0 channel 0 drive 0
scsibus1 at atapiscsi0: 2 targets
cd0 at scsibus1 targ 0 lun 0: TEAC, DVD-ROM DV28EV, D.AE SCSI0
5/cdrom removable
cd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 2
pciide0: channel 1 ignored (disabled)
usb1 at uhci0: USB revision 1.0
uhub1 at usb1: Intel UHCI root hub, rev 1.00/1.00, addr 1
usb2 at uhci1: USB revision 1.0
uhub2 at usb2: Intel UHCI root hub, rev 1.00/1.00, addr 1
usb3 at uhci2: USB revision 1.0
uhub3 at usb3: Intel UHCI root hub, rev 1.00/1.00, addr 1
isa0 at ichpcib0
isadma0 at isa0
pckbc0 at isa0 port 0x60/5
pckbd0 at pckbc0 (kbd slot)
pckbc0: using irq 1 for kbd 

Re: ports.openbsd.nu

2008-02-10 Thread Stefan Kell
Thank's a lot!

This is good to know!

Stefan

 Original-Nachricht 
 Datum: Sun, 10 Feb 2008 14:07:23 + (UTC)
 Von: Fredrik Carlsson [EMAIL PROTECTED]
 An: misc@openbsd.org
 Betreff: Re: ports.openbsd.nu

 Edd Barrett vext01 at gmail.com writes:
 
  
  hey,
  what happened to ports.openbsd.nu?.
  
 
 
 The owner forgot to renew it and I can't reach him, so the site has moved
 to
 http://openports.se
 
 Regards
 Fredrik Carlsson



Re: sd0: not queuqued error 5

2008-02-10 Thread Michael
Hi,

Beavis schrieb:
 Is there anyone here that have the same problem with a dell 1950 box,

No, but with a PE 2950...


Michael



# dmesg
OpenBSD 4.2-current (GENERIC.MP) #0: Sat Jan 26 14:05:52 CET 2008
[EMAIL PROTECTED]:/usr/src/sys/arch/i386/compile/GENERIC.MP
cpu0: Intel(R) Xeon(R) CPU 5130 @ 2.00GHz (GenuineIntel 686-class) 2 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,VMX,TM2,CX16,xTPR
real mem  = 3488874496 (3327MB)
avail mem = 3385110528 (3228MB)
mainbus0 at root
bios0 at mainbus0: AT/286+ BIOS, date 08/10/07, BIOS32 rev. 0 @ 0xffe90,
SMBIOS rev. 2.4 @ 0xcffbc000 (62 entries)
bios0: vendor Dell Inc. version 1.5.1 date 08/10/2007
bios0: Dell Inc. PowerEdge 2950
acpi0 at bios0: rev 2
acpi0: tables DSDT FACP APIC SPCR HPET MCFG
acpi0: wakeup devices PCI0(S5)
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: apic clock running at 332 MHz
cpu1 at mainbus0: apid 1 (application processor)
cpu1: Intel(R) Xeon(R) CPU 5130 @ 2.00GHz (GenuineIntel 686-class) 2 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,VMX,TM2,CX16,xTPR
ioapic0 at mainbus0: apid 2 pa 0xfec0, version 20, 24 pins
ioapic0: misconfigured as apic 0, remapped to apid 2
ioapic1 at mainbus0: apid 3 pa 0xfec81000, version 20, 24 pins
ioapic1: misconfigured as apic 0, remapped to apid 3
acpihpet0 at acpi0: 14318179 Hz
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus 6 (PEX2)
acpiprt2 at acpi0: bus 7 (UPST)
acpiprt3 at acpi0: bus 8 (DWN1)
acpiprt4 at acpi0: bus 10 (DWN2)
acpiprt5 at acpi0: bus 1 (PEX3)
acpiprt6 at acpi0: bus 2 (PE2P)
acpiprt7 at acpi0: bus 12 (PEX4)
acpiprt8 at acpi0: bus 14 (PEX6)
acpiprt9 at acpi0: bus 4 (SBEX)
acpiprt10 at acpi0: bus 16 (COMP)
acpicpu0 at acpi0
acpicpu1 at acpi0
bios0: ROM list: 0xc/0x9000! 0xc9000/0x5200 0xec000/0x4000!
ipmi at mainbus0 not configured
pci0 at mainbus0 bus 0: configuration mode 1 (no bios)
pchb0 at pci0 dev 0 function 0 Intel 5000X Host rev 0x12
ppb0 at pci0 dev 2 function 0 Intel 5000 PCIE rev 0x12
pci1 at ppb0 bus 6
ppb1 at pci1 dev 0 function 0 Intel 6321ESB PCIE rev 0x01
pci2 at ppb1 bus 7
ppb2 at pci2 dev 0 function 0 Intel 6321ESB PCIE rev 0x01
pci3 at ppb2 bus 8
ppb3 at pci3 dev 0 function 0 ServerWorks PCIE-PCIX rev 0xc3
pci4 at ppb3 bus 9
bnx0 at pci4 dev 0 function 0 Broadcom BCM5708 rev 0x12: apic 2 int 17
(irq 11)
ppb4 at pci2 dev 1 function 0 Intel 6321ESB PCIE rev 0x01: apic 2 int
17 (irq 0)
pci5 at ppb4 bus 10
ppb5 at pci1 dev 0 function 3 Intel 6321ESB PCIE-PCIX rev 0x01
pci6 at ppb5 bus 11
ppb6 at pci0 dev 3 function 0 Intel 5000 PCIE rev 0x12
pci7 at ppb6 bus 1
ppb7 at pci7 dev 0 function 0 Intel IOP333 PCIE-PCIX rev 0x00
pci8 at ppb7 bus 2
mfi0 at pci8 dev 14 function 0 Dell PERC 5 rev 0x00: apic 3 int 14 (irq 5)
mfi0: logical drives 1, version 5.1.1-0040, 256MB RAM
scsibus0 at mfi0: 1 targets
sd0 at scsibus0 targ 0 lun 0: DELL, PERC 5/i, 1.03 SCSI3 0/direct fixed
sd0: 139392MB, 17769 cyl, 255 head, 63 sec, 512 bytes/sec, 285474816 sec
total
ppb8 at pci7 dev 0 function 2 Intel IOP333 PCIE-PCIX rev 0x00
pci9 at ppb8 bus 3
ppb9 at pci0 dev 4 function 0 Intel 5000 PCIE rev 0x12: apic 2 int 18
(irq 0)
pci10 at ppb9 bus 12
ppb10 at pci0 dev 5 function 0 Intel 5000 PCIE rev 0x12
pci11 at ppb10 bus 13
ppb11 at pci0 dev 6 function 0 Intel 5000 PCIE rev 0x12: apic 2 int 19
(irq 0)
pci12 at ppb11 bus 14
ppb12 at pci0 dev 7 function 0 Intel 5000 PCIE rev 0x12
pci13 at ppb12 bus 15
pchb1 at pci0 dev 16 function 0 Intel 5000 Error Reporting rev 0x12
pchb2 at pci0 dev 16 function 1 Intel 5000 Error Reporting rev 0x12
pchb3 at pci0 dev 16 function 2 Intel 5000 Error Reporting rev 0x12
pchb4 at pci0 dev 17 function 0 Intel 5000 Reserved rev 0x12
pchb5 at pci0 dev 19 function 0 Intel 5000 Reserved rev 0x12
pchb6 at pci0 dev 21 function 0 Intel 5000 FBD rev 0x12
pchb7 at pci0 dev 22 function 0 Intel 5000 FBD rev 0x12
ppb13 at pci0 dev 28 function 0 Intel 6321ESB PCIE rev 0x09
pci14 at ppb13 bus 4
ppb14 at pci14 dev 0 function 0 ServerWorks PCIE-PCIX rev 0xc3
pci15 at ppb14 bus 5
bnx1 at pci15 dev 0 function 0 Broadcom BCM5708 rev 0x12: apic 2 int
16 (irq 11)
uhci0 at pci0 dev 29 function 0 Intel 6321ESB USB rev 0x09: apic 2 int
21 (irq 11)
uhci1 at pci0 dev 29 function 1 Intel 6321ESB USB rev 0x09: apic 2 int
20 (irq 10)
uhci2 at pci0 dev 29 function 2 Intel 6321ESB USB rev 0x09: apic 2 int
21 (irq 11)
ehci0 at pci0 dev 29 function 7 Intel 6321ESB USB rev 0x09: apic 2 int
21 (irq 11)
usb0 at ehci0: USB revision 2.0
uhub0 at usb0 Intel EHCI root hub rev 2.00/1.00 addr 1
ppb15 at pci0 dev 30 function 0 Intel 82801BA AGP rev 0xd9
pci16 at ppb15 bus 16
vga1 at pci16 dev 13 function 0 ATI ES1000 rev 0x02
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added 

Suggestion for ipsec.conf(5)

2008-02-10 Thread Aurélien
In the [manual flows] section of the ipsec.conf man page, the [type
modifier] parameter doesn't explain require, use, acquire and dontacq
modifiers. The explanation from the old ipsecadm(8) should be use:

A use flow, specify that packets matching this flow should try to use IPsec
if possible.
A acquire For flow specify that packets matching this flow should try  to
use IPsec and establish SAs dynamically if possible, but permit unencrypted
traffic.
A require flow specify that packets matching this flow must use IPsec, and
establish SAs dynamically as needed.  If no SAs are established, traffic is
not allowed through.
A dontacq flow specify that packets matching this flow must use IPsec.  If
such SAs are not present, simply drop the packets. Such a policy may be used
to demand peers establish SAs before they can communicate with us, without
going through the burden of initiating the SA ourselves (thus allowing for
some denial of service attacks). This flow type is particularly suitable for
security gateways.


Aurilien.



Re: prng and a fix wich should (not?) happen..?

2008-02-10 Thread David Higgs
You saw the official status.  Increased public attention rarely
changes a technical opinion around here.

Reading the bugtraq link indicates that in other OSes, the default
sysctl disables the PRNG, resulting in a sequential IP ID counter.
Anyone with half a brain can see that sequential is infinitely worse
than a weak PRNG.  I didn't look up the others, but FreeBSD CVS
indicates that their fixed PRNG is still not enabled by default.
How's that for security?

Also, I thought BIND 9 had its own PRNG flaws, which is what prompted
OpenBSD to provide their own in the first place.  What algorithm is
BIND 9 currently using?

At any rate, OpenBSD developers likely believe (or know from firsthand
experience) that there are already satisfactory measures that can be
taken by concerned admins to secure DNS or other traffic.  If superior
methods are already available and improving this PRNG has minimal
overall benefit, it is therefore uninteresting and of low priority.
Note that this does not preclude it from ever being fixed.  If you are
that concerned about the issue, you are certainly welcome to patch and
compile it yourself.

IIRC, the fields affected by this PRNG flaw were originally intended
to be sequential counters, and therefore must be monotonic.  Simply
swapping in a more random PRNG doesn't necessarily come without
repercussions.  OpenBSD developers may be waiting for real-world
evidence or independent research indicating that the new PRNG causes a
minimum of compatibility problems, is cryptographically better than
the old one, and has suitable performance characteristics.

Just my unsolicited take on the situation...

--david

On Feb 10, 2008 1:41 PM,  [EMAIL PROTECTED] wrote:
 I would like to get the point of the developers related to the PRNG issue
 wich was discovered last year.

 Back then OpenBSD developers said OpenBSD is not affected but now I read a
 Slashdot-Article wich links to informations wich say the total opposite.

 http://it.slashdot.org/it/08/02/10/0136236.shtml
 leads to:
 http://readlist.com/lists/securityfocus.com/bugtraq/4/22004.html

 So could somebody finaly tell me what's the status about it?
 And please no oBSD rocks or OpenBSD sucks or We're l33t and
 unbreakable ubercoders talks. I think the informations provided are
 pretty omg and bad PR too :-/

 OpenBSD's coordinator stated, in an email, that OpenBSD is completely
 uninterested in the problem and that the problem is completely irrelevant
 in the real world.

 So I would be happy about a technical explantation why so many (even BSD
 projects) think it's a problem but OpenBSD does not.

 Another omg comment:


 Interestingly enough, OpenBSD uses a flavor of this PRNG for
 another field, this time the IP fragmentation ID, part of the
 OpenBSD kernel network stack. The analysis carries out quite
 similarly to show that OpenBSD's IP ID is predictable as well,
 which gives way to O/S fingerprinting, idle-scanning, host alias
 detection, traffic analysis, and in some cases, even to TCP blind
 data injection.

 That doesn't sound like Theory but like a PoC wich lays arround
 somewhere

 Sebastian

 p.s.
 I hate registrations (even if I may have used fake data) so:
 http://www.trusteer.com/docs/DNS_Poisoning_paper.pdf



Serial port (RS232) on USB port

2008-02-10 Thread Xavier Milliès-Lacroix
Hello,

I want add one or several serial / rs232 connectors on a OpenBSD box
(Soekris or standard PC) - without adding a PCI card - just converter.
I search compatibles products. When we buy product we don't know the chip.

Do you have good experiences ?


I have an converter, here an excerpt dmesg and usbdevs :


uftdi0 at uhub0 port 2
uftdi0: FTDI FT232R USB UART, rev 2.00/6.00, addr 3
ucom0 at uftdi0 portno 1

# usbdevs -dv
Controller /dev/usb0:
addr 1: full speed, self powered, config 1, UHCI root hub(0x),
Intel(0x8086), rev 1.00
  uhub0
 port 1 addr 2: low speed, power 100 mA, config 1, NetScroll(0x0035),
Genius(0x0458), rev 1.10
   uhidev0
 port 2 addr 3: full speed, power 90 mA, config 1, FT232R USB UART(0x6001),
FTDI(0x0403), rev 6.00
   uftdi0
-
 I think tJhe FT232R USB UART is the /dev/ttyU0 device.
But I can't talk witj it (in or out).

# stty -f /dev/ttyU0
ispeed 0 baud; ospeed 9600 baud;
lflags: echoe echoke echoctl
cflags: cs8 -parenb

Any ideas ?
On another box I was using tip for receiving caracters.

Xavier.



Re: Where is NAN Defined?

2008-02-10 Thread Woodchuck
On Sun, 10 Feb 2008, Jim Razmus wrote:

 I'm told that math.h should do this for me.  Moreover, I think NAN is a
 machine dependent value.

See  /usr/include/i386/ieee.h  for some hints.

 Adding the line you mention would break on VAX (assuming I understand
 this correctly).  Although I don't think anyone would run this program
 on a VAX, if it's in the ports tree there's the possibility.

Probably.  Vaxes didn't use IEEE floating point.

 Worst case, I could add those defines though.

I'd do some more research.  Examine the source code for isnan()

This is the i386 version

#include sys/types.h
#include machine/ieee.h
#include math.h

int
isnan(d)
double d;
{
struct ieee_double *p = (struct ieee_double *)d;

return (p-dbl_exp == DBL_EXP_INFNAN 
(p-dbl_frach != 0 || p-dbl_fracl != 0));
}

We notice the || in the comparison.  There is more than one NaN,
in other words.  DBL_EXP_INFNAN is defined in ieee.h

So there is no unique NaN.

Dave
-- 
   The president of the United States is the commander-in-chief of
   the armed forces.  He is not the commander-in-chief of the
   government, nor is he the commander-in-chief of the country.



Re: sd0: not queuqued error 5

2008-02-10 Thread Beavis
is there any way to get around this? with -current? or is the same
deal? I'm currently checking out dell for some firmware update. I'll
inform the list as soon as i've applied the updates and the issue is
fixed.

-b

On Feb 10, 2008 3:02 PM, Michael [EMAIL PROTECTED] wrote:
 Hi,

 Beavis schrieb:
  Is there anyone here that have the same problem with a dell 1950 box,

 No, but with an PE 2950...


 Michael



 # dmesg
 OpenBSD 4.2-current (GENERIC.MP) #0: Sat Jan 26 14:05:52 CET 2008
 [EMAIL PROTECTED]:/usr/src/sys/arch/i386/compile/GENERIC.MP
 cpu0: Intel(R) Xeon(R) CPU 5130 @ 2.00GHz (GenuineIntel 686-class) 2 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,VMX,TM2,CX16,xTPR
 real mem  = 3488874496 (3327MB)
 avail mem = 3385110528 (3228MB)
 mainbus0 at root
 bios0 at mainbus0: AT/286+ BIOS, date 08/10/07, BIOS32 rev. 0 @ 0xffe90,
 SMBIOS rev. 2.4 @ 0xcffbc000 (62 entries)
 bios0: vendor Dell Inc. version 1.5.1 date 08/10/2007
 bios0: Dell Inc. PowerEdge 2950
 acpi0 at bios0: rev 2
 acpi0: tables DSDT FACP APIC SPCR HPET MCFG
 acpi0: wakeup devices PCI0(S5)
 acpitimer0 at acpi0: 3579545 Hz, 24 bits
 acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
 cpu0 at mainbus0: apid 0 (boot processor)
 cpu0: apic clock running at 332 MHz
 cpu1 at mainbus0: apid 1 (application processor)
 cpu1: Intel(R) Xeon(R) CPU 5130 @ 2.00GHz (GenuineIntel 686-class) 2 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,VMX,TM2,CX16,xTPR
 ioapic0 at mainbus0: apid 2 pa 0xfec0, version 20, 24 pins
 ioapic0: misconfigured as apic 0, remapped to apid 2
 ioapic1 at mainbus0: apid 3 pa 0xfec81000, version 20, 24 pins
 ioapic1: misconfigured as apic 0, remapped to apid 3
 acpihpet0 at acpi0: 14318179 Hz
 acpiprt0 at acpi0: bus 0 (PCI0)
 acpiprt1 at acpi0: bus 6 (PEX2)
 acpiprt2 at acpi0: bus 7 (UPST)
 acpiprt3 at acpi0: bus 8 (DWN1)
 acpiprt4 at acpi0: bus 10 (DWN2)
 acpiprt5 at acpi0: bus 1 (PEX3)
 acpiprt6 at acpi0: bus 2 (PE2P)
 acpiprt7 at acpi0: bus 12 (PEX4)
 acpiprt8 at acpi0: bus 14 (PEX6)
 acpiprt9 at acpi0: bus 4 (SBEX)
 acpiprt10 at acpi0: bus 16 (COMP)
 acpicpu0 at acpi0
 acpicpu1 at acpi0
 bios0: ROM list: 0xc/0x9000! 0xc9000/0x5200 0xec000/0x4000!
 ipmi at mainbus0 not configured
 pci0 at mainbus0 bus 0: configuration mode 1 (no bios)
 pchb0 at pci0 dev 0 function 0 Intel 5000X Host rev 0x12
 ppb0 at pci0 dev 2 function 0 Intel 5000 PCIE rev 0x12
 pci1 at ppb0 bus 6
 ppb1 at pci1 dev 0 function 0 Intel 6321ESB PCIE rev 0x01
 pci2 at ppb1 bus 7
 ppb2 at pci2 dev 0 function 0 Intel 6321ESB PCIE rev 0x01
 pci3 at ppb2 bus 8
 ppb3 at pci3 dev 0 function 0 ServerWorks PCIE-PCIX rev 0xc3
 pci4 at ppb3 bus 9
 bnx0 at pci4 dev 0 function 0 Broadcom BCM5708 rev 0x12: apic 2 int 17
 (irq 11)
 ppb4 at pci2 dev 1 function 0 Intel 6321ESB PCIE rev 0x01: apic 2 int
 17 (irq 0)
 pci5 at ppb4 bus 10
 ppb5 at pci1 dev 0 function 3 Intel 6321ESB PCIE-PCIX rev 0x01
 pci6 at ppb5 bus 11
 ppb6 at pci0 dev 3 function 0 Intel 5000 PCIE rev 0x12
 pci7 at ppb6 bus 1
 ppb7 at pci7 dev 0 function 0 Intel IOP333 PCIE-PCIX rev 0x00
 pci8 at ppb7 bus 2
 mfi0 at pci8 dev 14 function 0 Dell PERC 5 rev 0x00: apic 3 int 14 (irq 5)
 mfi0: logical drives 1, version 5.1.1-0040, 256MB RAM
 scsibus0 at mfi0: 1 targets
 sd0 at scsibus0 targ 0 lun 0: DELL, PERC 5/i, 1.03 SCSI3 0/direct fixed
 sd0: 139392MB, 17769 cyl, 255 head, 63 sec, 512 bytes/sec, 285474816 sec
 total
 ppb8 at pci7 dev 0 function 2 Intel IOP333 PCIE-PCIX rev 0x00
 pci9 at ppb8 bus 3
 ppb9 at pci0 dev 4 function 0 Intel 5000 PCIE rev 0x12: apic 2 int 18
 (irq 0)
 pci10 at ppb9 bus 12
 ppb10 at pci0 dev 5 function 0 Intel 5000 PCIE rev 0x12
 pci11 at ppb10 bus 13
 ppb11 at pci0 dev 6 function 0 Intel 5000 PCIE rev 0x12: apic 2 int 19
 (irq 0)
 pci12 at ppb11 bus 14
 ppb12 at pci0 dev 7 function 0 Intel 5000 PCIE rev 0x12
 pci13 at ppb12 bus 15
 pchb1 at pci0 dev 16 function 0 Intel 5000 Error Reporting rev 0x12
 pchb2 at pci0 dev 16 function 1 Intel 5000 Error Reporting rev 0x12
 pchb3 at pci0 dev 16 function 2 Intel 5000 Error Reporting rev 0x12
 pchb4 at pci0 dev 17 function 0 Intel 5000 Reserved rev 0x12
 pchb5 at pci0 dev 19 function 0 Intel 5000 Reserved rev 0x12
 pchb6 at pci0 dev 21 function 0 Intel 5000 FBD rev 0x12
 pchb7 at pci0 dev 22 function 0 Intel 5000 FBD rev 0x12
 ppb13 at pci0 dev 28 function 0 Intel 6321ESB PCIE rev 0x09
 pci14 at ppb13 bus 4
 ppb14 at pci14 dev 0 function 0 ServerWorks PCIE-PCIX rev 0xc3
 pci15 at ppb14 bus 5
 bnx1 at pci15 dev 0 function 0 Broadcom BCM5708 rev 0x12: apic 2 int
 16 (irq 11)
 uhci0 at pci0 dev 29 function 0 Intel 6321ESB USB rev 0x09: apic 2 int
 21 (irq 11)
 uhci1 at pci0 dev 29 function 1 Intel 6321ESB USB rev 0x09: apic 2 int
 20 (irq 10)
 uhci2 at pci0 dev 29 function 2 Intel 6321ESB USB rev 0x09: apic 2 int
 21 (irq 11)
 ehci0 at 

Re: sd0: not queuqued error 5

2008-02-10 Thread Marco Peereboom
This error has all the makings of a firmware issue. I never saw this  
when I tested the 1.0 firmware but have seen reports of this in the  
newer versions. Please do upgrade and share your results. If it still  
fails I'll consider trying to reboot the firmware and see what that  
does.


On Feb 10, 2008, at 3:44 PM, Beavis [EMAIL PROTECTED] wrote:


is there any way to get around this? with -current? or is the same
deal? I'm currently checking out dell for some firmware update. I'll
inform the list as soon as i've applied the updates and the issue is
fixed.

-b

On Feb 10, 2008 3:02 PM, Michael [EMAIL PROTECTED] wrote:

Hi,

Beavis schrieb:
Is there anyone here that have the same problem with a dell 1950  
box,


No, but with an PE 2950...


Michael



# dmesg
OpenBSD 4.2-current (GENERIC.MP) #0: Sat Jan 26 14:05:52 CET 2008
   [EMAIL PROTECTED]:/usr/src/sys/arch/i386/compile/GENERIC.MP
cpu0: Intel(R) Xeon(R) CPU 5130 @ 2.00GHz (GenuineIntel 686- 
class) 2 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,VMX,TM2,CX16,xTPR

real mem  = 3488874496 (3327MB)
avail mem = 3385110528 (3228MB)
mainbus0 at root
bios0 at mainbus0: AT/286+ BIOS, date 08/10/07, BIOS32 rev. 0 @  
0xffe90,

SMBIOS rev. 2.4 @ 0xcffbc000 (62 entries)
bios0: vendor Dell Inc. version 1.5.1 date 08/10/2007
bios0: Dell Inc. PowerEdge 2950
acpi0 at bios0: rev 2
acpi0: tables DSDT FACP APIC SPCR HPET MCFG
acpi0: wakeup devices PCI0(S5)
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: apic clock running at 332 MHz
cpu1 at mainbus0: apid 1 (application processor)
cpu1: Intel(R) Xeon(R) CPU 5130 @ 2.00GHz (GenuineIntel 686- 
class) 2 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,VMX,TM2,CX16,xTPR

ioapic0 at mainbus0: apid 2 pa 0xfec0, version 20, 24 pins
ioapic0: misconfigured as apic 0, remapped to apid 2
ioapic1 at mainbus0: apid 3 pa 0xfec81000, version 20, 24 pins
ioapic1: misconfigured as apic 0, remapped to apid 3
acpihpet0 at acpi0: 14318179 Hz
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus 6 (PEX2)
acpiprt2 at acpi0: bus 7 (UPST)
acpiprt3 at acpi0: bus 8 (DWN1)
acpiprt4 at acpi0: bus 10 (DWN2)
acpiprt5 at acpi0: bus 1 (PEX3)
acpiprt6 at acpi0: bus 2 (PE2P)
acpiprt7 at acpi0: bus 12 (PEX4)
acpiprt8 at acpi0: bus 14 (PEX6)
acpiprt9 at acpi0: bus 4 (SBEX)
acpiprt10 at acpi0: bus 16 (COMP)
acpicpu0 at acpi0
acpicpu1 at acpi0
bios0: ROM list: 0xc/0x9000! 0xc9000/0x5200 0xec000/0x4000!
ipmi at mainbus0 not configured
pci0 at mainbus0 bus 0: configuration mode 1 (no bios)
pchb0 at pci0 dev 0 function 0 Intel 5000X Host rev 0x12
ppb0 at pci0 dev 2 function 0 Intel 5000 PCIE rev 0x12
pci1 at ppb0 bus 6
ppb1 at pci1 dev 0 function 0 Intel 6321ESB PCIE rev 0x01
pci2 at ppb1 bus 7
ppb2 at pci2 dev 0 function 0 Intel 6321ESB PCIE rev 0x01
pci3 at ppb2 bus 8
ppb3 at pci3 dev 0 function 0 ServerWorks PCIE-PCIX rev 0xc3
pci4 at ppb3 bus 9
bnx0 at pci4 dev 0 function 0 Broadcom BCM5708 rev 0x12: apic 2  
int 17

(irq 11)
ppb4 at pci2 dev 1 function 0 Intel 6321ESB PCIE rev 0x01: apic 2  
int

17 (irq 0)
pci5 at ppb4 bus 10
ppb5 at pci1 dev 0 function 3 Intel 6321ESB PCIE-PCIX rev 0x01
pci6 at ppb5 bus 11
ppb6 at pci0 dev 3 function 0 Intel 5000 PCIE rev 0x12
pci7 at ppb6 bus 1
ppb7 at pci7 dev 0 function 0 Intel IOP333 PCIE-PCIX rev 0x00
pci8 at ppb7 bus 2
mfi0 at pci8 dev 14 function 0 Dell PERC 5 rev 0x00: apic 3 int  
14 (irq 5)

mfi0: logical drives 1, version 5.1.1-0040, 256MB RAM
scsibus0 at mfi0: 1 targets
sd0 at scsibus0 targ 0 lun 0: DELL, PERC 5/i, 1.03 SCSI3 0/direct  
fixed
sd0: 139392MB, 17769 cyl, 255 head, 63 sec, 512 bytes/sec,  
285474816 sec

total
ppb8 at pci7 dev 0 function 2 Intel IOP333 PCIE-PCIX rev 0x00
pci9 at ppb8 bus 3
ppb9 at pci0 dev 4 function 0 Intel 5000 PCIE rev 0x12: apic 2  
int 18

(irq 0)
pci10 at ppb9 bus 12
ppb10 at pci0 dev 5 function 0 Intel 5000 PCIE rev 0x12
pci11 at ppb10 bus 13
ppb11 at pci0 dev 6 function 0 Intel 5000 PCIE rev 0x12: apic 2  
int 19

(irq 0)
pci12 at ppb11 bus 14
ppb12 at pci0 dev 7 function 0 Intel 5000 PCIE rev 0x12
pci13 at ppb12 bus 15
pchb1 at pci0 dev 16 function 0 Intel 5000 Error Reporting rev 0x12
pchb2 at pci0 dev 16 function 1 Intel 5000 Error Reporting rev 0x12
pchb3 at pci0 dev 16 function 2 Intel 5000 Error Reporting rev 0x12
pchb4 at pci0 dev 17 function 0 Intel 5000 Reserved rev 0x12
pchb5 at pci0 dev 19 function 0 Intel 5000 Reserved rev 0x12
pchb6 at pci0 dev 21 function 0 Intel 5000 FBD rev 0x12
pchb7 at pci0 dev 22 function 0 Intel 5000 FBD rev 0x12
ppb13 at pci0 dev 28 function 0 Intel 6321ESB PCIE rev 0x09
pci14 at ppb13 bus 4
ppb14 at pci14 dev 0 function 0 ServerWorks PCIE-PCIX rev 0xc3
pci15 at ppb14 

Re: mipsel / Broadcom-based routers

2008-02-10 Thread Lucas Yamanishi

Stuart Henderson wrote:

On 2008/02/01 13:01, Lucas Yamanishi wrote:

Does anybody know of any active projects to port OpenBSD to 32-bit
little endian MIPS architecture?


Rainer Giedat talked about his port (work-in-progress) at OpenCon.




Thanks.  I ran his name through Google and I'm getting a lot more now. 
I had no idea the ISA was so different.




Re: prng and a fix wich should (not?) happen..?

2008-02-10 Thread Peter N. M. Hansteen
David Higgs [EMAIL PROTECTED] writes:

 At any rate, OpenBSD developers likely believe (or know from firsthand
 experience) that there are already satisfactory measures that can be
 taken by concerned admins to secure DNS or other traffic.  

My very superficial reading of the paper left me with the impression
that actually capturing enough data to successfully inject the desired
bad (or 'crafted') data would take on the order of several thousand
DNS queries *and* the successful calculation of the data to be
inserted with a matching checksum during something like a 90 second
window of opportunity.

Feel free to correct my impression, but if it's even approximately
right, there *are* better ways to deal with kiddies who try this
particular attack, several well known with the somewhat desirable
property that they are actually good for a number of other things too.

-- 
Peter N. M. Hansteen, member of the first RFC 1149 implementation team
http://bsdly.blogspot.com/ http://www.bsdly.net/ http://www.nuug.no/
Remember to set the evil bit on all malicious network traffic
delilah spamd[29949]: 85.152.224.147: disconnected after 42673 seconds.



Re: Where is NAN Defined?

2008-02-10 Thread Marc Espie
There's some newer stuff we don't have yet. Partly because of vax, since
it's the only non-ieee platform we support.

NAN is one of these issues, and not the only one.

For now, just cater around the problem by reading carefully the code,
and figuring out what you can put instead of NAN.



Re: sd0: not queuqued error 5

2008-02-10 Thread Vijay Sankar
On February 10, 2008 04:19:52 pm Marco Peereboom wrote:
 This error has all the makings of a firmware issue. I never saw this
 when I tested the 1.0 firmware but have seen reports of this in the
 newer versions. Please do upgrade and share your results. If it still
 fails I'll consider trying to reboot the firmware and see what that
 does.


Thanks very much.

We had this error on two Dell 2950's recently. The error was observed roughly 
12 hours apart. Both are mail servers running OpenBSD 4.2 and had been up for 
close to 60 days when we saw the error (sd0 not queued error 5). Also, while 
the error was happening we were getting a lot of NDR's because one user had 
set up forwarding to the wrong address before taking off on his vacation. I 
don't know whether that contributed to this error in some way. 

Going through all the messages over the past two years on this topic, to me it 
looks like the problem occurs only on heavily loaded servers that have been 
up for a few months or on systems that have a lot of writes and the disks are 
mirrored. Is this a valid observation? Hopefully I am not jumping to 
conclusions here. 

Here is the dmesg after we did a power reset. We have not seen any problems 
for the past 15 days. 

Since we have not had any other problems, we were going to leave it running 
for a month or so, update the firmware on the backup server and see if the 
problem reappears. I will update the list if we have the problem again.

If there is any additional information that would be useful or if there is 
anything else I can do on the backup server, please let me know. 

SERVER 1 (main server)

OpenBSD 4.2 (GENERIC) #375: Tue Aug 28 10:38:44 MDT 2007
[EMAIL PROTECTED]:/usr/src/sys/arch/i386/compile/GENERIC
cpu0: Intel(R) Xeon(R) CPU 5110 @ 1.60GHz (GenuineIntel 686-class) 1.60 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,VMX,TM2,CX16,xTPR
real mem  = 1072955392 (1023MB)
avail mem = 1029857280 (982MB)
mainbus0 at root
bios0 at mainbus0: AT/286+ BIOS, date 08/10/07, BIOS32 rev. 0 @ 0xffe90, 
SMBIOS rev. 2.4 @ 0x3ffbc000 (62 entries)
bios0: vendor Dell Inc. version 1.5.1 date 08/10/2007
bios0: Dell Inc. PowerEdge 2950
pcibios0 at bios0: rev 2.1 @ 0xf/0x1
pcibios0: PCI IRQ Routing Table rev 1.0 @ 0xfaa30/384 (22 entries)
pcibios0: PCI Interrupt Router at 000:31:0 (Intel 6321ESB LPC rev 0x00)
pcibios0: PCI bus #16 is the last bus
bios0: ROM list: 0xc/0x9000! 0xc9000/0x5200 0xce800/0x1000! 
0xec000/0x4000!
acpi0 at mainbus0: rev 2
acpi0: tables DSDT FACP APIC SPCR HPET MCFG
acpitimer at acpi0 not configured
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus 6 (PEX2)
acpiprt2 at acpi0: bus 7 (UPST)
acpiprt3 at acpi0: bus 8 (DWN1)
acpiprt4 at acpi0: bus 10 (DWN2)
acpiprt5 at acpi0: bus -1 (PE2X)
acpiprt6 at acpi0: bus 1 (PEX3)
acpiprt7 at acpi0: bus 2 (PE2P)
acpiprt8 at acpi0: bus 12 (PEX4)
acpiprt9 at acpi0: bus -1 (PE2P)
acpiprt10 at acpi0: bus -1 (PEX5)
acpiprt11 at acpi0: bus 0 (PE2P)
acpiprt12 at acpi0: bus 14 (PEX6)
acpiprt13 at acpi0: bus -1 (PXHA)
acpiprt14 at acpi0: bus -1 (PXHB)
acpiprt15 at acpi0: bus 4 (SBEX)
acpiprt16 at acpi0: bus 16 (COMP)
acpicpu at acpi0 not configured
acpicpu at acpi0 not configured
acpicpu at acpi0 not configured
acpicpu at acpi0 not configured
acpicpu at acpi0 not configured
acpicpu at acpi0 not configured
acpicpu at acpi0 not configured
acpicpu at acpi0 not configured
ipmi0 at mainbus0: version 2.0 interface KCS iobase 0xca8/8 spacing 4
cpu0 at mainbus0
pci0 at mainbus0 bus 0: configuration mode 1 (no bios)
pchb0 at pci0 dev 0 function 0 Intel 5000X Host rev 0x12
ppb0 at pci0 dev 2 function 0 Intel 5000 PCIE rev 0x12
pci1 at ppb0 bus 6
ppb1 at pci1 dev 0 function 0 Intel 6321ESB PCIE rev 0x01
pci2 at ppb1 bus 7
ppb2 at pci2 dev 0 function 0 Intel 6321ESB PCIE rev 0x01
pci3 at ppb2 bus 8
ppb3 at pci3 dev 0 function 0 ServerWorks PCIE-PCIX rev 0xc3
pci4 at ppb3 bus 9
bnx0 at pci4 dev 0 function 0 Broadcom BCM5708 rev 0x12: irq 10
ppb4 at pci2 dev 1 function 0 Intel 6321ESB PCIE rev 0x01
pci5 at ppb4 bus 10
ppb5 at pci1 dev 0 function 3 Intel 6321ESB PCIE-PCIX rev 0x01
pci6 at ppb5 bus 11
ppb6 at pci0 dev 3 function 0 Intel 5000 PCIE rev 0x12
pci7 at ppb6 bus 1
ppb7 at pci7 dev 0 function 0 Intel IOP333 PCIE-PCIX rev 0x00
pci8 at ppb7 bus 2
mfi0 at pci8 dev 14 function 0 Dell PERC 5 rev 0x00: irq 11
mfi0: logical drives 1, version 5.1.1-0040, 256MB RAM
scsibus0 at mfi0: 1 targets
sd0 at scsibus0 targ 0 lun 0: DELL, PERC 5/i, 1.03 SCSI3 0/direct fixed
sd0: 139392MB, 17769 cyl, 255 head, 63 sec, 512 bytes/sec, 285474816 sec total
ppb8 at pci7 dev 0 function 2 Intel IOP333 PCIE-PCIX rev 0x00
pci9 at ppb8 bus 3
ppb9 at pci0 dev 4 function 0 Intel 5000 PCIE rev 0x12
pci10 at ppb9 bus 12
ppb10 at pci0 dev 5 function 0 Intel 5000 PCIE rev 0x12
pci11 at ppb10 bus 13
ppb11 at pci0 dev 6 function 0 Intel 5000 PCIE rev 0x12
pci12 at ppb11 bus 14
ppb12 

Re: sd0: not queuqued error 5

2008-02-10 Thread Marco Peereboom
I think it is some sort of race and we end up hanging the firmware.
Like I said I have never seen it myself but that is how it feels like.
Also tracing the code and that particular error there is not much else
that could be wrong.  Let me think about this for a few days.

On Sun, Feb 10, 2008 at 05:37:21PM -0600, Vijay Sankar wrote:
 On February 10, 2008 04:19:52 pm Marco Peereboom wrote:
  This error has all the makings of a firmware issue. I never saw this
  when I tested the 1.0 firmware but have seen reports of this in the
  newer versions. Please do upgrade and share your results. If it still
  fails I'll consider trying to reboot the firmware and see what that
  does.
 
 
 Thanks very much.
 
 We had this error on two Dell 2950's recently. The error was observed roughly 
 12 hours apart. Both are mail servers running OpenBSD 4.2 and had been up for 
 close to 60 days when we saw the error (sd0 not queued error 5). Also, while 
 the error was happening we were getting a lot of NDR's because one user had 
 set up forwarding to the wrong address before taking off on his vacation. I 
 don't know whether that contributed to this error in some way. 
 
 Going through all the messages over the past two years on this topic, to me 
 it 
 looks like the problem occurs only on heavily loaded servers that have been 
 up for a few months or on systems that have a lot of writes and the disks are 
 mirrored. Is this a valid observation? Hopefully I am not jumping to 
 conclusions here. 
 
 Here is the dmesg after we did a power reset. We have not seen any problems 
 for the past 15 days. 
 
 Since we have not had any other problems, we were going to leave it running 
 for a month or so, update the firmware on the backup server and see if the 
 problem reappears. I will update the list if we have the problem again.
 
 If there is any additional information that would be useful or if there is 
 anything else I can do on the backup server, please let me know. 
 
 SERVER 1 (main server)
 
 OpenBSD 4.2 (GENERIC) #375: Tue Aug 28 10:38:44 MDT 2007
 [EMAIL PROTECTED]:/usr/src/sys/arch/i386/compile/GENERIC
 cpu0: Intel(R) Xeon(R) CPU 5110 @ 1.60GHz (GenuineIntel 686-class) 1.60 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,VMX,TM2,CX16,xTPR
 real mem  = 1072955392 (1023MB)
 avail mem = 1029857280 (982MB)
 mainbus0 at root
 bios0 at mainbus0: AT/286+ BIOS, date 08/10/07, BIOS32 rev. 0 @ 0xffe90, 
 SMBIOS rev. 2.4 @ 0x3ffbc000 (62 entries)
 bios0: vendor Dell Inc. version 1.5.1 date 08/10/2007
 bios0: Dell Inc. PowerEdge 2950
 pcibios0 at bios0: rev 2.1 @ 0xf/0x1
 pcibios0: PCI IRQ Routing Table rev 1.0 @ 0xfaa30/384 (22 entries)
 pcibios0: PCI Interrupt Router at 000:31:0 (Intel 6321ESB LPC rev 0x00)
 pcibios0: PCI bus #16 is the last bus
 bios0: ROM list: 0xc/0x9000! 0xc9000/0x5200 0xce800/0x1000! 
 0xec000/0x4000!
 acpi0 at mainbus0: rev 2
 acpi0: tables DSDT FACP APIC SPCR HPET MCFG
 acpitimer at acpi0 not configured
 acpiprt0 at acpi0: bus 0 (PCI0)
 acpiprt1 at acpi0: bus 6 (PEX2)
 acpiprt2 at acpi0: bus 7 (UPST)
 acpiprt3 at acpi0: bus 8 (DWN1)
 acpiprt4 at acpi0: bus 10 (DWN2)
 acpiprt5 at acpi0: bus -1 (PE2X)
 acpiprt6 at acpi0: bus 1 (PEX3)
 acpiprt7 at acpi0: bus 2 (PE2P)
 acpiprt8 at acpi0: bus 12 (PEX4)
 acpiprt9 at acpi0: bus -1 (PE2P)
 acpiprt10 at acpi0: bus -1 (PEX5)
 acpiprt11 at acpi0: bus 0 (PE2P)
 acpiprt12 at acpi0: bus 14 (PEX6)
 acpiprt13 at acpi0: bus -1 (PXHA)
 acpiprt14 at acpi0: bus -1 (PXHB)
 acpiprt15 at acpi0: bus 4 (SBEX)
 acpiprt16 at acpi0: bus 16 (COMP)
 acpicpu at acpi0 not configured
 acpicpu at acpi0 not configured
 acpicpu at acpi0 not configured
 acpicpu at acpi0 not configured
 acpicpu at acpi0 not configured
 acpicpu at acpi0 not configured
 acpicpu at acpi0 not configured
 acpicpu at acpi0 not configured
 ipmi0 at mainbus0: version 2.0 interface KCS iobase 0xca8/8 spacing 4
 cpu0 at mainbus0
 pci0 at mainbus0 bus 0: configuration mode 1 (no bios)
 pchb0 at pci0 dev 0 function 0 Intel 5000X Host rev 0x12
 ppb0 at pci0 dev 2 function 0 Intel 5000 PCIE rev 0x12
 pci1 at ppb0 bus 6
 ppb1 at pci1 dev 0 function 0 Intel 6321ESB PCIE rev 0x01
 pci2 at ppb1 bus 7
 ppb2 at pci2 dev 0 function 0 Intel 6321ESB PCIE rev 0x01
 pci3 at ppb2 bus 8
 ppb3 at pci3 dev 0 function 0 ServerWorks PCIE-PCIX rev 0xc3
 pci4 at ppb3 bus 9
 bnx0 at pci4 dev 0 function 0 Broadcom BCM5708 rev 0x12: irq 10
 ppb4 at pci2 dev 1 function 0 Intel 6321ESB PCIE rev 0x01
 pci5 at ppb4 bus 10
 ppb5 at pci1 dev 0 function 3 Intel 6321ESB PCIE-PCIX rev 0x01
 pci6 at ppb5 bus 11
 ppb6 at pci0 dev 3 function 0 Intel 5000 PCIE rev 0x12
 pci7 at ppb6 bus 1
 ppb7 at pci7 dev 0 function 0 Intel IOP333 PCIE-PCIX rev 0x00
 pci8 at ppb7 bus 2
 mfi0 at pci8 dev 14 function 0 Dell PERC 5 rev 0x00: irq 11
 mfi0: logical drives 1, version 5.1.1-0040, 256MB RAM
 scsibus0 at mfi0: 1 targets
 sd0 at scsibus0 targ 0 lun 

Re:

2008-02-10 Thread Steve Shockley

Unix Fan wrote:

Apologies for not stating the obvious.. because everyone watches
DVD's on m68k.. right?


Nick Holland does, I think.



Re: running mail server at home

2008-02-10 Thread ropers
On 07/02/2008, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
 FYI, masquerading is a LINUX shit but openbsd rules with its PF power.

FYI, masquerading is a generic term and a synonym for NATing, and
not an invitation to diss Linux.



Re: sd0: not queuqued error 5

2008-02-10 Thread Michael
Hi,

Marco Peereboom schrieb:
 I think it is some sort of race and we end up hanging the firmware.
 Like I said I have never seen it myself but that is how it feels like.
 Also tracing the code and that particular error there is not much else
 that could be wrong.  Let me think about this for a few days.

Thanks a lot, I was able to force that error by just deleting (rm -rP)
~50 GB of files (~300 MB / each) which I created before ... the system
hung before all files could be deleted.


Michael



Re: Server room temperature sensors

2008-02-10 Thread Bill
On Wed, 6 Feb 2008 23:07:01 -0800
Joe [EMAIL PROTECTED] spake:

 Can anyone recommend a server room temperature sensor that I can use  
 with openbsd?
 
 I want to monitor temperature and humidity.
 
 I hope to graph the data from the sensor.
 
 The sensor can be connected to my openbsd via usb, serial, or even  
 network.
 

I've used AVTECH in a few of my rooms.  I think the cheapest is around
$240 maybe... bigger models can handle everything from smoke, to noise,
etc...

Read them via SNMP tied to nagios.  Works good, the basic model comes
with a temp sensor in the unit and a 25' (I believe) lead to a remote
sensor.  

I also have some NetBotz, and while expensive are pretty cool -
airflow, noise, temp, humidity, door sensor, camera, etc...  Nice if
your not spending out of pocket eh...