Re: mbuf KPI

2009-08-01 Thread Maxim Bourmistrov

Actually, I know what I'm asking for.
I want to manipulate and inject packets from kernel space. Not via bpf  
and userland.

I want to load up an LKM and don't patch all over the src.

Last I checked, OpenBSD lacked what I needed(OSX does not), so this is  
why I'm asking.

I'm asking a clear interface to work with.

> But I suspect you don't even know what you're asking for.
Don't ever talk to me like that, before you done your research.

//maxim

On 31 jul 2009, at 23.10, Chris Cappuccio wrote:


So, what are you asking for?

For OpenBSD to adopt the Mac OS X mbuf interface (or "KPI")?

What is the deficiency in the OpenBSD mbuf interface that you see?

What function do you need?  For what application?

Most of the Mac OS X "mbuf KPI" is the same as the OpenBSD mbuf  
interface, just with different function names.  In some cases there  
are new functions that OpenBSD doesn't have, and handles  
differently.  But I suspect you don't even know what you're asking  
for.


Maxim Bourmistrov [maxim.bourmist...@unixconn.com] wrote:

Hello,
Is  something "nice to have"/on TODO-list?
If not, what are the reasons for not having it?

//maxim


--
Trying to bring taste and skill into a branch of artistic endeavor  
which had sunk to the lowest possible depths.




Re: mbuf KPI

2009-08-01 Thread Bret S. Lambert
On Sat, Aug 01, 2009 at 10:23:55AM +0200, Maxim Bourmistrov wrote:
> Actually, I know what I'm asking for.
> I want to manipulate and inject packets from kernel space. Not via
> bpf and userland.

Congrats; you can do that already.

> I want to load up an LKM and don't patch all over the src.

Then you can include a set of functions/defines/whatever that provides
those interfaces for you in your LKM

#if defined(__OpenBSD__)

#endif

To answer a question you asked in an off-list email: yes, there's been
some bitching between devs about how bad a set of functions exist for
mbuf manipulation. But there's been nothing concrete, AFAIK, so the
interface you're talking about hasn't really been considered for inclusion,
nor do we really know the direction that any future mbuf API should go.

So, long answer short: it's not included because it's not included.

> 
> Last I checked, OpenBSD lacked what I needed(OSX does not), so this
> is why I'm asking.
> I'm asking a clear interface to work with.
> 
> > But I suspect you don't even know what you're asking for.
> Don't ever talk to me like that, before you done your research.
> 
> //maxim
> 
> On 31 jul 2009, at 23.10, Chris Cappuccio wrote:
> 
> >So, what are you asking for?
> >
> >For OpenBSD to adopt the Mac OS X mbuf interface (or "KPI")?
> >
> >What is the deficiency in the OpenBSD mbuf interface that you see?
> >
> >What function do you need?  For what application?
> >
> >Most of the Mac OS X "mbuf KPI" is the same as the OpenBSD mbuf
> >interface, just with different function names.  In some cases
> >there are new functions that OpenBSD doesn't have, and handles
> >differently.  But I suspect you don't even know what you're asking
> >for.
> >
> >Maxim Bourmistrov [maxim.bourmist...@unixconn.com] wrote:
> >>Hello,
> >>Is  something "nice to have"/on TODO-list?
> >>If not, what are the reasons for not having it?
> >>
> >>//maxim
> >
> >-- 
> >Trying to bring taste and skill into a branch of artistic endeavor
> >which had sunk to the lowest possible depths.



Re: mbuf KPI

2009-08-01 Thread Maxim Bourmistrov

Thank you for the answer, Bret.

Best regards

Maxim Bourmistrov
mailto: maxim.bourmist...@unixconn.com
tfn.: +46735461332




On 1 aug 2009, at 10.35, Bret S. Lambert wrote:


On Sat, Aug 01, 2009 at 10:23:55AM +0200, Maxim Bourmistrov wrote:

Actually, I know what I'm asking for.
I want to manipulate and inject packets from kernel space. Not via
bpf and userland.


Congrats; you can do that already.


I want to load up an LKM and don't patch all over the src.


Then you can include a set of functions/defines/whatever that provides
those interfaces for you in your LKM

#if defined(__OpenBSD__)

#endif

To answer a question you asked in an off-list email: yes, there's been
some bitching between devs about how bad a set of functions exist for
mbuf manipulation. But there's been nothing concrete, AFAIK, so the
interface you're talking about hasn't really been considered for  
inclusion,
nor do we really know the direction that any future mbuf API should  
go.


So, long answer short: it's not included because it's not included.



Last I checked, OpenBSD lacked what I needed(OSX does not), so this
is why I'm asking.
I'm asking a clear interface to work with.


But I suspect you don't even know what you're asking for.

Don't ever talk to me like that, before you done your research.

//maxim

On 31 jul 2009, at 23.10, Chris Cappuccio wrote:


So, what are you asking for?

For OpenBSD to adopt the Mac OS X mbuf interface (or "KPI")?

What is the deficiency in the OpenBSD mbuf interface that you see?

What function do you need?  For what application?

