new PCI IDs

2008-07-07 Thread giovanni
Index: src/sys/dev/pci/pcidevs
===
RCS file: /cvs/src/sys/dev/pci/pcidevs,v
retrieving revision 1.1385
diff -u -p -u -r1.1385 pcidevs
--- src/sys/dev/pci/pcidevs 5 Jul 2008 18:21:47 -   1.1385
+++ src/sys/dev/pci/pcidevs 7 Jul 2008 06:48:14 -
@@ -1074,6 +1074,7 @@ product ATI RADEON_HD2400_PRO 0x94c3  Rad
 product ATI RADEON_HD2400_M72  0x94c9  Mobility Radeon HD 2400
 product ATI RADEON_HD3870  0x9501  Radeon HD 3870
 product ATI RADEON_HD2600  0x9589  Radeon HD 2600
+product ATI RADEON_HD3450   0x95c5  Radeon HD 3450
 product ATI RS780_HB   0x9600  RS780 Host
 product ATI RS780_PCIE_1   0x9602  RS780 PCIE
 product ATI RS780_PCIE_2   0x9609  RS780 PCIE
@@ -1081,6 +1082,7 @@ product ATI RS780_HDA 0x960f  RS780 HD A
 product ATI RADEON_HD3200  0x9610  Radeon HD 3200
 product ATI RADEON_HD2600_HDA  0xaa08  Radeon HD 2600 HD Audio
 product ATI RS690M_HDA 0xaa10  RS690M HD Audio
+product ATI RADEON_HD34xx_HDA   0xaa28  Radeon HD 34xx HD Audio
 product ATI RS100_AGP  0xcab0  RS100 AGP
 product ATI RS200_AGP  0xcab2  RS200 AGP
 product ATI RS250_AGP  0xcab3  RS250 AGP

-- 
see ya,
giovanni



Re: ROOTBACKUP=1 no backup done

2008-07-07 Thread Gabri Mate
On 12:01 Sun 06 Jul , Gabri Mate wrote:
 --
 Gabri Mate
 [EMAIL PROTECTED]
 On 04:19 Sun 06 Jul , Denny White wrote:
Quoted from Gabri Mate on Sun, Jul 06, 2008 at 02:25:55AM +0200,:
 Hey There List,

 I've made an /altroot partition, exactly the same size as my /, and
 it
 is also mounted. I've put ROOTBACKUP=1 in root's crontab, but my /
 partition doesn't get dumped on /altroot at the daily cron's run. I
 have
 4.3 release.
 Is there something i'm missing?
 --
 Gabri Mate
 [EMAIL PROTECTED]

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

   
Read this portion of /etc/daily:
   
# If ROOTBACKUP is set to 1 in the environment, and
# if filesystem named /altroot is type ffs, on /dev/* and mounted
xx,
# use it as a backup root filesystem to be updated daily.
   
And, if you read fstab(5) you'll see this:
   
If fs_type is specified as ``xx'' the entry is ignored.
   
So, fs_type should be xx in your fstab, right? You didn't include
your fstab, but that sounds like what the problem is; i.e., you
don't have that in yours and altroot is mounting normally.
   
  Quoted from Gabri Mate on Sun, Jul 06, 2008 at 09:03:28AM +0200,:
   Yes, looks like this is the problem.
   I've setup /altroot during installation, and i didn't bother editing
   fstab.
   /altroot looks like this:
  
   /dev/wd0d /altroot ffs rw 1 2
  
   So i should change ffs to xx, right?
 
  No, you need to read the terminologies a little closer on fstab.
  Anyway, it should look like this:
 
  /dev/wd0d /altroot ffs xx 0 0
 
  Mine is on a separate drive. I figure if my main drive craps out,
  what good will /altroot on that drive do me. My fstab looks like:
 
  /dev/wd1a /altroot ffs xx 0 0
 
  Hope that helps. You should've cc'd misc@ too, when you wrote back.
  Anyway, I don't mind corresponding off list. Also, you'll have to
  umount the /altroot too. After that, either wait  see what happens
  when daily runs, or run it yourself beforehand, either manually or
  change roots crontab temporarily. If that doesn't work, you might
  have to reboot. Never ran into that problem before since I had it
  set up right from the get go, but that was just luck. I had already
  read that part specifically somewhere (can't recall right now) and
  was concerned about backups right from the start. Just for my own
  curiosity, let me know if you wind up having to reboot for it to
  take, okay? ttyl
 
 
  Denny White
 
  --
 
  Bill Gates is a very rich man today... and do you want to know why?
  The answer is one word: versions.  Dave Barry
 
  All messages scanned by ClamAssassin
  http://jameslick.com/clamassassin/
  ===
  GnuPG key  : 0x1644E79A  |  http://wwwkeys.nl.pgp.net
  Fingerprint: D0A9 AD44 1F10 E09E 0E67  EC25 CB44 F2E5 1644 E79A
  ===
 
 
 Thank You!

 I'll check it and report back about the need of a reboot.

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

It's working without a reboot. Thanks again!
--
Gabri Mate
[EMAIL PROTECTED]

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



question regarding multipath routing

2008-07-07 Thread Sebastian Reitenbach
Hi,

I have a question regarding equal-cost multipath routing. 
Here is what I want to do: couple two 16 MBit DSL lines, as I'd need the
speed of both combined.
Here on my side, a FTP server will run, and on the other side, a
FTP client, doing up to 20 connections in parallel. Between the ftp client
host, and the FTP server, I wanted to setup two OpenVPN tunnels. 

So I read the FAQ regarding the topic, and the mentioned RFC 2992.

In the RFC I read:
One method for determining which next-hop to use when routing with
   ECMP can be called hash-threshold.  The router first selects a key by
   performing a hash (e.g., CRC16) over the packet header fields that
   identify a flow.  

and then in the route(8) manual page:
When multiple routes exist for a destination, one route is
selected based on the source address of the packet.  The sysctl(8) vari-
ables net.inet.ip.multipath and net.inet6.ip6.multipath are used to con-
trol multipath routing.  If set to 1, multiple routes with the same pri-
ority are used equally; if set to 0, the first route selected will be
used for subsequent packets to that destination regardless of source.

So the question I now have is, in my scenario, I only have one source and
one destination for all the connections. When I understand the manual page
of route(8) correctly, then everything will take the same tunnel. Either
with activated multipath, because the source IP address will be the same
all the time, and with disabled multipath, it will take the first route that
can be found in the routing table.

kind regards
Sebastian



Re: Mark messages in /var/log/message

2008-07-07 Thread Daniel Bareiro
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

El domingo 06 de julio del 2008 a las 18:13:14 -0300,
Otto Moerbeek escribis:

  Today, after a cut of electrical provision, I wanted to make a
  comparison of 'messages' log of Debian against the one of OpenBSD
  to isolate in what moment was the cut but the 'messages' log of
  OpenBSD doesn't put marks of timestamp and I had understood that to
  put this marks is the default behavior in all Unix systems. How I
  can configure it in OpenBSD?
 
 Check man syslog.conf; mark is a separate facility, you'll need to
 add mark.info to the appropiate line, e.g.:
 
 change
 
 kern.debug;syslog,user.info /var/log/messages
 
 to
 
 kern.debug;syslog,user.info,mark,info  /var/log/messages

 err, that should be mark.info

Perfect!

According to I see, is necessary to force this facility in OpenBSD to
use it, but in Debian GNU/Linux I do not see that it is specified in
syslog.conf neither in /etc/init.d/sysklogd nor in /etc/default/syslogd.
Apparently in GNU/Linux it is the other way around, to remove would be
necessary it to force it in /etc/default/syslogd putting -m 0 in
variable SYSLOGD. Interesting... :-)

Thanks for your speedy reply, Otto.

Thanks also for your reply, Chris. I see that this only arrived to my
from personal email but not to the mailing list/newsgroup. Check it,
please. I hope that with this is openbsd - we have manpages that are
useful you have not meant that manpages of GNU/Linux is not useful. We
must be brothers :-D

Regards,
Daniel
iD8DBQFIceIaZpa/GxTmHTcRAoOdAJ4n3NjSeVJbZpJng3Q2+FoaV2yfiQCbBwcw
TrhwgfgP29s+tn4O+hjiZuQ=
=AEqr
-END PGP SIGNATURE-



Re: ATTENTION: anyone using the the X driver for any ati card

2008-07-07 Thread Benoit Chesneau
On Mon, Jul 7, 2008 at 7:06 AM, Ian Lindsay [EMAIL PROTECTED] wrote:
 Well, building a kernel with DRM and removing option MigrationHeuristic
 gives some impressive results:

compared to ?

- benont



Can't get KERN_NCHSTATS: Cannot allocate memory

2008-07-07 Thread Insan Praja SW

Hi Misc@,
on latest OpenBSD 4.4-beta (GENERIC.MP) #18: Mon Jul  7 08:40:47 WIT  
2008 AMD64 machine, while lookin' to my new favorite tool systat, on the  
first page, I got the Can't get KERN_NCHSTATS: Cannot allocate memory.
I wonder what happen, it's a 1GB Memory machine, on 4 juli snapshot, it  
doesn't complain.

As usual, here is the dmesg.

OpenBSD 4.4-beta (GENERIC.MP) #18: Mon Jul  7 08:40:47 WIT 2008
[EMAIL PROTECTED]:/usr/src/sys/arch/amd64/compile/GENERIC.MP
real mem = 1051168768 (1002MB)
avail mem = 1020350464 (973MB)
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.34 @ 0x3f6ee000 (78 entries)
bios0: vendor FUJITSU SIEMENS // Phoenix Technologies Ltd. version 5.00  
R1.10.2151.A1 date 05/08/2006

bios0: FUJITSU SIEMENS D2151-A1
acpi0 at bios0: rev 2
acpi0: tables DSDT FACP ASF! SSDT MCFG HPET APIC BOOT
acpi0: wakeup devices PEXA(S4) PEXB(S4) PEXC(S4) PEXD(S4) PEXE(S4)  
USB1(S4) USB2(S4) USB3(S4) USB4(S4) USB5(S4) PCIH(S4) KEYB(

S4) PS2M(S4) COM1(S1) COM2(S1)
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: Intel(R) Pentium(R) D CPU 2.66GHz, 2660.43 MHz
cpu0:  
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,S