Most of the Mac OS X "mbuf KPI" is the same as the OpenBSD mbuf
interface, just with different function names.  In some cases
there are new functions that OpenBSD doesn't have, and handles
differently.  But I suspect you don't even know what you're asking
for.

Maxim Bourmistrov [maxim.bourmist...@unixconn.com] wrote:

Hello,
Is  something "nice to have"/on TODO-list?
If not, what are the reasons for not having it?

//maxim


--
Trying to bring taste and skill into a branch of artistic endeavor
which had sunk to the lowest possible depths.




Re: Cyrillic fonts in X Window.

2009-08-01 Thread Alexander Polakov
2009/8/1, 4625 <4625...@gmail.com>:
>> Probably bitmap fonts are disabled. Take a look at /etc/fonts/conf.d.
>> If there is no 70-yes-bitmaps.conf then link or copy it from
>> /etc/fonts/conf.avail and use fc-cache -fv
>
> cd: /etc/fonts/conf.avail: No such file or directory

% tar tvzf xetc46.tgz|grep conf.avail
drwxr-xr-x root/wheel0 2009-07-29 21:45 ./etc/fonts/conf.avail

Something is wrong with your install.



Re: PF with BGP & CARP for a router

2009-08-01 Thread Jussi Peltola
Some quick observations (disclaimer: I only just got my morning coffee,
so there's too much blood in my caffeine)

On Fri, Jul 31, 2009 at 08:18:28PM +0200, Laurent CARON wrote:
> Here is my pf config:
> LO="lo"
> EXTIF001="bge0"
> EXTIF002="em0"
> INTIF="em1"
> PFSYNCIF="em2"
>
> set skip on {$LO, $PFSYNCIF}

A macro for lo is a bit redundant; but that's a matter of taste.

> PFSYNCALLOW="{172.16.1.1, 172.16.1.2}"
>
> CARPALLOW="{Router internal IPs}"
>
> SSHALLOW="{Trusted admin IPs}"
>
> EBGPALLOW="ISP BGP Peer"
>
> IBGPALLOW="{Internal BGP sessions}"
>
> ROUTERSINTIFACES="{Internal IPs of routers (including carp)}"
>
> DECLAREDHOSTS="{Active hosts on the internal interface}"

Use tables to avoid your macros expanding into huge amounts of similar
rules. That way you can even put the IP lists in files if they grow too large.

> BAD_UDP_PORTS="{epmap, netbios-ns, netbios-dgm, netbios-ssn, microsoft-ds}"
> BAD_TCP_PORTS="{telnet, finger, epmap, netbios-ns, netbios-dgm,  
> netbios-ssn, microsoft-ds}"

"Default pass" is a bad idea; if you understand this and just want to
silence crap from logs, this is good. A default block would be even
better but might not be possible, that's understandable.

> ROUTER_ALLOW_OUT="{www, ftp, telnet, ssh, domain, https, imaps, smtp,  
> smtps}"
>
>
> SYNSTATE="flags S/SAFR synproxy state"
> TCPSTATE="flags S/SAFR modulate state"
> UDPSTATE="keep state"
>
> ### Stateful Options ###
> EXTIFSTO="(max 9000, source-track rule, max-src-conn   2000,  
> max-src-nodes 254)"
> INTIFSTO="(max 250,  source-track rule, max-src-conn   100,  
> max-src-nodes 254, max-src-conn-rate 75/20)"
> POSTFIXSTO="(max 100,  source-track rule, max-src-states 5,  
> max-src-nodes 30,  max-src-conn-rate 10/300, overload  flush  
> global, tcp.established 45)"
> SPAMDSTO="(max 500,  source-track rule, max-src-conn   10, max-src-nodes 
> 300, max-src-conn-rate 2/300,  tcp.established 10)"
> SSHSTO="(max 10,   source-track rule, max-src-states 10,   max-src-nodes  
> 5,   max-src-conn-rate 20/60, overload  flush global)"
> PORTSCANSTO="(max 60,  source-track rule, max-src-conn 1, max-src-nodes  
> 60,  max-src-conn-rate 1/60, overload  flush global)"
>
> ### Tables ###
> table  persist file "/etc/blacklist"
> table  persist file "/etc/slowqueue"
> table  persist
>
> ### Options ###
> set debug urgent
> set require-order yes
> set block-policy drop
> set loginterface $EXTIF001
> set fingerprints "/etc/pf.os"
> set ruleset-optimization none
>
>
> ### Timeout Options ###
> set optimization aggressive

Are you sure you need this?

> set timeout { frag 10, tcp.established 3600 }

this can annoyingly kill live ssh sessions if your coffee break takes
too long; but it can also be necessary.

> set timeout { tcp.first 30, tcp.closing 10, tcp.closed 10, tcp.finwait 10 }
> set timeout { udp.first 30, udp.single 30, udp.multiple 30 }
> set timeout { other.first 30, other.single 30, other.multiple 30 }
> set timeout { adaptive.start 5000, adaptive.end 1 }

Again, if you've thought about these and need them they're fine, if
you're just twisting knobs because they're there you might want to
re-think.

> ### Queueing ###
> altq on $EXTIF001 bandwidth 3Kb hfsc queue { ack, voip, dns, ssh,  
> web, mail, bulk, spamd }
> queue ack   bandwidth 60% priority 9 qlimit 500 hfsc  
> (realtime 40%)
> queue voip  bandwidth 10% priority 8 qlimit 500 hfsc  
> (realtime 1%)
> queue dns   bandwidth  6% priority 7 qlimit 500 hfsc  
> (realtime  5%)
> queue ssh   bandwidth  9% priority 6 qlimit 500 hfsc  
> (realtime  5%) {ssh_login, ssh_bulk}
> queue ssh_login bandwidth 90% priority 6 qlimit 500 hfsc
> queue ssh_bulk  bandwidth 10% priority 5 qlimit 500 hfsc
> queue web   bandwidth 10% priority 5 qlimit 500 hfsc  
> (realtime 10%)
> queue mail  bandwidth  3% priority 4 qlimit 500 hfsc  
> (realtime  5%)
> queue bulk  bandwidth  1% priority 3 qlimit 500 hfsc  
> (realtime  5% default)
> queue spamd bandwidth  1% priority 1 qlimit 500 hfsc  
> (upperlimit 3Kb)
>
>
> antispoof log quick for { lo0 $EXTIF001 $INTIF }
>
>
> blocklog on $EXTIF001
>
>
> pass quick on $PFSYNCIF inet proto pfsync   from $PFSYNCALLOW keep state
> pass quick on $INTIFinet proto carp from $CARPALLOW keep state

IIRC you should use keep state (no-sync) here since these aren't very
meaningful on the other fw

>
> block in quick on $EXTIF001 inet proto tcp from any to port $BAD_TCP_PORTS
> block in quick on $EXTIF001 inet proto udp from any to port $BAD_UDP_PORTS
>
>
> blockin log quick   from no-route to any
> blockin log quick on $EXTIF001 from  to any  
> probability 97%
> blockin quick on $EXTIF001 from  to any
> blockin quick on $EXTIF001 inet proto tcp from  
>  to any port ssh
> blockin quick on $EXTIF001 from any to 255.255.255.255
> block return in quick o

Re: random crashes on a firewall with OpenBSD 4.5-stable

2009-08-01 Thread Comete

Hello,

as suggested, i finally changed the RAID controler (Compaq Smart Array 
431) with the same device and the firewall still crashes with the same 
error.

So if it is not the hardware could it be the software ?
How can i submit a bug report and where ? What informations do you need ?
what can i do or type when i get the error with the debug prompt ?

It seems that the firewall now crashes 3 times a week and it's very 
annoying.


Thanks for the help :)


Michal a icrit :

Other servers?? I don't mean PDU, I mean PSU...the power supply in the
server. If your shearing a power supply across 2 servers I would be shocked
:)

-Original Message-
From: Comete [mailto:com...@daknet.org] 
Sent: 26 June 2009 13:48

To: Michal
Subject: Re: random crashes on a firewall with OpenBSD 4.5-stable

No problem with the PSU and voltage limits. The PSU isn't used at its 
full capacity and the other servers plugged on it work well.


Could it be a bad network interface ?

Michal a icrit :

Just stabbing the dark here, test your Voltage Rails on your PSU. Check

they

are within limits. I find unexplained crash's can be traced back to PSU's
quite often

-Original Message-
From: owner-m...@openbsd.org [mailto:owner-m...@openbsd.org] On Behalf Of
Comhte
Sent: 26 June 2009 12:22
To: Misc OpenBSD
Cc: Daniel Gracia Garallar
Subject: Re: random crashes on a firewall with OpenBSD 4.5-stable

Well i have tested the RAM with memtest, no error.

maybe another idea ?

Thanks

Daniel Gracia Garallar a C)crit :
Oh and maybe bad RAM; I've hit some nasty errors with these faulty 
DIMMs... :/