SE3,MWAIT,DS-CPL,TM2,CNXT-ID,CX16,xTPR,NXE,LONG
cpu0: 1MB 64b/line 8-way L2 cache
cpu0: apic clock running at 133MHz
cpu1 at mainbus0: apid 1 (application processor)
cpu1: Intel(R) Pentium(R) D CPU 2.66GHz, 2660.18 MHz
cpu1:  
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,S

SE3,MWAIT,DS-CPL,TM2,CNXT-ID,CX16,xTPR,NXE,LONG
cpu1: 1MB 64b/line 8-way L2 cache
ioapic0 at mainbus0 apid 2 pa 0xfec0, version 20, 24 pins
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus -1 (PEXA)
acpiprt2 at acpi0: bus 3 (PEXB)
acpiprt3 at acpi0: bus 5 (PEXC)
acpiprt4 at acpi0: bus 7 (PEXD)
acpiprt5 at acpi0: bus 9 (PEXE)
acpiprt6 at acpi0: bus 11 (PCIH)
acpicpu0 at acpi0: FVS, 2667, 1862 MHz
acpicpu1 at acpi0: FVS, 2667, 1862 MHz
acpibtn0 at acpi0: PWRB
pci0 at mainbus0 bus 0: configuration mode 1
pchb0 at pci0 dev 0 function 0 Intel 82945G Host rev 0x02
vga1 at pci0 dev 2 function 0 Intel 82945G Video rev 0x02
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
agp0 at vga1: aperture at 0xe000, size 0x1000
azalia0 at pci0 dev 27 function 0 Intel 82801GB HD Audio rev 0x01: apic  
2 int 18 (irq 9)

azalia0: codec[s]: Realtek ALC260
audio0 at azalia0
ppb0 at pci0 dev 28 function 0 Intel 82801GB PCIE rev 0x01: apic 2 int  
17 (irq 11)

pci1 at ppb0 bus 3
ppb1 at pci0 dev 28 function 1 Intel 82801GB PCIE rev 0x01: apic 2 int  
16 (irq 11)

pci2 at ppb1 bus 5
bge0 at pci2 dev 0 function 0 Broadcom BCM5751 rev 0x01, BCM5750 A1  
(0x4001): apic 2 int 17 (irq 11), address 00:30:05:c9:79

:df
brgphy0 at bge0 phy 1: BCM5750 10/100/1000baseT PHY, rev. 0
ppb2 at pci0 dev 28 function 2 Intel 82801GB PCIE rev 0x01: apic 2 int  
18 (irq 9)

pci3 at ppb2 bus 7
ppb3 at pci0 dev 28 function 3 Intel 82801GB PCIE rev 0x01: apic 2 int  
19 (irq 9)

pci4 at ppb3 bus 9
uhci0 at pci0 dev 29 function 0 Intel 82801GB USB rev 0x01: apic 2 int  
23 (irq 11)
uhci1 at pci0 dev 29 function 1 Intel 82801GB USB rev 0x01: apic 2 int  
22 (irq 10)
uhci2 at pci0 dev 29 function 2 Intel 82801GB USB rev 0x01: apic 2 int  
21 (irq 5)
uhci3 at pci0 dev 29 function 3 Intel 82801GB USB rev 0x01: apic 2 int  
20 (irq 9)
ehci0 at pci0 dev 29 function 7 Intel 82801GB USB rev 0x01: apic 2 int  
23 (irq 11)

ehci0: timed out waiting for BIOS
usb0 at ehci0: USB revision 2.0
uhub0 at usb0 Intel EHCI root hub rev 2.00/1.00 addr 1
ppb4 at pci0 dev 30 function 0 Intel 82801BA Hub-to-PCI rev 0xe1
pci5 at ppb4 bus 11
em0 at pci5 dev 5 function 0 Intel PRO/1000MT (82540EM) rev 0x02: apic 2  
int 22 (irq 10), address 00:07:e9:0f:44:37
rl0 at pci5 dev 7 function 0 D-Link Systems 530TX+ rev 0x10: apic 2 int  
21 (irq 5), address 00:11:95:63:48:63

rlphy0 at rl0 phy 0: RTL internal PHY
pcib0 at pci0 dev 31 function 0 Intel 82801GB LPC rev 0x01
pciide0 at pci0 dev 31 function 2 Intel 82801GB SATA rev 0x01: DMA,  
channel 0 wired to compatibility, channel 1 wired to com

patibility
wd0 at pciide0 channel 0 drive 0: ST3160211AS
wd0: 16-sector PIO, LBA48, 152627MB, 312581808 sectors
wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 5
atapiscsi0 at pciide0 channel 1 drive 1
scsibus0 at atapiscsi0: 2 targets, initiator 7
cd0 at scsibus0 targ 0 lun 0: TSSTcorp, DVD-ROM SH-D162D, SB00 ATAPI  
5/cdrom removable

cd0(pciide0:1:1): using PIO mode 4, Ultra-DMA mode 2
ichiic0 at pci0 dev 31 function 3 Intel 82801GB SMBus rev 0x01: apic 2  
int 19 (irq 9)

iic0 at ichiic0
spdmem0 at iic0 addr 0x50: 512MB DDR2 SDRAM non-parity PC2-5300CL5
spdmem1 at iic0 addr 0x52: 512MB DDR2 SDRAM non-parity PC2-5300CL5
usb1 at uhci0: USB revision 1.0

Re: question regarding multipath routing

2008-07-07 Thread Stuart Henderson
On 2008-07-07, Sebastian Reitenbach [EMAIL PROTECTED] wrote:
 I have a question regarding equal-cost multipath routing.