ComC(te escribiC3:

Hi,

we are using the last OpenBSD 4.5-stable release on an old Compaq 
Proliant ML350 as a firewall with spamd. But we encounter randomly 
some system crashes (once a week or two weeks). The system always 
displays the same message:


uvm_fault (0xd080d9e00x0,0,1) -> e

kernel: page fault trap, code=0

Stopped at cac_pci_l0_intr_pending+0xb
push 0x34 (%eax)

What do you think it could be ? I thought about maybe a hardware 
problem but where exactly...


I join my dmesg below

Thanks for your advice !

OpenBSD 4.5-stable (GENERIC) #9: Sun May 17 22:59:17 CEST 2009
r...@arwen.saintlo.fr:/usr/src/sys/arch/i386/compile/GENERIC
cpu0: Intel(R) Pentium(R) III CPU family 1266MHz ("GenuineIntel" 
686-class) 1.27 GHz
cpu0: 


FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,
FXSR,SSE 

real mem  = 267988992 (255MB)
avail mem = 250839040 (239MB)
mainbus0 at root
bios0 at mainbus0: AT/286+ BIOS, date 12/31/99, BIOS32 rev. 0 @ 
0xf, SMBIOS rev. 2.3 @ 0xec000 (31 entries)

bios0: vendor Compaq version "D11" date 01/29/2002
bios0: Compaq ProLiant ML350 G2
acpi0 at bios0: rev 0
acpi0: tables DSDT FACP APIC SPCR
acpi0: wakeup devices PBTN(S5)
acpitimer0 at acpi0: 3579545 Hz, 32 bits
acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
cpu0 at mainbus0: apid 3 (boot processor)
cpu0: apic clock running at 132MHz
ioapic0 at mainbus0: apid 8 pa 0xfec0, version 11, 16 pins
ioapic0: misconfigured as apic 0, remapped to apid 8
ioapic1 at mainbus0: apid 2 pa 0xfec01000, version 11, 16 pins
ioapic1: misconfigured as apic 0, remapped to apid 2
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus 2 (PCI1)
acpicpu0 at acpi0
acpitz0 at acpi0: critical temperature 31 degC
acpibtn0 at acpi0: PBTN
bios0: ROM list: 0xc/0x8000 0xc8000/0x1800 0xc9800/0x1800 
0xcb000/0x1800 0xcc800/0x4000! 0xd0800/0x1800 0xee000/0x2000!

pci0 at mainbus0 bus 0: configuration mode 1 (bios)
pchb0 at pci0 dev 0 function 0 "ServerWorks CNB20LE Host" rev 0x06
pchb1 at pci0 dev 0 function 1 "ServerWorks CNB20LE Host" rev 0x06
pci1 at pchb1 bus 2
em0 at pci1 dev 1 function 0 "Intel PRO/1000T (82544GC)" rev 0x02: 
apic 2 int 0 (irq 5), address 00:02:b3:b9:0d:a4
em1 at pci1 dev 2 function 0 "Intel PRO/1000T (82544GC)" rev 0x02: 
apic 2 int 2 (irq 15), address 00:02:b3:b9:0d:7d
re0 at pci1 dev 3 function 0 "D-Link Systems DGE-528T" rev 0x10: 
RTL8169/8110SB (0x1000), apic 2 int 4 (irq 15), address

00:1c:f0:6f:38:7e

rgephy0 at re0 phy 7: RTL8169S/8110S PHY, rev. 3
cac0 at pci1 dev 4 function 0 "DEC Compaq SMART RAID 42xx" rev 0x01: 
apic 2 int 6 (irq 11), Smart Array 431

scsibus0 at cac0: 1 targets
sd0 at scsibus0 targ 0 lun 0:  SCSI2 0/direct 
fixed

sd0: 34727MB, 512 bytes/sec, 71122560 sec total
re1 at pci1 dev 5 function 0 "D-Link Systems DGE-528T" rev 0x10: 
RTL8169/8110SB (0x1000), apic 2 int 8 (irq 15), address

00:1c:f0:62:eb:12

rgephy1 at re1 phy 7: RTL8169S/8110S PHY, rev. 3
fxp0 at pci0 dev 1 function 0 "Intel 8255x" rev 0x08, i82559: apic 2 
int 10 (irq 5), address 00:02:a5:44:33:f7

inphy0 at fxp0 phy 1: i82555 10/100 PHY, rev. 4
ahc0 at pci0 dev 2 function 0 "Adaptec AHA-3960D U160" rev 0x01: apic 
2 int 11 (irq 11)

scsibus1 at ahc0: 16 targets, initiator 7
ahc1 at pci0 dev 2 function 1 "Adaptec AHA-3960D U160" rev 0x01: apic 
2 int 11 (irq 11)

scsibus2 at ahc1: 16 targets, initiator 7
st0 at scsibus2 targ 6 lun 0: 

Re: Encrypted virtual disk.

2009-08-01 Thread Marco Peereboom
On Sat, Aug 01, 2009 at 04:41:19AM +, 4625 wrote:
> On Sat, 1 Aug 2009, Richard Toohey wrote:
>
>>> Can anyone explain how to create encrypted virtual disk? (similar to  
>>> vncrypt disk on FreeBSD).
>>
>> Google
>> openbsd encrypted virtual disk
>
> Many thanks.
>
>> Not sure if it is the same as FreeBSD's vncrypt, though.
>
> Yes, it is substitute of vncrypt. Many thanks again. There is one thing  
> make abash me - warning about filesystem damage. For example, vncrypt'ed  
> disk have never been damaged on power failure during 8 years of usage.

We call that luck and a very good UPS.

>
> --
> 4625



[SOLVED, sort of] Re: 'ps auwx' and 'top': inconsistent display?

2009-08-01 Thread Toni Mueller
Hi,

On Fri, 24.07.2009 at 15:09:23 +0200, Toni Mueller  
wrote:
> I have a perl script that should work as follows:
> * check some parameters
> * drop privileges ( $> = ...; $) = ...;)

it turned out that 'top' displayed the "real userid" which I didn't
set, while 'ps' displayed the effective userid, which I set like above.

This prompts more questions:

Why is the "real userid" inherited when using 'fork' while being
switched to a different user?


-- 
Kind regards,
--Toni++



locale support, again