oh damn, forgot about that when I suggested mpath :( of course,
that's to prevent packets arriving out of order and destroying TCP 
performance.

 So I read the FAQ regarding the topic, and the mentioned RFC 2992.

 In the RFC I read:
 One method for determining which next-hop to use when routing with
ECMP can be called hash-threshold.

yes, that's what we do, see rtalloc_mpath() in sys/net/radix_mpath.c



how to undelete?

2008-07-07 Thread macintoshzoom
I deleted a directory from an OpenBSD slice from my 2nd HD, and I need
to recover a single file.

I tried : http://myutil.com/2008/1/15/undelete-unrm-for-openbsd-4-2-with-dls
but  failed :

# dls /dev/wd1x  /xxx/xx/undelete.bin
Sector offset supplied is larger than disk image (maximum: 0)

Help  thanks.



Re: about dhcpd and carp device

2008-07-07 Thread Richard Daemon
On Mon, Jun 30, 2008 at 3:54 PM, Imre Oolberg [EMAIL PROTECTED] wrote:
 Hallo!

 I have been using for some time now carp failover and i am very content with
 it, thank you!

 I run some tests and i just wanted to confirm that in order to run dhcpd
 service one has to run it on a physical interface (which has ip address
 configured) like

 # dhcpd fxp0

 and not on a carp device which in turn uses fxp0 like that, right?

 # dhcpd carp1


 Best regards,

 Imre

 PS I learned from the archives that dhcp v.3 has so to say master and slave
 functionality but this is not an issue yet for me how to sync leases
 database and etc.



I'm just curious, why run dhcpd on a carp interface? What's the reason
for wanting to do this?



Re: how to undelete?

2008-07-07 Thread Marco Peereboom
You use a backup.

UNIX != Windows != OSX

On Mon, Jul 07, 2008 at 05:48:31AM -0600, macintoshzoom wrote:
 I deleted a directory from an OpenBSD slice from my 2nd HD, and I need
 to recover a single file.
 
 I tried : http://myutil.com/2008/1/15/undelete-unrm-for-openbsd-4-2-with-dls
 but  failed :
 
 # dls /dev/wd1x  /xxx/xx/undelete.bin
 Sector offset supplied is larger than disk image (maximum: 0)
 
 Help  thanks.



Re: how to undelete?

2008-07-07 Thread Die Gestalt
Just open your disk in a hex editor and look for your data, it should be here.



comixwall pf will not work

2008-07-07 Thread Rainel Roflo
Good day I have successfully installed comixwall 4.2 on my machine but
its default pf rules wil l not allow me to connect to internet but if
I'm going to disable it I can connect to the internet, here is my
pf.conf after installing comixwall. 
This is my first time installing OpenBSD and using pf as a firewall can you 
help me setting up my pf rules.

# $Id: pf.conf,v 1.5 2008/01/05 11:15:33 soner Exp $
# ComixWall pf rules
# See pf.conf(5) and /usr/share/pf for syntax and examples.
# Remember to set net.inet.ip.forwarding=1 and/or net.inet6.ip6.forwarding=1
# in /etc/sysctl.conf if packets are to be forwarded between interfaces.
int_if = dc0
ext_if = dc1
int_net = 172.16.1.0/24
proxy = dc1

# MSN, ICQ/AIM, Yahoo, IRC
im_ports = { 1863 5190 5050 6667 }

table RestrictedIPs persist file
 /etc/pf.restrictedips
table spamd persist
table spamd-white persist
table snortips persist

set loginterface $int_if
set skip on lo

scrub in all

nat-anchor ftp-proxy/*
rdr-anchor ftp-proxy/*
nat on $ext_if from !($ext_if) - ($ext_if:0)

# FTP-proxy
rdr on $int_if proto tcp from $int_net to any port ftp - lo port 8021

# Reverse FTP-proxy (disabled)
# rdr log on $ext_if proto tcp from any to !$ext_if port ftp - lo port 8022
# spamd spam deferral daemon
rdr pass on $ext_if proto tcp from spamd to any port smtp - lo port spamd
rdr pass on $ext_if proto tcp from !spamd-white to any port smtp - lo port 
spamd

# Web filter
rdr on $int_if proto tcp from $int_net to !$int_if port www - lo port 8080

# POP3 proxy
rdr on $int_if proto tcp from $int_net to !$int_if port pop3 - lo port 8110

# SMTP
 proxy
rdr on $int_if proto tcp from $int_net to !$int_if port smtp - lo port 9199

# IM proxy
rdr on $int_if proto tcp from $int_net to !$int_if port $im_ports - lo port 
16667

anchor ftp-proxy/*
antispoof quick for { lo $int_if }

# IPS
block in log quick from snortips
block out log quick to snortips

# BLOCK ALL TRAFFIC BY DEFAULT
block log all

# FTP-proxy
pass out log quick on $ext_if inet proto tcp from $proxy to any port 21 flags 
any

# pass tcp, udp, and icmp out on the external (Internet) interface.
# ComixWall proxies need 'flags any' here
pass out log on $ext_if proto tcp all flags any
pass out log on $ext_if proto { udp icmp } all

# SSH connection to/from ComixWall
pass in log on $int_if inet proto tcp from $int_net to { $int_if $ext_if } port 
ssh
pass in log on $ext_if inet proto tcp from any to $ext_if port ssh
pass out log on $int_if
 inet proto tcp from $int_if to any port ssh

# ComixWall Web Administration Interface
pass in log on $int_if proto tcp from $int_net to $int_if port { www https }

# DNS queries to ComixWall
pass in log on $int_if proto { tcp udp } from $int_net to $int_if port { domain 
bootps }

# ComixWall proxies
pass in log on $int_if inet proto tcp from $int_net to lo port { 8021 8080 8110 
9199 16667 } flags any
pass out log on $ext_if inet proto tcp from $ext_if to any port $im_ports flags 
any
pass in log on $ext_if inet proto tcp from any port $im_ports to $ext_if flags 
any

# HTTPS port
pass in log on $int_if proto tcp from $int_net to any port https

# ping
pass in log on $int_if proto icmp from $int_net to any

# POP3s, IMAPs, SMTPs
pass in log on $int_if proto tcp from $int_net to !$int_if port { pop3s imaps 
465 }

# VPN passthru
pass in log on $int_if proto esp from $int_net to any
pass
 in log on $int_if proto { tcp udp } from $int_net to any port { isakmp 4500 }

# File sharing applications
pass in log on $int_if proto { tcp udp } from $int_net to any port socks

# Block RestrictedIPs
block in log on $int_if proto { tcp udp } from RestrictedIPs to any port { 
16667 socks }

# Apply AfterHours rules
anchor AfterHours

# End of Ruleset



Re: comixwall pf will not work

2008-07-07 Thread Diana Eichert

On Mon, 7 Jul 2008, Rainel Roflo wrote:


Good day I have successfully installed comixwall 4.2 on my machine but
its default pf rules wil l not allow me to connect to internet but if
I'm going to disable it I can connect to the internet, here is my
pf.conf after installing comixwall.

This is my first time installing OpenBSD and using pf as a firewall can
you help me setting up my pf rules.


First let me say you haven't installed OpenBSD, you installed something
based on OpenBSD.  My initial comment is why don't you ask the comixwall
builders?  Also, my opinion is you installed comixwall hoping it would
be an easier solution than installing OpenBSD.  I think you NEED to
read the OpenBSD documetation available on the main web page before you
start posting here.

Now that I'm done lecturing you.  You don't give us much to work with,
several things would be useful to have:
dmesg output
output of pfctl -nvf /etc.pf.conf

You would be better served to do a base install so you can develop an
understanding of how OpenBSD works.  It is a wonderful / powerful tool.
But as with most tools you need to have an understanding of how to use
the tool.

g.day



Re: Can't get KERN_NCHSTATS: Cannot allocate memory

2008-07-07 Thread Artur Grabowski
Your userland is out of sync with the kernel. That's bad, mmkay?

//art

Insan Praja SW [EMAIL PROTECTED] writes:

 Hi Misc@,
 on latest OpenBSD 4.4-beta (GENERIC.MP) #18: Mon Jul  7 08:40:47 WIT
 2008 AMD64 machine, while lookin' to my new favorite tool systat, on
 the  first page, I got the Can't get KERN_NCHSTATS: Cannot allocate
 memory.
 I wonder what happen, it's a 1GB Memory machine, on 4 juli snapshot,
 it  doesn't complain.
 As usual, here is the dmesg.

 OpenBSD 4.4-beta (GENERIC.MP) #18: Mon Jul  7 08:40:47 WIT 2008
 [EMAIL PROTECTED]:/usr/src/sys/arch/amd64/compile/GENERIC.MP
 real mem = 1051168768 (1002MB)
 avail mem = 1020350464 (973MB)
 mainbus0 at root
 bios0 at mainbus0: SMBIOS rev. 2.34 @ 0x3f6ee000 (78 entries)
 bios0: vendor FUJITSU SIEMENS // Phoenix Technologies Ltd. version
 5.00  R1.10.2151.A1 date 05/08/2006
 bios0: FUJITSU SIEMENS D2151-A1
 acpi0 at bios0: rev 2
 acpi0: tables DSDT FACP ASF! SSDT MCFG HPET APIC BOOT
 acpi0: wakeup devices PEXA(S4) PEXB(S4) PEXC(S4) PEXD(S4) PEXE(S4)
 USB1(S4) USB2(S4) USB3(S4) USB4(S4) USB5(S4) PCIH(S4) KEYB(
 S4) PS2M(S4) COM1(S1) COM2(S1)
 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: Intel(R) Pentium(R) D CPU 2.66GHz, 2660.43 MHz
 cpu0:
 FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,S
 SE3,MWAIT,DS-CPL,TM2,CNXT-ID,CX16,xTPR,NXE,LONG
 cpu0: 1MB 64b/line 8-way L2 cache
 cpu0: apic clock running at 133MHz
 cpu1 at mainbus0: apid 1 (application processor)
 cpu1: Intel(R) Pentium(R) D CPU 2.66GHz, 2660.18 MHz
 cpu1:
 FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,S
 SE3,MWAIT,DS-CPL,TM2,CNXT-ID,CX16,xTPR,NXE,LONG
 cpu1: 1MB 64b/line 8-way L2 cache
 ioapic0 at mainbus0 apid 2 pa 0xfec0, version 20, 24 pins
 acpiprt0 at acpi0: bus 0 (PCI0)
 acpiprt1 at acpi0: bus -1 (PEXA)
 acpiprt2 at acpi0: bus 3 (PEXB)
 acpiprt3 at acpi0: bus 5 (PEXC)
 acpiprt4 at acpi0: bus 7 (PEXD)
 acpiprt5 at acpi0: bus 9 (PEXE)
 acpiprt6 at acpi0: bus 11 (PCIH)
 acpicpu0 at acpi0: FVS, 2667, 1862 MHz
 acpicpu1 at acpi0: FVS, 2667, 1862 MHz
 acpibtn0 at acpi0: PWRB
 pci0 at mainbus0 bus 0: configuration mode 1
 pchb0 at pci0 dev 0 function 0 Intel 82945G Host rev 0x02
 vga1 at pci0 dev 2 function 0 Intel 82945G Video rev 0x02
 wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
 wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
 agp0 at vga1: aperture at 0xe000, size 0x1000
 azalia0 at pci0 dev 27 function 0 Intel 82801GB HD Audio rev 0x01:
 apic  2 int 18 (irq 9)
 azalia0: codec[s]: Realtek ALC260
 audio0 at azalia0
 ppb0 at pci0 dev 28 function 0 Intel 82801GB PCIE rev 0x01: apic 2
 int  17 (irq 11)
 pci1 at ppb0 bus 3
 ppb1 at pci0 dev 28 function 1 Intel 82801GB PCIE rev 0x01: apic 2
 int  16 (irq 11)
 pci2 at ppb1 bus 5
 bge0 at pci2 dev 0 function 0 Broadcom BCM5751 rev 0x01, BCM5750 A1
 (0x4001): apic 2 int 17 (irq 11), address 00:30:05:c9:79
 :df
 brgphy0 at bge0 phy 1: BCM5750 10/100/1000baseT PHY, rev. 0
 ppb2 at pci0 dev 28 function 2 Intel 82801GB PCIE rev 0x01: apic 2
 int  18 (irq 9)
 pci3 at ppb2 bus 7
 ppb3 at pci0 dev 28 function 3 Intel 82801GB PCIE rev 0x01: apic 2
 int  19 (irq 9)
 pci4 at ppb3 bus 9
 uhci0 at pci0 dev 29 function 0 Intel 82801GB USB rev 0x01: apic 2
 int  23 (irq 11)
 uhci1 at pci0 dev 29 function 1 Intel 82801GB USB rev 0x01: apic 2
 int  22 (irq 10)
 uhci2 at pci0 dev 29 function 2 Intel 82801GB USB rev 0x01: apic 2
 int  21 (irq 5)
 uhci3 at pci0 dev 29 function 3 Intel 82801GB USB rev 0x01: apic 2
 int  20 (irq 9)
 ehci0 at pci0 dev 29 function 7 Intel 82801GB USB rev 0x01: apic 2
 int  23 (irq 11)
 ehci0: timed out waiting for BIOS
 usb0 at ehci0: USB revision 2.0
 uhub0 at usb0 Intel EHCI root hub rev 2.00/1.00 addr 1
 ppb4 at pci0 dev 30 function 0 Intel 82801BA Hub-to-PCI rev 0xe1
 pci5 at ppb4 bus 11
 em0 at pci5 dev 5 function 0 Intel PRO/1000MT (82540EM) rev 0x02:
 apic 2  int 22 (irq 10), address 00:07:e9:0f:44:37
 rl0 at pci5 dev 7 function 0 D-Link Systems 530TX+ rev 0x10: apic 2
 int  21 (irq 5), address 00:11:95:63:48:63
 rlphy0 at rl0 phy 0: RTL internal PHY
 pcib0 at pci0 dev 31 function 0 Intel 82801GB LPC rev 0x01
 pciide0 at pci0 dev 31 function 2 Intel 82801GB SATA rev 0x01: DMA,
 channel 0 wired to compatibility, channel 1 wired to com
 patibility
 wd0 at pciide0 channel 0 drive 0: ST3160211AS
 wd0: 16-sector PIO, LBA48, 152627MB, 312581808 sectors
 wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 5
 atapiscsi0 at pciide0 channel 1 drive 1
 scsibus0 at atapiscsi0: 2 targets, initiator 7
 cd0 at scsibus0 targ 0 lun 0: TSSTcorp, DVD-ROM SH-D162D, SB00 ATAPI
 5/cdrom removable
 cd0(pciide0:1:1): using PIO mode 4, Ultra-DMA mode 2
 ichiic0 at pci0 dev 31 function 3 Intel 82801GB SMBus rev 0x01: apic
 2  int 19 (irq 9)
 iic0 

Re: Can't get KERN_NCHSTATS: Cannot allocate memory

2008-07-07 Thread Insan Praja SW
On Mon, 07 Jul 2008 21:32:08 +0700, Artur Grabowski [EMAIL PROTECTED]  
wrote:

Yup,
I just build ke userland and it turns out you're right :D
Thanks,

Insan

Your userland is out of sync with the kernel. That's bad, mmkay?

//art

Insan Praja SW [EMAIL PROTECTED] writes:


Hi Misc@,
on latest OpenBSD 4.4-beta (GENERIC.MP) #18: Mon Jul  7 08:40:47 WIT
2008 AMD64 machine, while lookin' to my new favorite tool systat, on
the  first page, I got the Can't get KERN_NCHSTATS: Cannot allocate
memory.
I wonder what happen, it's a 1GB Memory machine, on 4 juli snapshot,
it  doesn't complain.
As usual, here is the dmesg.

OpenBSD 4.4-beta (GENERIC.MP) #18: Mon Jul  7 08:40:47 WIT 2008
[EMAIL PROTECTED]:/usr/src/sys/arch/amd64/compile/GENERIC.MP
real mem = 1051168768 (1002MB)
avail mem = 1020350464 (973MB)
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.34 @ 0x3f6ee000 (78 entries)
bios0: vendor FUJITSU SIEMENS // Phoenix Technologies Ltd. version
5.00  R1.10.2151.A1 date 05/08/2006
bios0: FUJITSU SIEMENS D2151-A1
acpi0 at bios0: rev 2
acpi0: tables DSDT FACP ASF! SSDT MCFG HPET APIC BOOT
acpi0: wakeup devices PEXA(S4) PEXB(S4) PEXC(S4) PEXD(S4) PEXE(S4)
USB1(S4) USB2(S4) USB3(S4) USB4(S4) USB5(S4) PCIH(S4) KEYB(
S4) PS2M(S4) COM1(S1) COM2(S1)
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: Intel(R) Pentium(R) D CPU 2.66GHz, 2660.43 MHz
cpu0:
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,S
SE3,MWAIT,DS-CPL,TM2,CNXT-ID,CX16,xTPR,NXE,LONG
cpu0: 1MB 64b/line 8-way L2 cache
cpu0: apic clock running at 133MHz
cpu1 at mainbus0: apid 1 (application processor)
cpu1: Intel(R) Pentium(R) D CPU 2.66GHz, 2660.18 MHz
cpu1:
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,S
SE3,MWAIT,DS-CPL,TM2,CNXT-ID,CX16,xTPR,NXE,LONG
cpu1: 1MB 64b/line 8-way L2 cache
ioapic0 at mainbus0 apid 2 pa 0xfec0, version 20, 24 pins
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus -1 (PEXA)
acpiprt2 at acpi0: bus 3 (PEXB)
acpiprt3 at acpi0: bus 5 (PEXC)
acpiprt4 at acpi0: bus 7 (PEXD)
acpiprt5 at acpi0: bus 9 (PEXE)
acpiprt6 at acpi0: bus 11 (PCIH)
acpicpu0 at acpi0: FVS, 2667, 1862 MHz
acpicpu1 at acpi0: FVS, 2667, 1862 MHz
acpibtn0 at acpi0: PWRB
pci0 at mainbus0 bus 0: configuration mode 1
pchb0 at pci0 dev 0 function 0 Intel 82945G Host rev 0x02
vga1 at pci0 dev 2 function 0 Intel 82945G Video rev 0x02
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
agp0 at vga1: aperture at 0xe000, size 0x1000
azalia0 at pci0 dev 27 function 0 Intel 82801GB HD Audio rev 0x01:
apic  2 int 18 (irq 9)
azalia0: codec[s]: Realtek ALC260
audio0 at azalia0
ppb0 at pci0 dev 28 function 0 Intel 82801GB PCIE rev 0x01: apic 2
int  17 (irq 11)
pci1 at ppb0 bus 3
ppb1 at pci0 dev 28 function 1 Intel 82801GB PCIE rev 0x01: apic 2
int  16 (irq 11)
pci2 at ppb1 bus 5
bge0 at pci2 dev 0 function 0 Broadcom BCM5751 rev 0x01, BCM5750 A1
(0x4001): apic 2 int 17 (irq 11), address 00:30:05:c9:79
:df
brgphy0 at bge0 phy 1: BCM5750 10/100/1000baseT PHY, rev. 0
ppb2 at pci0 dev 28 function 2 Intel 82801GB PCIE rev 0x01: apic 2
int  18 (irq 9)
pci3 at ppb2 bus 7
ppb3 at pci0 dev 28 function 3 Intel 82801GB PCIE rev 0x01: apic 2
int  19 (irq 9)
pci4 at ppb3 bus 9
uhci0 at pci0 dev 29 function 0 Intel 82801GB USB rev 0x01: apic 2
int  23 (irq 11)
uhci1 at pci0 dev 29 function 1 Intel 82801GB USB rev 0x01: apic 2
int  22 (irq 10)
uhci2 at pci0 dev 29 function 2 Intel 82801GB USB rev 0x01: apic 2
int  21 (irq 5)
uhci3 at pci0 dev 29 function 3 Intel 82801GB USB rev 0x01: apic 2
int  20 (irq 9)
ehci0 at pci0 dev 29 function 7 Intel 82801GB USB rev 0x01: apic 2
int  23 (irq 11)
ehci0: timed out waiting for BIOS
usb0 at ehci0: USB revision 2.0
uhub0 at usb0 Intel EHCI root hub rev 2.00/1.00 addr 1
ppb4 at pci0 dev 30 function 0 Intel 82801BA Hub-to-PCI rev 0xe1
pci5 at ppb4 bus 11
em0 at pci5 dev 5 function 0 Intel PRO/1000MT (82540EM) rev 0x02:
apic 2  int 22 (irq 10), address 00:07:e9:0f:44:37
rl0 at pci5 dev 7 function 0 D-Link Systems 530TX+ rev 0x10: apic 2
int  21 (irq 5), address 00:11:95:63:48:63
rlphy0 at rl0 phy 0: RTL internal PHY
pcib0 at pci0 dev 31 function 0 Intel 82801GB LPC rev 0x01
pciide0 at pci0 dev 31 function 2 Intel 82801GB SATA rev 0x01: DMA,
channel 0 wired to compatibility, channel 1 wired to com
patibility
wd0 at pciide0 channel 0 drive 0: ST3160211AS
wd0: 16-sector PIO, LBA48, 152627MB, 312581808 sectors
wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 5
atapiscsi0 at pciide0 channel 1 drive 1
scsibus0 at atapiscsi0: 2 targets, initiator 7
cd0 at scsibus0 targ 0 lun 0: TSSTcorp, DVD-ROM SH-D162D, SB00 ATAPI
5/cdrom removable
cd0(pciide0:1:1): using PIO mode 4, Ultra-DMA mode 2
ichiic0 at pci0 dev 31 function 3 Intel 

Re: about dhcpd and carp device

2008-07-07 Thread Imre Oolberg

Richard Daemon wrote:


I'm just curious, why run dhcpd on a carp interface? What's the reason
for wanting to do this?



If you point to the fact that since dhcpd is a service which from the 
client's point of view does not run on fixed ip address but rather so to 
say in a broadcast domain and when client shoots it's request 
broadcasting it it doesnt matter much by itself from what specific ip 
address the answer comes from, then it is also my understanding.


But my intent to run dhcpd on carp interface comes from indirect reason 
to not have corresponding physical interface an ip address configured to 
it. I did some testing and found out that if carp interface's physical 
interface doesnt have ip address configured then packets that left have 
carp's address as src address, otherwise they have physical interface's 
ip address as src. True, it aint hard to apply some pf and fix src 
addreses. But if i am not overlooking something here then it seems to me 
more straitforward to not configure ip address to physical interface and 
have src ip addresses set without need to mend them with pf.



Best regards,
Imre



Re: comixwall pf will not work

2008-07-07 Thread STeve Andre'
On Monday 07 July 2008 09:50:07 Diana Eichert wrote:
 On Mon, 7 Jul 2008, Rainel Roflo wrote:
  Good day I have successfully installed comixwall 4.2 on my machine but
  its default pf rules wil l not allow me to connect to internet but if
  I'm going to disable it I can connect to the internet, here is my
  pf.conf after installing comixwall.
 
  This is my first time installing OpenBSD and using pf as a firewall can
  you help me setting up my pf rules.

 First let me say you haven't installed OpenBSD, you installed something
 based on OpenBSD.  My initial comment is why don't you ask the comixwall
 builders?  Also, my opinion is you installed comixwall hoping it would
 be an easier solution than installing OpenBSD.  I think you NEED to
 read the OpenBSD documetation available on the main web page before you
 start posting here.

 Now that I'm done lecturing you.  You don't give us much to work with,
 several things would be useful to have:
 dmesg output
 output of pfctl -nvf /etc.pf.conf

 You would be better served to do a base install so you can develop an
 understanding of how OpenBSD works.  It is a wonderful / powerful tool.
 But as with most tools you need to have an understanding of how to use
 the tool.

 g.day

Beyond what Diana said, which was excellent, go and install OpenBSD.
The best that one of these clones can do is 1) not screw up, 2) Add
some feature which could likely have been added to OpenBSD.  You're
trusting the comixwall folks to do things *right*.  I'm not trying to
cast them in a bad light, but a certain amount of paranoia when doing
security stuff is a good thing.

Go get the real thing and learn that.

--STeve Andre'



Re: Mark messages in /var/log/message

2008-07-07 Thread Eric Furman
On Mon, 7 Jul 2008 06:30:04 -0300, Daniel Bareiro
 please. I hope that with this is openbsd - we have manpages that are
 useful you have not meant that manpages of GNU/Linux is not useful. We
 must be brothers :-D

Yes, they are brothers. With Linux being the sloppy lazy brother who
has no job and lives in mom's basement. :)
(but he is real popular!!)
And actually yes, they are not useful.
I've found Linux manpages to be mostly useless.



ifstated recipe for down - up

2008-07-07 Thread Chris Cappuccio
does anyone have an ifstated.conf that will turn an interface 'up' when it goes 
down ?

i seem to be unable to put together any working combination of commands to do 
this.  i always end up with something that either does nothing, or constantly 
runs 'ifconfig if up' in a fit of sheer insanity



Re: OpenBSD and iSCSI support

2008-07-07 Thread Denis Fondras

Eventually.

I started writing the qli driver but have not had time to finish that.

I also am planning to do a software initiator/target using softraid
however that is further out.

*sigh* so much code so little time... 


Thank you for the answer.

Could you share what you've done please ?

Denis



OpenBSD 4.3 on IBM HS20 Blade

2008-07-07 Thread Marian Hettwer
Hi there,

I succesfully installed OpenBSD 4.3 on above mentioned blade, using pxeboot
and bsd.rd
Everything went fine.
But after rebooting, the kernel crashes with some weird ACPI stuff.
Unluckily this bloody IBM blade has no serial console access, so all I can
provide is a screenshot:
http://crivens.kernel32.de/~rabauke/OpenBSD/acpi-blade-crash.jpg

Any ideas anybody?
I really do wonder why it was no problem to boot the bsd.rd image, but is
to boot the /bsd one afterwards. Odd...

any help appreciated.

Cheers,
Marian

PS.: Please CC me, 'cause I'm not subscribed (I was... but somehow I am not
anymore...)



Re: OpenBSD and iSCSI support

2008-07-07 Thread Marco Peereboom
What part isn't clear?

On Mon, Jul 07, 2008 at 08:18:51PM +0200, Denis Fondras wrote:
 Eventually.

 I started writing the qli driver but have not had time to finish that.

 I also am planning to do a software initiator/target using softraid
 however that is further out.

 *sigh* so much code so little time... 

 Thank you for the answer.

 Could you share what you've done please ?

 Denis



terminal chat + openssl?

2008-07-07 Thread Pau
Hi,

I am looking for a terminal (i.e. non-x) chat programme which could
also work with openssl, encrypting the text. Something in the lines of
talk but over the internet (no only locally) and using openssl

Do you know of any? I have googled a bit and found nothing...

Pau



failover trunk(4) problem

2008-07-07 Thread Aaron Stellman
Hello misc@,
I decided to try out trunk(4) as shown in the last example of the
trunk(4) manual page; here is the related configuration:

[EMAIL PROTECTED] ~] cat /etc/hostname.iwn0 
 
wpa wpapsk
0 nwid \
 chan 1 media autoselect mode 11g
up
[EMAIL PROTECTED] ~] cat /etc/hostname.em0  
 
lladdr 00:xx:xx:03:b1:59 up
[EMAIL PROTECTED] ~] cat /etc/hostname.trunk0   
 
dhcp trunkproto failover trunkport em0 trunkport iwn0
rtsol

The scenario is that em0 is a master port and iwn0 is a failover port so
that when I am at my desk I use em0, and when I need to be mobile,
trunk0 switches to iwn0. 

The problem is that when I boot up my laptop without cat5 plugged in
to the em0 (master), dhcp can't acquire the address; even though iwn0 is
connected. I assume that trunk0 must notice that status of em0 is 'no
carrier' and immediately switch to the 'active' iwn0 to acquire the lease.
In fact I tcpdump(8)ed both iwn0 and em0 while dhclient(8)ing trunk0, and 
didn't see packets coming out of iwn0. 

Note, I make sure both iwn0 and em0 have same lladdr in
order to make sure rtsol operates properly during IPV6 autoconf(I want
to make sure ipv6 connectivity remains intact if master port goes down). 
I also tried without modified lladdr, and this mis-behavior didn't
change.

Other than this problem, everything works as expected. If laptop boots
up with em0 (master) plugged in, it properly acquires dhcp lease and
then works fine. If i take the cable out, trunk(0) immediately switches
to failover port and keeps operating properly.

I had a thought that it may be wpa related, but I tried the same
scenario with open Access Point, and nothing really changed.

here is the dmesg:
please excuse the 'GAMMA' kernel, it's just a GENERIC.MP + inteldrm
enabled.

OpenBSD 4.4-beta (GAMMA) #15: Sun Jul  6 20:00:30 PDT 2008
[EMAIL PROTECTED]:/usr/src/sys/arch/amd64/compile/GAMMA
real mem = 2091036672 (1994MB)
avail mem = 2030231552 (1936MB)
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.4 @ 0xe0010 (73 entries)
bios0: vendor LENOVO version 7LETB9WW (2.19 ) date 06/06/2008
bios0: LENOVO 7658CTO
acpi0 at bios0: rev 2
acpi0: tables DSDT FACP SSDT ECDT TCPA APIC MCFG HPET SLIC BOOT ASF! SSDT SSDT 
SSDT SSDT
acpi0: wakeup devices LID_(S3) SLPB(S3) LURT(S3) DURT(S3) IGBE(S4) EXP0(S4) 
EXP1(S4) EXP2(S4) EXP3(S4) EXP4(S4) PCI1(S4) USB0(S3) USB1(S3) USB2(S3) 
USB3(S3) USB4(S3) EHC0(S3) EHC1(S3) HDEF(S4)
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: Intel(R) Core(TM)2 Duo CPU T8300 @ 2.40GHz, 2394.37 MHz
cpu0: 
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,SSE3,MWAIT,DS-CPL,VMX,EST,TM2,CX16,xTPR,NXE,LONG
cpu0: 3MB 64b/line 8-way L2 cache
cpu0: apic clock running at 199MHz
cpu1 at mainbus0: apid 1 (application processor)
cpu1: Intel(R) Core(TM)2 Duo CPU T8300 @ 2.40GHz, 2394.00 MHz
cpu1: 
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,SSE3,MWAIT,DS-CPL,VMX,EST,TM2,CX16,xTPR,NXE,LONG
cpu1: 3MB 64b/line 8-way L2 cache
ioapic0 at mainbus0 apid 1 pa 0xfec0, version 20, 24 pins
ioapic0: misconfigured as apic 2, remapped to apid 1
acpihpet0 at acpi0: 14318179 Hz
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus -1 (AGP_)
acpiprt2 at acpi0: bus 2 (EXP0)
acpiprt3 at acpi0: bus 3 (EXP1)
acpiprt4 at acpi0: bus 4 (EXP2)
acpiprt5 at acpi0: bus 5 (EXP3)
acpiprt6 at acpi0: bus 13 (EXP4)
acpiprt7 at acpi0: bus 21 (PCI1)
acpiec0 at acpi0
acpicpu0 at acpi0: C3, C2, C1, PSS
acpicpu1 at acpi0: C3, C2, C1, PSS
acpitz0 at acpi0: critical temperature 127 degC
acpitz1 at acpi0: critical temperature 100 degC
acpibtn0 at acpi0: LID_
acpibtn1 at acpi0: SLPB
acpibat0 at acpi0: BAT0 model 42T4530 serial   483 type LION oem SANYO
acpibat1 at acpi0: BAT1 not present
acpiac0 at acpi0: AC unit online
acpithinkpad0 at acpi0
acpidock at acpi0 not configured
acpivideo at acpi0 not configured
acpivideo at acpi0 not configured
cpu0: Enhanced SpeedStep 2394 MHz: speeds: 2401, 2400, 2000, 1600, 1200, 800 MHz
pci0 at mainbus0 bus 0: configuration mode 1
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)
agp0 at vga1: aperture at 0xe000, size 0x1000
inteldrm0 at vga1
info: [drm] Intel i965GM (unit 0)
info: [drm] AGP at 0xe000 256MB
info: [drm] Initialized i915 1.6.0 20080312
Intel GM965 Video rev 0x0c at pci0 dev 2 function 1 not configured
em0 at pci0 dev 25 function 0 Intel ICH8 IGP M AMT rev 0x03: apic 1 int 20 
(irq 11), address 

Multiple PKG_PATH query

2008-07-07 Thread Edd Barrett

Hi,

I have two package paths set up. OpenBSD official and openbsd-stable 
(openbsd.rutgers.edu).


I get some 404's from rutgers, but I wonder why. I has clearly looked up 
a pkg on the main openbsd server and is then looking on the other for 
the same package:


thinky% sudo pkg_add -i terminus-font
Error from 
http://openbsd.rutgers.edu/4.3-stable/i386/terminus-font-4.20p0.tgz:

ftp: Error retrieving file: 404 Not Found
Error from 
http://openbsd.rutgers.edu/4.3-stable/i386/terminus-font-4.20p0.tgz:

ftp: Error retrieving file: 404 Not Found
Error from 
http://openbsd.rutgers.edu/4.3-stable/i386/terminus-font-4.20p0.tgz:

ftp: Error retrieving file: 404 Not Found
Error from 
http://openbsd.rutgers.edu/4.3-stable/i386/terminus-font-4.20p0.tgz:

ftp: Error retrieving file: 404 Not Found
Error from 
http://openbsd.rutgers.edu/4.3-stable/i386/terminus-font-4.20p0.tgz:

ftp: Error retrieving file: 404 Not Found
Error from 
http://openbsd.rutgers.edu/4.3-stable/i386/terminus-font-4.20p0.tgz:

ftp: Error retrieving file: 404 Not Found
terminus-font-4.20p0: complete 


You may wish to update your font path for /usr/local/lib/X11/fonts/terminus


It doesnt seem to break anything, but i just wonder
--

Best Regards
Edd

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



Re: how to undelete?

2008-07-07 Thread macintoshzoom
Which hex editor do you advise?
Should I have to umount the partition before?
the partition is 40 GB size on a secondary disk, OpenBSD old slice,
should I need at least such space (/tmp ?) to open it on the hex editor
from my OpenBSD 4.3?

Thanks!

Die Gestalt wrote:
 Just open your disk in a hex editor and look for your data, it should be here.



Re: terminal chat + openssl?

2008-07-07 Thread Maxime DERCHE
It's not OpenSSL, but you should look at SILC.
http://www.silcnet.org

SILC Client, SILC Server, and the SILC plugin for IRSSI are in the ports.

On Mon, 7 Jul 2008 20:43:13 +0200
Pau [EMAIL PROTECTED] wrote:

 Hi,
 
 I am looking for a terminal (i.e. non-x) chat programme which could
 also work with openssl, encrypting the text. Something in the lines of
 talk but over the internet (no only locally) and using openssl
 
 Do you know of any? I have googled a bit and found nothing...
 
 Pau



trouble talking to serial port

2008-07-07 Thread Anthony Roberts
I'm working with a Portwell NAR-5520 (dmesg follows). These machines have
an LCD on the front that uses a serial port to talk to the OS. I've been
having trouble with these:

# stty 2400  /dev/tty01
...hangs forever...
^Cksh: cannot open /dev/tty01: Interrupted system call
# stty -f /dev/tty01 2400
# stty -f /dev/tty01
speed 19200 baud;
lflags: echoe echoke echoctl
cflags: cs8 -parenb
# python
Python 2.5.2 (r252:60911, Mar 10 2008, 16:28:59)
[GCC 3.3.5 (propolice)] on openbsd4
Type help, copyright, credits or license for more information.
 f=open(/dev/tty01, w)
...hangs forever...
^CTraceback (most recent call last):
  File stdin, line 1, in module
KeyboardInterrupt

This same stuff works fine running Linux on the same hardware:

[EMAIL PROTECTED]:~# stty 2400  /dev/ttyS1
[EMAIL PROTECTED]:~# stty  /dev/ttyS1
speed 2400 baud; line = 0;
min = 1; time = 0;
-brkint -icrnl -imaxbel
-opost
-isig -icanon

I can also write messages to the LCD from Linux.

Both OSes detect the same hardware for the serial ports:

OpenBSD:
# dmesg | grep pccom
pccom0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo
pccom0: console
pccom1 at isa0 port 0x2f8/8 irq 3: ns16550a, 16 byte fifo

Linux:
# dmesg | grep 16550A
[   47.459103] serial8250: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
[   47.495182] serial8250: ttyS1 at I/O 0x2f8 (irq = 3) is a 16550A
[   47.531631] 00:06: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
[   47.565162] 00:07: ttyS1 at I/O 0x2f8 (irq = 3) is a 16550A

In both cases, I'm using pccom0/tty00/ttyS0 as a serial console. If I
stty com1 2400 for OpenBSD at the boot prompt, it sets com0 to 2400 and
I get gibberish on the console until I set my terminal app to 2400.

Does anyone have any suggestions? I'm kinda stumped.

Thanks,

Anthony

OpenBSD 4.3 (GENERIC.MP) #5: Tue May  6 13:34:02 MDT 2008
[EMAIL PROTECTED]:/usr/src/sys/arch/i386/compile/GENERIC.MP
cpu0: Intel(R) Core(TM)2 CPU 4300 @ 1.80GHz (GenuineIntel 686-class)
1.81 GHz
cpu0:
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,SSE3,MWAIT,DS-CPL,EST,TM2,CX16,xTPR
real mem  = 1063743488 (1014MB)
avail mem = 1020473344 (973MB)
mainbus0 at root
bios0 at mainbus0: AT/286+ BIOS, date 03/05/08, BIOS32 rev. 0 @ 0xfa710,
SMBIOS rev. 2.2 @ 0xf (40 entries)
bios0: vendor Phoenix Technologies, LTD version 6.00 PG date 03/05/2008
acpi0 at bios0: rev 0
acpi0: tables DSDT FACP MCFG APIC
acpi0: wakeup devices PEX0(S5) PEX1(S5) PEX2(S5) PEX3(S5) PEX4(S5)
PEX5(S5) HUB0(S5) UAR1(S5) UAR2(S5) USB0(S1) USB1(S1) USB2(S1) USB3(S1)
USBE(S1) AC97(S5) AZAL(S5) 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 200MHz
cpu1 at mainbus0: apid 1 (application processor)
cpu1: Intel(R) Core(TM)2 CPU 4300 @ 1.80GHz (GenuineIntel 686-class)
1.81 GHz
cpu1:
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,SSE3,MWAIT,DS-CPL,EST,TM2,CX16,xTPR
ioapic0 at mainbus0: apid 4 pa 0xfec0, version 20, 24 pins
ioapic0: misconfigured as apic 0, remapped to apid 4
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus 1 (PEX0)
acpiprt2 at acpi0: bus 2 (PEX1)
acpiprt3 at acpi0: bus 3 (PEX2)
acpiprt4 at acpi0: bus 4 (PEX3)
acpiprt5 at acpi0: bus -1 (PEX4)
acpiprt6 at acpi0: bus -1 (PEX5)
acpiprt7 at acpi0: bus 5 (HUB0)
acpicpu0 at acpi0
acpicpu1 at acpi0
acpitz0 at acpi0: critical temperature 60 degC
acpibtn0 at acpi0: PWRB
bios0: ROM list: 0xc/0xac00! 0xcc000/0x1000 0xef000/0x1000!
pci0 at mainbus0 bus 0: configuration mode 1 (no bios)
pchb0 at pci0 dev 0 function 0 Intel 82945G Host rev 0x02
agp0 at pchb0: aperture at 0xd000, size 0x1000
vga1 at pci0 dev 2 function 0 Intel 82945G Video rev 0x02
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
ppb0 at pci0 dev 28 function 0 Intel 82801GB PCIE rev 0x01: apic 4 int
16 (irq 9)
pci1 at ppb0 bus 1
em0 at pci1 dev 0 function 0 Intel PRO/1000MT (82573L) rev 0x00: apic 4
int 16 (irq 9), address 00:90:fb:11:75:9e
ppb1 at pci0 dev 28 function 1 Intel 82801GB PCIE rev 0x01: apic 4 int
17 (irq 10)
pci2 at ppb1 bus 2
em1 at pci2 dev 0 function 0 Intel PRO/1000MT (82573L) rev 0x00: apic 4
int 17 (irq 10), address 00:90:fb:11:75:9f
ppb2 at pci0 dev 28 function 2 Intel 82801GB PCIE rev 0x01: apic 4 int
18 (irq 5)
pci3 at ppb2 bus 3
em2 at pci3 dev 0 function 0 Intel PRO/1000MT (82573L) rev 0x00: apic 4
int 18 (irq 5), address 00:90:fb:11:75:a0
ppb3 at pci0 dev 28 function 3 Intel 82801GB PCIE rev 0x01: apic 4 int
19 (irq 11)
pci4 at ppb3 bus 4
em3 at pci4 dev 0 function 0 Intel PRO/1000MT (82573L) rev 0x00: apic 4
int 19 (irq 11), address 00:90:fb:11:75:a1
uhci0 at pci0 dev 29 function 0 Intel 82801GB USB rev 0x01: apic 4 int
23 (irq 10)
uhci1 at pci0 dev 29 function 1 Intel 82801GB USB rev 0x01: apic 4 int
19 (irq 11)
uhci2 at pci0 

Re: An Introduction to OpenBSD

2008-07-07 Thread Francisco Valladolid Hdez.
Hi.

--- raven [EMAIL PROTECTED] wrote:

 Hi guys,
 i want to make a presentation to introduce OpenBSD
 into the public of my 
 university. Someone can give me ideas to capture the
 public? Most of my 
 public work with linux, so i think i have to spent
 some words into the 
 difference between linux and OBSD.
 Ideas?

I believe that you must be concentrate in a real
objective talk for theys.

You never enter in a discussion about the if openbsd
is better o linux is worst, only speak about the how
OpenBSD can help to be productive in the server o
development environment, The integrated security and
the high quality code. 

No comparison can be in the desktop field, OpenBSD is
not recommended widely in this field, I believe Linux
is better (no discussion here).

Maybe some people (including me) are using OpenBSD in
development enviroment, using some lite wm (awesome,
cwm, fvwm, etc) with minimal tools (some included in
base) and programming languages.

Concentrate in speaking in the OpenBSD features only,
goals.

With OpenBSD you can be productive from the after
installation, include wireless integrated support,
ligth windows managers, perl (favorite), and many
more.

Regards.
ficovh 



 Francesco



iBook

2008-07-07 Thread Eric DILLENSEGER

Hello,

I'm trying to install OpenBSD on a clamshell-like iBook but I can't get 
it to boot bsd.rd.
I have ofwboot and bsd.rd at the root of the disk, inside Open Firmware 
I type boot hd:,ofwboot and it loads the boot loader but when I try to 
'boot bsd.rd' I get a 'Inappropriate file type or format.
The cdrom drive seems to be broken and doesn't recognize any cd so I'm 
kinda stuck.

What could I be missing?



Re: iBook

2008-07-07 Thread Dale Rahn
On Mon, Jul 07, 2008 at 10:29:41PM +0200, Eric DILLENSEGER wrote:
 Hello,
 
 I'm trying to install OpenBSD on a clamshell-like iBook but I can't get 
 it to boot bsd.rd.
 I have ofwboot and bsd.rd at the root of the disk, inside Open Firmware 
 I type boot hd:,ofwboot and it loads the boot loader but when I try to 
 'boot bsd.rd' I get a 'Inappropriate file type or format.
 The cdrom drive seems to be broken and doesn't recognize any cd so I'm 
 kinda stuck.
 What could I be missing?
 

Sometime before 4.2 was released the OpenBSD/macppc bootloader was modified
and accidentally disabled the ability to load a kernel from an HFS filesystem.
This was not discovered until after 4.3 was released. It should be fixed
by the time 4.4 is released.

In the meantime, either use the .iso file or try to use a 4.0 or 4.1 ofwboot
to load the kernel.

Dale Rahn   [EMAIL PROTECTED]



Re: squidguard

2008-07-07 Thread LinuxUser
sorry , i lacked information about pf .

in /etc/pf.conf
rdr on $int_if inet proto { tcp, udp }  from any to any port www -
127.0.0.1 port 3128
-
 takesima



Re: iBook

2008-07-07 Thread Jorge Medina
On Mon, Jul 7, 2008 at 4:58 PM, Dale Rahn [EMAIL PROTECTED] wrote:
 On Mon, Jul 07, 2008 at 10:29:41PM +0200, Eric DILLENSEGER wrote:
 Hello,

 I'm trying to install OpenBSD on a clamshell-like iBook but I can't get
 it to boot bsd.rd.
 I have ofwboot and bsd.rd at the root of the disk, inside Open Firmware
 I type boot hd:,ofwboot and it loads the boot loader but when I try to
 'boot bsd.rd' I get a 'Inappropriate file type or format.
 The cdrom drive seems to be broken and doesn't recognize any cd so I'm
 kinda stuck.
 What could I be missing?


 Sometime before 4.2 was released the OpenBSD/macppc bootloader was modified
 and accidentally disabled the ability to load a kernel from an HFS
filesystem.
 This was not discovered until after 4.3 was released. It should be fixed
 by the time 4.4 is released.

 In the meantime, either use the .iso file or try to use a 4.0 or 4.1
ofwboot
 to load the kernel.

 Dale Rahn   [EMAIL PROTECTED]



OT: it's possible install OpenBSD without HFS with ofwboot or ofwboot
in the UFS partition?, because I want pull out the OS X and install
only OpenBSD in a powerbook/PPC

--
Jorge Andris Medina Oliva.
Evolve or die!

Important programming truths
---
If it compiles, it works.
If it compiles, it's correct.
If it runs, it doesn't have any bugs.
If it doesn't have any immediately obvious bugs, it's perfect.
If a bug doesn't show, it doesn't exist.
If it seems to work, it works.
Doing something right is easy. Avoiding errors only takes a bit of
concentration.
The shorter the source code, the faster the program.
It's obvious how to optimize a program.
Programmers don't make mistakes.
Run-time errors don't occur.
Users don't make mistakes.
I don't make mistakes.
Errors of any kind are rare.
Error handling can be done in version 2.
Slowness can be fixed in hardware.
Trivial changes of any kind don't need to be tested.
The first approach, idea, or version is always the best.
Demonstrating for clients is the best debugging method.



Re: ifstated recipe for down - up

2008-07-07 Thread Vijay Sankar
On July 7, 2008 12:52:50 pm Chris Cappuccio wrote:
 does anyone have an ifstated.conf that will turn an interface 'up' when it
 goes down ?

 i seem to be unable to put together any working combination of commands to
 do this.  i always end up with something that either does nothing, or
 constantly runs 'ifconfig if up' in a fit of sheer insanity

I am assuming you have read man pages for ifstated.conf etc. I found the -n 
and -v flags very useful while trying to set this up (initially with OpenBSD 
3.7 or 3.8, I think -- it was a while ago but has worked without any problems 
on each upgrade). If someone can suggest improvements to this, I will be 
grateful as well.

I use ifstated to make sure that my pppoe link is up and it is set up as 
follows.

In /etc/rc.conf.local, I have 

ifstated_flags=

My /etc/ifstated.conf looks like this.

init-state auto
pppoe_up = pppoe0.link.up
pppoe_down = pppoe0.link.down

state auto{
 if ($pppoe_up) set-state pppoe-up
 if ($pppoe_down) set-state pppoe-down
}

state pppoe-up{
 init{
 run logger pppoe up!
 run /etc/scripts/pppoe-up.sh
 }
 if ($pppoe_down) set-state pppoe-down
}

state pppoe-down{
 init{
 run logger pppoe down!
 run /etc/scripts/pppoe-down.sh
 }
 if ($pppoe_up) set-state pppoe-up
}

My /etc/scripts/pppoe-down.sh looks like this

/bin/sh /etc/netstart
run logger pppoe up!

My /etc/scripts/pppoe-up.sh looks like this

/sbin/pfctl -F states

Vijay

-- 
Vijay Sankar, M.Eng., P.Eng.
ForeTell Technologies Limited
59 Flamingo Avenue, Winnipeg, MB Canada R3J 0X6
Phone: +1 204 885 9535, E-Mail: [EMAIL PROTECTED]



Has anyone told BillG about OpenBSD?

2008-07-07 Thread Duncan Patton a Campbell
I ran across this:

http://gizmodo.com/5019516/classic-clips-bill-gates-chews-out-microsoft-over-xp

and was stricken with a horrible sense of dejavoodhu.

Dhu



Re: iBook

2008-07-07 Thread Don Hiatt
 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
 Of Jorge Medina
 Sent: Monday, July 07, 2008 2:17 PM
 OT: it's possible install OpenBSD without HFS with ofwboot or ofwboot
 in the UFS partition?, because I want pull out the OS X and install
 only OpenBSD in a powerbook/PPC


Yes. I've installed OpenBSD 4.3 on my Mac G4 400 PCI (Yikes!) using only
the MBR option during the install. You can then set the openfirmware to
automatically boot OpenBSD on startup. Now, if I can debug my crappy
ethernet
(bm0) and hard-drive problems I'll be all set. ;-)

Cheers!

don



Re: trouble talking to serial port

2008-07-07 Thread Brynet

Hi,

In this case, you need to use the callout device for the first serial 
port, /dev/cua00 in this case.


Good luck, see tty(4) or cua(4).



Re: trouble talking to serial port

2008-07-07 Thread Anthony Roberts
 In this case, you need to use the callout device for the first serial
 port, /dev/cua00 in this case.

 Good luck, see tty(4) or cua(4).

Hi,

Thanks for the response. :)

It looks like I was indeed supposed to use cua, and I can now get a file
descriptor. However, I'm still not able to set the baud rate, it's stuck
at 19200 whether I try to set it with tty01 or cua01. cua00 corresponds
with tty00, which is the serial console, so I shouldn't use that.

Thanks,

Anthony



Re: trouble talking to serial port

2008-07-07 Thread Anthony Roberts
 It looks like I was indeed supposed to use cua, and I can now get a file
 descriptor. However, I'm still not able to set the baud rate, it's stuck
 at 19200 whether I try to set it with tty01 or cua01. cua00 corresponds
 with tty00, which is the serial console, so I shouldn't use that.

BTW, using stty to set the baud rate for tty00/cua00 has no problems.
Exactly the same command lines for tty01/cua01 just don't work.



Re: failover trunk(4) problem

2008-07-07 Thread Aaron Stellman
Hello again,
This solves the problem, thanks to Matthew R. Dempsky.

Index: if_em.c
===
RCS file: /cvs/src/sys/dev/pci/if_em.c,v
retrieving revision 1.185
diff -p -u -r1.185 if_em.c
--- if_em.c 15 Jun 2008 16:37:00 -  1.185
+++ if_em.c 7 Jul 2008 22:59:37 -
@@ -1394,7 +1394,7 @@ em_update_link_status(struct em_softc *s
struct ifnet *ifp = sc-interface_data.ac_if;
 
if (E1000_READ_REG(sc-hw, STATUS)  E1000_STATUS_LU) {
-   if (sc-link_active == 0) {
+   if (ifp-if_link_state != LINK_STATE_UP) {
em_get_speed_and_duplex(sc-hw,
sc-link_speed,
sc-link_duplex);
@@ -1418,7 +1418,7 @@ em_update_link_status(struct em_softc *s
if_link_state_change(ifp);
}
} else {
-   if (sc-link_active == 1) {
+   if (ifp-if_link_state != LINK_STATE_DOWN) {
ifp-if_baudrate = sc-link_speed = 0;
sc-link_duplex = 0;
sc-link_active = 0;



Re: trouble talking to serial port

2008-07-07 Thread Philip Guenther
On Mon, Jul 7, 2008 at 4:43 PM, Anthony Roberts
[EMAIL PROTECTED] wrote:
 It looks like I was indeed supposed to use cua, and I can now get a file
 descriptor. However, I'm still not able to set the baud rate, it's stuck
 at 19200 whether I try to set it with tty01 or cua01. cua00 corresponds
 with tty00, which is the serial console, so I shouldn't use that.

I don't recall where this is documented, but terminal devices reset
their settings when the last fd open to them is closed.

# stty /dev/cua00 19200; stty /dev/cua00
speed 9600 baud;
lflags: echoe echoke echoctl
cflags: cs8 -parenb
# ( stty 19200; stty ) /dev/cua00
speed 19200 baud;
lflags: echoe echoke echoctl
cflags: cs8 -parenb
#

If you can't put the termios manipulation in the python script, then
you can do the open and stty in a shell script surrounding it.  Let's
say you need access to the real stdin from your python script.  In
that case, this snippet of shell would work:

#!/bin/sh
( stty 2400 3 ; python script-here ) 3/dev/cua01

That opens /dev/cua01 for read/write on fd 3, then runs stty 2400
with fd 3 dup'ed to fd  0 (so the stty sees the cua device), and then
runs the python script with the cua device still open on fd 3.  How to
access fd 3 from the script is up to you...


Philip Guenther



Re: trouble talking to serial port

2008-07-07 Thread Theo de Raadt
  It looks like I was indeed supposed to use cua, and I can now get a file
  descriptor. However, I'm still not able to set the baud rate, it's stuck
  at 19200 whether I try to set it with tty01 or cua01. cua00 corresponds
  with tty00, which is the serial console, so I shouldn't use that.
 
 I don't recall where this is documented, but terminal devices reset
 their settings when the last fd open to them is closed.

Let's simplify that:

All devices reset their settings when the last open to them is closed.

It is entirely obvious.  Otherwise, every application would have to
have a ton of reset code in it.  And that would be really stupid.



4.2 and 4.3 BIND: masters_list does not work with masters option

2008-07-07 Thread Jacob Yocom-Piatt
afaict as of BIND 9.3.2 use of an acl in the masters option was 
supported, e.g.


acl int_masters {
   10.0.0.1;
};

...

   zone somedomain.com {
   type slave;
   masters { int_masters; };
   file slave/internal/somedomain.com;
   };

but apparently named does not parse this and complains that it is

'unable to find masters list 'int_masters''

any clues as to what is going on here? i'm following the only explicit 
example i was able to find about this:


http://docs.hp.com/en/5992-3347/ch01s03.html

cheers,
jake



Re: 4.2 and 4.3 BIND: masters_list does not work with masters option

2008-07-07 Thread David Newman

On 7/7/08 4:44 PM, Jacob Yocom-Piatt wrote:
afaict as of BIND 9.3.2 use of an acl in the masters option was 
supported, e.g.


acl int_masters {
   10.0.0.1;
};

...

   zone somedomain.com {
   type slave;
   masters { int_masters; };
   file slave/internal/somedomain.com;
   };

but apparently named does not parse this and complains that it is

'unable to find masters list 'int_masters''

any clues as to what is going on here? 


Perhaps the missing quote marks around the ACL name?

This works for me:

acl internal-xfer {
10.0.0.93;
10.0.0.94;
};

acl trusted {
  10.0.0.0/8;
  localhost;
};

zone somedomain.com in {
type master;
file master/db.somedomain.com;
allow-query { trusted; };
allow-transfer { internal-xfer; };
};

dn



Re: OpenBSD 4.3 on IBM HS20 Blade

2008-07-07 Thread Ioan Nemes
marian,

try this:

boot boot -c
disable apm
disable acpi
quit

ioan



 Marian Hettwer [EMAIL PROTECTED] 08/07/2008 03:10 
Hi there,

I succesfully installed OpenBSD 4.3 on above mentioned blade, using pxeboot
and bsd.rd
Everything went fine.
But after rebooting, the kernel crashes with some weird ACPI stuff.
Unluckily this bloody IBM blade has no serial console access, so all I can
provide is a screenshot:
http://crivens.kernel32.de/~rabauke/OpenBSD/acpi-blade-crash.jpg

Any ideas anybody?
I really do wonder why it was no problem to boot the bsd.rd image, but is
to boot the /bsd one afterwards. Odd...

any help appreciated.

Cheers,
Marian

PS.: Please CC me, 'cause I'm not subscribed (I was... but somehow I am not
anymore...)




This e-mail is intended for the addressee(s) named and may contain
confidential and/or privileged information. If you are not the intended
recipient, please delete it immediately and notify the sender. Any views
expressed in this email are those of the individual sender except where the
sender expressly and with authority states them to be the views of Fairfield
City Council.



How to create more pseudo terminal ?

2008-07-07 Thread Dongsheng Song
OpenBSD create 62 pseudo terminals by default.

My server use authpf for 512+ users,
How to create more pseudo terminal ?

# sysctl kern.tty.maxptys=992
kern.tty.maxptys: 992 - 992
# sysctl kern.tty.nptys=512
sysctl: kern.tty.nptys: Operation not permitted

Thanks,

Dongsheng Song



Re: How to create more pseudo terminal ?

2008-07-07 Thread Philip Guenther
On Mon, Jul 7, 2008 at 9:05 PM, Dongsheng Song [EMAIL PROTECTED] wrote:
 OpenBSD create 62 pseudo terminals by default.

 My server use authpf for 512+ users,
 How to create more pseudo terminal ?

Using /dev/MAKEDEV.  As root:
   cd /dev
   i=0
   while (( ++i  16 )); do
 sh MAKEDEV pty$i
   done


Philip Guenther



Azalia - Realtek/0x0885 - got sound with headphone only yet.

2008-07-07 Thread guilherme m. schroeder
Hi,

Now, i have sound. I need to plug the headphone in the mic/input and set:

alemao:8$ mixerctl outputs.mix2=255
outputs.mix2: 127,127 - 192,192

But it's not too loud :/

Here's my dmesg with AZALIA_DEBUG and mixerctl/audioctl outputs.

I don't have outputs.master or outputs.volume or something like this.

If anyone have an idea to increase the sound or to enable sound in my
speaker (i played with all options in mixerctl, including outputs.mix,
input.usindac and all you can imagine, but no sound from speaker).
Using xmms if i try to raise the volume, results in nothing. MPlayer
too, using 9-0 keys, it just says 50% volume always.

mixerctl:

inputs.headphones=85,85
inputs.line2=85,85
inputs.line3=85,85
inputs.line4=85,85
inputs.line=85,85
inputs.mic=85,85
inputs.mix.headphones.=off
inputs.mix.headphones=120,120
inputs.mix.line.mute=off
inputs.mix.line2.mute=off
inputs.mix.line2=120,120
inputs.mix.line3.mute=off
inputs.mix.line3=120,120
inputs.mix.line4.mute=off
inputs.mix.line4=120,120
inputs.mix.line5.mute=off
inputs.mix.line5=120,120
inputs.mix.line6.mute=off
inputs.mix.line6=120
inputs.mix.line=120,120
inputs.mix.mic.mute=off
inputs.mix.mic=120,120
inputs.mix.speaker.mut=off
inputs.mix.speaker2.mu=off
inputs.mix.speaker2=120,120
inputs.mix.speaker=120,120
inputs.mix2.dac.mute=off
inputs.mix2.mix.mute=off
inputs.mix3.dac2.mute=off
inputs.mix3.mix.mute=off
inputs.mix4.dac3.mute=off
inputs.mix4.mix.mute=off
inputs.mix5.dac4.mute=off
inputs.mix5.mix.mute=off
inputs.mix6.headphones=off
inputs.mix6.line.mute=off
inputs.mix6.line2.mute=off
inputs.mix6.line3.mute=off
inputs.mix6.line4.mute=off
inputs.mix6.line5.mute=off
inputs.mix6.line6.mute=off
inputs.mix6.mic.mute=off
inputs.mix6.mix.mute=off
inputs.mix6.speaker.mu=off
inputs.mix6.speaker2.m=off
inputs.mix7.headphones=off
inputs.mix7.line.mute=off
inputs.mix7.line2.mute=off
inputs.mix7.line3.mute=off
inputs.mix7.line4.mute=off
inputs.mix7.line5.mute=off
inputs.mix7.line6.mute=off
inputs.mix7.mic.mute=off
inputs.mix7.mix.mute=off
inputs.mix7.speaker.mu=off
inputs.mix7.speaker2.m=off
inputs.mix8.headphones=off
inputs.mix8.line.mute=off
inputs.mix8.line2.mute=off
inputs.mix8.line3.mute=off
inputs.mix8.line4.mute=off
inputs.mix8.line5.mute=off
inputs.mix8.line6.mute=off
inputs.mix8.mic.mute=off
inputs.mix8.mix.mute=off
inputs.mix8.speaker.mu=off
inputs.mix8.speaker2.m=off
inputs.mix9.dac6.mute=off
inputs.mix9.mix.mute=off
inputs.speaker2=85,85
inputs.speaker=85,85
inputs.usingdac=02
outputs.headphones.boos=off
outputs.headphones.dir=output
outputs.headphones.mute=off
outputs.headphones.sour=mix3
outputs.line.boost=off
outputs.line.dir=output
outputs.line.mute=off
outputs.line.source=mix5
outputs.line2.boost=off
outputs.line2.dir=output
outputs.line2.mute=off
outputs.line2.source=mix2
outputs.line3.boost=off
outputs.line3.dir=output
outputs.line3.mute=off
outputs.line3.source=mix2
outputs.line4.boost=off
outputs.line4.dir=output
outputs.line4.mute=off
outputs.line4.source=mix2
outputs.mic.boost=off
outputs.mic.dir=output
outputs.mic.mute=off
outputs.mic.source=mix2
outputs.mix2=192,192
outputs.mix3=126,126
outputs.mix4=126,126
outputs.mix5=126,126
outputs.mix9=126,126
outputs.speaker.boost=off
outputs.speaker.dir=output
outputs.speaker.mute=off
outputs.speaker.source=mix2
outputs.speaker2.boost=off
outputs.speaker2.dir=output
outputs.speaker2.mute=off
outputs.speaker2.source=mix4
record.adc.mute=off
record.adc2.mute=off
record.adc2=125,125
record.adc3.mute=off
record.adc3=125,125
record.adc=125,125
record.usingadc=07

audioctl:

blocksize=8704
config=azalia0
encodings=slinear_le:16,slinear_le:16
full_duplex=0
fullduplex=0
hiwat=7
lowat=5
mode=play
monitor_gain=0
name=HD-Audio
output_muted=0
play.active=1
play.avail_ports=0x0
play.balance=32
play.block_size=8704
play.buffer_size=65536
play.channels=2
play.encoding=slinear_le
play.eof=0
play.error=0
play.errors=0
play.gain=127
play.open=1
play.pause=0
play.port=0x0
play.precision=16
play.rate=44100
play.samples=40221184
play.seek=55296
play.waiting=0
properties=full_duplex,independent
record.active=0
record.avail_ports=0x0
record.balance=32
record.block_size=9600
record.buffer_size=65536
record.channels=2
record.encoding=slinear_le
record.eof=0
record.error=0
record.errors=0
record.gain=127
record.open=0
record.pause=0
record.port=0x0
record.precision=16
record.rate=48000
record.samples=0
record.seek=0
record.waiting=0
version=1.0

dmesg with AZALIA_DEBUG:

OpenBSD 4.4-beta (GENERIC.MP) #4: Tue Jul  8 01:28:48 BRT 2008
[EMAIL PROTECTED]:/usr/src/sys/arch/amd64/compile/GENERIC.MP
real mem = 4245114880 (4048MB)
avail mem = 4122492928 (3931MB)
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.4 @ 0xe (43 entries)
bios0: vendor Apple Inc. version MB31.88Z.008E.B02.0803051832 date 03/05/08
bios0: Apple Inc. MacBook3,1
acpi0 at bios0: rev 0
acpi0: tables DSDT FACP HPET APIC MCFG ASF! SBST ECDT SSDT SSDT SSDT SSDT SSDT
acpi0: wakeup devices ADP1(S3) LID0(S3) ARPT(S3) GIGE(S3) UHC1(S3)
UHC2(S3) UHC3(S3) 

Re: Azalia - Realtek/0x0885 - got sound with headphone only yet.

2008-07-07 Thread guilherme m. schroeder
Here's the outputs in files, some characters messed up when i was pasting:

http://sacodelixo.com.br/~alemao/dmesg.txt
http://sacodelixo.com.br/~alemao/mixerctl.txt
http://sacodelixo.com.br/~alemao/audioctl.txt

Thanks.