2009-08-01 Thread Toni Mueller
Hi,

I know that the subject of what to do in the absense of having locale
support has been discussed quite often already.

I'd like to know what I need to do to supply "full locale support" to
applications that want to use them. My problem arises from those pesky
"web applications" which simply assume that such complete locale
support is present, and (try to) use it to format their output for the
user. Not having locale support means a lot of hacking, and/or
switching platforms, in every single case. Having it in the base
system, or maybe in an optional package like eg. 'miscXY.tgz', could
imho provide great relief for many users.

The theme has been recurring often enough to (imho) warrant making a
stab at it for 4.7, unless there are objections that I'm not aware of.


-- 
Kind regards,
--Toni++



Re: Audio seems correct but it doesn't sound (azalia)

2009-08-01 Thread Luis Useche
dmesg:
OpenBSD 4.5 (GENERIC.MP) #108: Sat Feb 28 14:58:58 MST 2009
dera...@i386.openbsd.org:/usr/src/sys/arch/i386/compile/GENERIC.MP
cpu0: Intel(R) Core(TM)2 Duo CPU T5250 @ 1.50GHz ("GenuineIntel"
686-class) 1.50 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,EST,TM2,CX16,xTPR
real mem  = 2137165824 (2038MB)
avail mem = 2058231808 (1962MB)
mainbus0 at root
bios0 at mainbus0: AT/286+ BIOS, date 08/15/07, BIOS32 rev. 0 @
0xffa10, SMBIOS rev. 2.4 @ 0xf7190 (45 entries)
bios0: vendor Dell Inc. version "A02" date 08/15/2007
bios0: Dell Inc. Inspiron 1420
acpi0 at bios0: rev 2
acpi0: tables DSDT FACP HPET APIC MCFG SLIC BOOT SSDT
acpi0: wakeup devices PCI0(S5) PCIE(S4) USB1(S0) USB2(S0) USB3(S0)
USB4(S0) USB5(S0) EHC2(S0) EHCI(S0) AZAL(S3) RP01(S3) RP02(S3)
RP03(S3) RP04(S3) RP05(S3) RP06(S5) LID_(S3) PBTN(S4) MBTN(S5)
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpihpet0 at acpi0: 14318179 Hz
acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: apic clock running at 166MHz
cpu1 at mainbus0: apid 1 (application processor)
cpu1: Intel(R) Core(TM)2 Duo CPU T5250 @ 1.50GHz ("GenuineIntel"
686-class) 1.50 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,EST,TM2,CX16,xTPR
ioapic0 at mainbus0: apid 2 pa 0xfec0, version 20, 24 pins
ioapic0: misconfigured as apic 0, remapped to apid 2
acpiprt0 at acpi0: bus 3 (PCIE)
acpiprt1 at acpi0: bus -1 (AGP_)
acpiprt2 at acpi0: bus 11 (RP01)
acpiprt3 at acpi0: bus 12 (RP02)
acpiprt4 at acpi0: bus -1 (RP03)
acpiprt5 at acpi0: bus 13 (RP04)
acpiprt6 at acpi0: bus -1 (RP05)
acpiprt7 at acpi0: bus 9 (RP06)
acpiprt8 at acpi0: bus 0 (PCI0)
acpicpu0 at acpi0: C3
acpicpu1 at acpi0: C3
acpitz0 at acpi0: critical temperature 87 degC
acpibtn0 at acpi0: LID_
acpibtn1 at acpi0: PBTN
acpibtn2 at acpi0: SBTN
acpiac0 at acpi0: AC unit online
acpibat0 at acpi0: BAT0 model "DELL PR6937" serial 24 type LION oem "Sanyo"
acpivideo at acpi0 not configured
acpivideo at acpi0 not configured
acpivideo at acpi0 not configured
bios0: ROM list: 0xc/0xf000! 0xcf000/0x1000
cpu0: unknown Enhanced SpeedStep CPU, msr 0x0613092b0600092b
cpu0: using only highest and lowest power states
cpu0: Enhanced SpeedStep 1500 MHz (1388 mV): speeds: 1500, 1000 MHz
pci0 at mainbus0 bus 0: configuration mode 1 (bios)
pchb0 at pci0 dev 0 function 0 "Intel GM965 Host" rev 0x0c
vga1 at pci0 dev 2 function 0 "Intel GM965 Video" rev 0x0c
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
intagp0 at vga1
agp0 at intagp0: aperture at 0xe000, size 0x1000
inteldrm0 at vga1: apic 2 int 16 (irq 11)
drm0 at inteldrm0
"Intel GM965 Video" rev 0x0c at pci0 dev 2 function 1 not configured
uhci0 at pci0 dev 26 function 0 "Intel 82801H USB" rev 0x02: apic 2
int 20 (irq 10)
uhci1 at pci0 dev 26 function 1 "Intel 82801H USB" rev 0x02: apic 2
int 21 (irq 9)
ehci0 at pci0 dev 26 function 7 "Intel 82801H USB" rev 0x02: apic 2
int 22 (irq 7)
usb0 at ehci0: USB revision 2.0
uhub0 at usb0 "Intel EHCI root hub" rev 2.00/1.00 addr 1
azalia0 at pci0 dev 27 function 0 "Intel 82801H HD Audio" rev 0x02:
apic 2 int 21 (irq 9)
azalia0: codecs: Sigmatel STAC9228X, Conexant/0x2c06, using Sigmatel STAC9228X
audio0 at azalia0
ppb0 at pci0 dev 28 function 0 "Intel 82801H PCIE" rev 0x02: apic 2
int 16 (irq 0)
pci1 at ppb0 bus 11
ppb1 at pci0 dev 28 function 1 "Intel 82801H PCIE" rev 0x02: apic 2
int 17 (irq 0)
pci2 at ppb1 bus 12
wpi0 at pci2 dev 0 function 0 "Intel PRO/Wireless 3945ABG" rev 0x02:
apic 2 int 17 (irq 10), MoW1, address 00:18:de:be:50:48
ppb2 at pci0 dev 28 function 3 "Intel 82801H PCIE" rev 0x02: apic 2
int 19 (irq 0)
pci3 at ppb2 bus 13
ppb3 at pci0 dev 28 function 5 "Intel 82801H PCIE" rev 0x02: apic 2
int 17 (irq 0)
pci4 at ppb3 bus 9
bge0 at pci4 dev 0 function 0 "Broadcom BCM5906M" rev 0x02, BCM5906 A2
(0xc002): apic 2 int 17 (irq 10), address 00:1c:23:f8:62:90
brgphy0 at bge0 phy 1: BCM5906 10/100baseTX PHY, rev. 0
uhci2 at pci0 dev 29 function 0 "Intel 82801H USB" rev 0x02: apic 2
int 20 (irq 10)
uhci3 at pci0 dev 29 function 1 "Intel 82801H USB" rev 0x02: apic 2
int 21 (irq 9)
uhci4 at pci0 dev 29 function 2 "Intel 82801H USB" rev 0x02: apic 2
int 22 (irq 7)
ehci1 at pci0 dev 29 function 7 "Intel 82801H USB" rev 0x02: apic 2
int 20 (irq 10)
usb1 at ehci1: USB revision 2.0
uhub1 at usb1 "Intel EHCI root hub" rev 2.00/1.00 addr 1
ppb4 at pci0 dev 30 function 0 "Intel 82801BAM Hub-to-PCI" rev 0xf2
pci5 at ppb4 bus 3
"Ricoh 5C832 Firewire" rev 0x05 at pci5 dev 1 function 0 not configured
sdhc0 at pci5 dev 1 function 1 "Ricoh 5C822 SD/MMC" rev 0x22: apic 2
int 18 (irq 4)
sdmmc0 at sdhc0
"Ricoh 5C843 MMC" rev 0x12 at pci5 dev 1 function 2 not configured
"Ricoh 5C592 Memory Stick" rev 0x12 at pci5 dev 1 function 3 not configured
"Ri

Re: [SOLVED, sort of] Re: 'ps auwx' and 'top': inconsistent display?

2009-08-01 Thread Jussi Peltola
On Sat, Aug 01, 2009 at 03:33:54PM +0200, Toni Mueller wrote:
> Why is the "real userid" inherited when using 'fork' while being
> switched to a different user?
 
Why should fork touch user id's? Drop them properly yourself after forking.

http://search.cpan.org/~tlbdk/Privileges-Drop-1.01/lib/Privileges/Drop.pm

-- 
Jussi Peltola



Re: random crashes on a firewall with OpenBSD 4.5-stable

2009-08-01 Thread Stuart Henderson
On 2009-08-01, Comete  wrote:
> as suggested, i finally changed the RAID controler (Compaq Smart Array 
> 431) with the same device and the firewall still crashes with the same 
> error.

I think the idea was probably to change it for a completely different
type of device (or for just a plain SCSI controller).

> So if it is not the hardware could it be the software ?

yes, quite possibly the cac(4) driver.

> How can i submit a bug report and where ? What informations do you need ?
> what can i do or type when i get the error with the debug prompt ?

as a starter: trace, ps.



Re: Encrypted virtual disk.

2009-08-01 Thread 4625

On Sat, 1 Aug 2009, Marco Peereboom wrote:


Can anyone explain how to create encrypted virtual disk? (similar to
vncrypt disk on FreeBSD).


Google
openbsd encrypted virtual disk


Many thanks.


Not sure if it is the same as FreeBSD's vncrypt, though.


Yes, it is substitute of vncrypt. Many thanks again. There is one thing
make abash me - warning about filesystem damage. For example, vncrypt'ed
disk have never been damaged on power failure during 8 years of usage.


We call that luck and a very good UPS.

I call that good driver, without UPS.

--
4625



Re: Cyrillic fonts in X Window.

2009-08-01 Thread 4625

On Sat, 1 Aug 2009, Alexander Polakov wrote:


Probably bitmap fonts are disabled. Take a look at /etc/fonts/conf.d.
If there is no 70-yes-bitmaps.conf then link or copy it from
/etc/fonts/conf.avail and use fc-cache -fv


cd: /etc/fonts/conf.avail: No such file or directory


% tar tvzf xetc46.tgz|grep conf.avail
drwxr-xr-x root/wheel0 2009-07-29 21:45 ./etc/fonts/conf.avail


OK, '70-yes-bitmaps.conf' present now in /etc/fonts/conf.d/.
/usr/X11R6/lib/X11/fonts/cyrillic: caching, 0 fonts, 0 dirs


Something is wrong with your install.


And I guess what is going wrong. There was a few untar errors during 
install (with a brand new NEC device and Verbatim CD-RW!). I have untar 
those files by hands immediately, but something miss, as we see.


--
4625



Re: Audio seems correct but it doesn't sound (azalia)

2009-08-01 Thread Jacob Meuser
On Sat, Aug 01, 2009 at 10:24:14AM -0400, Luis Useche wrote:
> dmesg:
...

> mixerctl:
...

thanks.  one more piece of info is needed.  can you send me the output
of `pcidump -x'?

-- 
jake...@sdf.lonestar.org
SDF Public Access UNIX System - http://sdf.lonestar.org



Re: Audio seems correct but it doesn't sound (azalia)

2009-08-01 Thread Luis Useche
l...@meg ~ $ sudo pcidump -x
Domain /dev/pci0:
 0:0:0: Intel GM965 Host
0x: 2a008086 2096 060c 
0x0010:    
0x0020:    01f31028
0x0030:  00e0  
 0:2:0: Intel GM965 Video
0x: 2a028086 0097 030c 0080
0x0010: fea4  e00c 
0x0020: eff9   01f31028
0x0030:  0090  010b
 0:2:1: Intel GM965 Video
0x: 2a038086 0097 038c 0080
0x0010: feb4   
0x0020:    01f31028
0x0030:  00d0  
 0:26:0: Intel 82801H USB
0x: 28348086 0285 0c030002 0080
0x0010:    
0x0020: 6f21   01f31028
0x0030:    010a
 0:26:1: Intel 82801H USB
0x: 28358086 0285 0c030002 
0x0010:    
0x0020: 6f01   01f31028
0x0030:    0209
 0:26:7: Intel 82801H USB
0x: 283a8086 02900106 0c032002 
0x0010: fed1c400   
0x0020:    01f31028
0x0030:  0050  0307
 0:27:0: Intel 82801H HD Audio
0x: 284b8086 00100106 04030002 0010
0x0010: fe9fc004   
0x0020:    01f31028
0x0030:  0050  0109
 0:28:0: Intel 82801H PCIE
0x: 283f8086 0017 06040002 00810010
0x0010:   000b0b00 20f0
0x0020: fff0 0001fff1  
0x0030:  0040  00020100
 0:28:1: Intel 82801H PCIE
0x: 28418086 00100107 06040002 00810010
0x0010:   000c0c00 00f0
0x0020: fe80fe80 0001fff1  
0x0030:  0040  00020200
 0:28:3: Intel 82801H PCIE
0x: 28458086 0017 06040002 00810010
0x0010:   000e0d00 2000d0d0
0x0020: fe70fe60 f011f001  
0x0030:  0040  00020400
 0:28:5: Intel 82801H PCIE
0x: 28498086 0017 06040002 00810010
0x0010:   00090900 00f0
0x0020: fe50fe50 0001fff1  
0x0030:  0040  00020200
 0:29:0: Intel 82801H USB
0x: 28308086 0285 0c030002 0080
0x0010:    
0x0020: 6f81   01f31028
0x0030:    010a
 0:29:1: Intel 82801H USB
0x: 28318086 0285 0c030002 
0x0010:    
0x0020: 6f61   01f31028
0x0030:    0209
 0:29:2: Intel 82801H USB
0x: 28328086 0285 0c030002 
0x0010:    
0x0020: 6f41   01f31028
0x0030:    0307
 0:29:7: Intel 82801H USB
0x: 28368086 02900106 0c032002 
0x0010: fed1c000   
0x0020:    01f31028
0x0030:  0050  010a
 0:30:0: Intel 82801BAM Hub-to-PCI
0x: 24488086 00100107 060401f2 0001
0x0010:   20030300 228000f0
0x0020: fe40fe40 0001fff1  
0x0030:  0050  000200ff
 0:31:0: Intel 82801HBM LPC
0x: 28158086 02100107 06010002 0080
0x0010:    
0x0020:    01f31028
0x0030:  00e0  
 0:31:1: Intel 82801HBM IDE
0x: 28508086 0285 01018a02 
0x0010: 01f1 03f5 0171 0375
0x0020: 6fa1   01f31028
0x0030:    010b
 0:31:2: Intel 82801HBM AHCI
0x: 28298086 02b7 01060102 
0x0010: 6eb1 6eb9 6ec1 6ec9
0x0020: 6ee1 fe9fb800  01f31028
0x0030:  0080  020a
 0:31:3: Intel 82801H SMBus
0x: 283e8086 02800103 0c050002 
0x0010: fe9fb700   
0x0020: 10c1   01f31028
0x0030:    020a
 3:1:0: Ricoh 5C832 Firewire
0x: 08321180 02100106 0c001005 00804010
0x0010: fe4ff800   
0x0020:    01f31028
0x0030:  00dc  04020105
 3:1:1: R

Re: Audio seems correct but it doesn't sound (azalia)

2009-08-01 Thread Jacob Meuser
thanks.

the following should apply to src/sys/dev/pci/azalia_codec.c for OpenBSD
4.5 (azalia_codec.c r1.114).

please let me know if this fixes the issue.

-- 
jake...@sdf.lonestar.org
SDF Public Access UNIX System - http://sdf.lonestar.org

Index: azalia_codec.c
===
RCS file: /cvs/src/sys/dev/pci/azalia_codec.c,v
retrieving revision 1.114
diff -u azalia_codec.c
--- azalia_codec.c  24 Jan 2009 09:44:02 -  1.114
+++ azalia_codec.c  2 Aug 2009 01:30:50 -
@@ -64,6 +64,7 @@
 #define IDT92HD71B7_DELL_E6500 0x024f1028
 #define SIGMATEL_STAC9228X 0x83847616
 #define STAC9228X_DELL_V1400   0x02271028
+#define STAC9228X_DELL_I1400   0x01f31028
 
 intazalia_generic_codec_init_dacgroup(codec_t *);
 intazalia_generic_codec_fnode(codec_t *, nid_t, int, int);
@@ -2227,7 +2228,9 @@
if (this->vid == REALTEK_ALC880 && this->subid == 
ALC880_MEDION_MD95257) {
azalia_gpio_unmute(this, 1);
}
-   if (this->vid == SIGMATEL_STAC9228X && this->subid == 
STAC9228X_DELL_V1400) {
+   if (this->vid == SIGMATEL_STAC9228X &&
+   (this->subid == STAC9228X_DELL_V1400 ||
+   this->subid == STAC9228X_DELL_I1400)) {
azalia_gpio_unmute(this, 2);
}
return 0;



Re: Audio seems correct but it doesn't sound (azalia)

2009-08-01 Thread Luis Useche
The patch does work. Thank you.

Luis Useche
use...@gmail.com



On Sat, Aug 1, 2009 at 9:34 PM, Jacob Meuser wrote:
> thanks.
>
> the following should apply to src/sys/dev/pci/azalia_codec.c for OpenBSD
> 4.5 (azalia_codec.c r1.114).
>
> please let me know if this fixes the issue.
>
> --
> jake...@sdf.lonestar.org
> SDF Public Access UNIX System - http://sdf.lonestar.org
>
> Index: azalia_codec.c
> ===
> RCS file: /cvs/src/sys/dev/pci/azalia_codec.c,v
> retrieving revision 1.114
> diff -u azalia_codec.c
> --- azalia_codec.c  24 Jan 2009 09:44:02 -  1.114
> +++ azalia_codec.c  2 Aug 2009 01:30:50 -
> @@ -64,6 +64,7 @@
>  #define IDT92HD71B7_DELL_E6500 0x024f1028
>  #define SIGMATEL_STAC9228X 0x83847616
>  #define STAC9228X_DELL_V1400   0x02271028
> +#define STAC9228X_DELL_I1400   0x01f31028
>
>  intazalia_generic_codec_init_dacgroup(codec_t *);
>  intazalia_generic_codec_fnode(codec_t *, nid_t, int, int);
> @@ -2227,7 +2228,9 @@
>if (this->vid == REALTEK_ALC880 && this->subid ==
ALC880_MEDION_MD95257) {
>azalia_gpio_unmute(this, 1);
>}
> -   if (this->vid == SIGMATEL_STAC9228X && this->subid ==
STAC9228X_DELL_V1400) {
> +   if (this->vid == SIGMATEL_STAC9228X &&
> +   (this->subid == STAC9228X_DELL_V1400 ||
> +   this->subid == STAC9228X_DELL_I1400)) {
>azalia_gpio_unmute(this, 2);
>}
>return 0;



Descubre el Golf en tu paraiso Nuevo Vallarta

2009-08-01 Thread Paradise Village
En caso de no poder ver correctamente este correo favor de dar haga clic aqum

Este mensaje fue enviado para informacisn de nuestras promociones. No 
pretendemos saturar su correo ni causarle molestias. Este mensaje de correo 
electrsnico no se considera "SPAM", ya que cumple con lo establecido en el 
capmtulo VIII BIS de los lineamientos sobre comercio electrsnico publicados por 
la PROFECO, ademas de contener instrucciones y una forma electrsnica para 
notificar y solicitar la cancelacisn de su envmo y no continuar recibiindolo. 
Si no desea recibir en un futuro estos mensajes favor de hacer clic en ( 
unsuscr...@pqstravel.com ) y sera removido de nuestra lista en 72 horas. Si 
desea hacer llegar esta informacisn a otros agentes de viajes o particular, 
proporcisnenos sus direccisn de correo electrsnico HAGA CLIC AQUM o envme sus 
sugerencias. Si desea informacisn sobre nuestros servicios, contactennos a 
m...@pqstravel.com