growfs(8) -- FFS2 question

2008-12-23 Thread Aaron Stellman
Before I screw up my filesystem, I would like to see if it's safe to
proceed. I have a 1TB FFS2 partition, which I'm about to grow to ~1.5TB

original disklabel:
  a:   2097157167   63  4.2BSD   8192 655361 
   ^
  c:   39070310400  unused  0 0 

new disklabel:
  a:   3097157167   63  4.2BSD   8192 655361 
   ^
  c:   39070310400  unused  0 0 

now to growfs(8):

$ growfs -N sd0a  
new file systemsize is: 193572322 frags
Warning: 6118432 sector(s) cannot be allocated.
growfs: 1509296.2MB (3091038720 sectors) block size 65536, fragment size
8192
using 462 cylinder groups of 3266.88MB, 52270 blks, 104704
inodes.
super-block backups (for fsck -b #) at:
 2100836096(null) 2107526656(null) 2114217216(null) 2120907776(null)
2127598336(null)
 2134288896(null) 2140979456(null) -2147297280(null) -2140606720(null)
-2133916160(null)
 -2127225600(null) -2120535040(null) -2113844480(null) -2107153920(null)
-2100463360(null)
 -2093772800(null) -2087082240(null) -2080391680(null) -2073701120(null)
-2067010560(null)
 -206032(null) -2053629440(null) -2046938880(null) -2040248320(null)
-2033557760(null)
 -2026867200(null) -2020176640(null) -2013486080(null) -2006795520(null)
and so on

Looks quite suspicious to me -- please comment.


OpenBSD 4.4-current (GENERIC) #1636: Mon Dec 22 11:50:42 MST 2008
dera...@i386.openbsd.org:/usr/src/sys/arch/i386/compile/GENERIC
cpu0: Intel(R) Pentium(R) 4 CPU 2.60GHz ("GenuineIntel" 686-class) 2.61 GHz
cpu0: 
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,CNXT-ID,xTPR
real mem  = 2146201600 (2046MB)
avail mem = 2066993152 (1971MB)
mainbus0 at root
bios0 at mainbus0: AT/286+ BIOS, date 02/23/04, BIOS32 rev. 0 @ 0xf0010, SMBIOS 
rev. 2.3 @ 0xf04a0 (68 entries)
bios0: vendor American Megatrends Inc. version "080009" date 02/23/2004
bios0: ASUSTeK Computer Inc. P4P800
acpi0 at bios0: rev 0
acpi0: tables DSDT FACP APIC OEMB
acpi0: wakeup devices P0P4(S4) MC97(S4) USB1(S4) USB2(S4) USB3(S4) USB4(S4) 
EUSB(S4) PS2K(S4) PS2M(S4) ILAN(S4)
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
ioapic0 at mainbus0: apid 2 pa 0xfec0, version 20, 24 pins
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus 2 (P0P4)
acpiprt2 at acpi0: bus -1 (P0P2)
acpicpu0 at acpi0
acpibtn0 at acpi0: PWRB
bios0: ROM list: 0xc/0xf000! 0xcf000/0x2600
pci0 at mainbus0 bus 0: configuration mode 1 (bios)
pchb0 at pci0 dev 0 function 0 "Intel 82865G Host" rev 0x02
intelagp0 at pchb0
agp0 at intelagp0: aperture at 0xf800, size 0x400
ppb0 at pci0 dev 1 function 0 "Intel 82865G AGP" rev 0x02
pci1 at ppb0 bus 1
vga1 at pci1 dev 0 function 0 "NVIDIA GeForce 6600 GT AGP" rev 0xa2
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
uhci0 at pci0 dev 29 function 0 "Intel 82801EB/ER USB" rev 0x02: apic 2 int 16 
(irq 10)
uhci1 at pci0 dev 29 function 1 "Intel 82801EB/ER USB" rev 0x02: apic 2 int 19 
(irq 10)
uhci2 at pci0 dev 29 function 2 "Intel 82801EB/ER USB" rev 0x02: apic 2 int 18 
(irq 5)
uhci3 at pci0 dev 29 function 3 "Intel 82801EB/ER USB" rev 0x02: apic 2 int 16 
(irq 10)
ehci0 at pci0 dev 29 function 7 "Intel 82801EB/ER USB2" rev 0x02: apic 2 int 23 
(irq 11)
usb0 at ehci0: USB revision 2.0
uhub0 at usb0 "Intel EHCI root hub" rev 2.00/1.00 addr 1
ppb1 at pci0 dev 30 function 0 "Intel 82801BA Hub-to-PCI" rev 0xc2
pci2 at ppb1 bus 2
skc0 at pci2 dev 5 function 0 "3Com 3c940" rev 0x12, Yukon (0x1): apic 2 int 22 
(irq 5)
sk0 at skc0 port A: address 00:0e:a6:14:9a:5b
eephy0 at sk0 phy 0: 88E1011 Gigabit PHY, rev. 3
ami0 at pci2 dev 10 function 0 "Symbios Logic MegaRAID" rev 0x01: apic 2 int 22 
(irq 5)
ami0: LSI 523, 32b, FW 713S, BIOS vG121, 64MB RAM
ami0: 1 channels, 0 FC loops, 1 logical drives
scsibus0 at ami0: 40 targets, initiator 40
sd0 at scsibus0 targ 0 lun 0:  SCSI2 0/direct fixed
sd0: 1907730MB, 512 bytes/sec, 3907031040 sec total
scsibus1 at ami0: 16 targets, initiator 16
emu0 at pci2 dev 11 function 0 "Creative Labs SoundBlaster Audigy" rev 0x04: 
apic 2 int 23 (irq 11)
ac97: codec id 0x83847609 (SigmaTel STAC9721/23)
ac97: codec features 18 bit DAC, 18 bit ADC, SigmaTel 3D
audio0 at emu0
"Creative Labs SoundBlaster Audigy Digital" rev 0x04 at pci2 dev 11 function 1 
not configured
"Creative Labs Firewire" rev 0x04 at pci2 dev 11 function 2 not configured
ath0 at pci2 dev 12 function 0 "Atheros AR5212" rev 0x01: apic 2 int 20 (irq 5)
ath0: AR2414 7.9 phy 4.5 rf2413 5.6, FCC2A*, address 00:03:2f:3a:59:f7
xl0 at pci2 dev 13 function 0 "3Com 3c905 100Base-TX" rev 0x00: apic 2 int 21 
(irq 11), address 00:60:08:37:68:61
nsphy0 at xl0 phy 24: DP83840 10/100 PHY, rev. 1
ichpcib0 at pci0 dev 31 function 0 "Intel 82801EB/ER LPC" re

Re: ath AR5212 wpa?

2008-12-26 Thread Aaron Stellman
On Fri, Dec 26, 2008 at 11:56:21AM -0600, Abel Camarillo wrote:
> Is that true?
> 
> I'm using the last amd64 snapshot (20081224), and my ar5212 doesn't
> seems to work with wpa.
> 
> Even ath(4) says it doesn't work in wpa.
> 

what kind of crack are you smoking?

# ifconfig ath0 
ath0: flags=8863 mtu
1500
lladdr 00:40:96:xx:xx:xx
priority: 0
groups: wlan
media: IEEE802.11 autoselect (DS11 mode 11b)
status: active
ieee80211: nwid  chan 11 bssid 00:07:ef:aa:bb:08 96% wpapsk
0
wpaprotos wpa1,wpa2 wpaakms psk,802.1x wpaciphers tkip,ccmp
wpagroupcipher tkip



Re: Survey on the usage of IPv6

2009-01-30 Thread Aaron Stellman
On Fri, Jan 30, 2009 at 08:14:12PM +0200, Lars Nood??n wrote:
> Registration is a barrier.  What do you want to know?

there is no necessary registration -- click the top left button to start the
survey...



Re: halt -p does not powerdown ThinkPad X200 under 4.5beta

2009-03-10 Thread Aaron Stellman
On Tue, Mar 10, 2009 at 12:31:09PM +, Stefan Sperling wrote:
> On Tue, Mar 10, 2009 at 07:40:44PM +0800, David Schulz wrote:
> I've been seeing this with my x60s, too. For ages. From about 4.4 release
> till up to now, don't know if it ever worked before 4.4.
> 
> I don't know how to fix it.
> 
> Stefan
> 
Same applies to T61 -- happens especially often when booted running on
battery.



Re: Music Stutters If Firefox Is Launched

2009-03-18 Thread Aaron Stellman
> can you try the following:
> 
> $ mpg123 file.mp3 &
> $ while :; do audioctl play.{seek,errors}; sleep 1; done > log &
> $ firefox; kill %2; fg %2; kill %1; fg %1
> 
> 
> and then post the contents of `log'?
here is what aucat -l produces in AUCAT_DEBUG=2 when firefox is openned.
the mp3 player used is mpd:

pipe_write: socket: wrote 40 bytes in 116546us


contents of requested log.
log:
play.seek=23296
play.errors=0
play.seek=23296
play.errors=0
play.seek=23296
play.errors=0
play.seek=23296
play.errors=0
play.seek=23296
play.errors=0
play.seek=23296
play.errors=0
play.seek=23296
play.errors=0
play.seek=23296
play.errors=0
play.seek=23296
play.errors=0
play.seek=23296
play.errors=0
play.seek=23296
play.errors=0
play.seek=23296
play.errors=0
play.seek=23296
play.errors=0
play.seek=23296
play.errors=0
play.seek=23296
play.errors=0
play.seek=23296
play.errors=2912
play.seek=23296
play.errors=2912
play.seek=23296
play.errors=2912
play.seek=23296
play.errors=2912
play.seek=23296
play.errors=2912
play.seek=23296
play.errors=2912
play.seek=23296
play.errors=2912



Re: Music Stutters If Firefox Is Launched

2009-03-18 Thread Aaron Stellman
> that appears to be a single missed block.  was there repeated stutter
> or just one "dropout"?  can you also try without aucat running?
> thanks.
It was just either a single or double dropout. 
here is log without aucat running:

play.seek=35072
play.errors=0
play.seek=35072
play.errors=0
play.seek=35072
play.errors=0
play.seek=35072
play.errors=0
play.seek=35072
play.errors=0
play.seek=35072
play.errors=0
play.seek=35072
play.errors=1024
play.seek=35072
play.errors=1024
play.seek=35072
play.errors=1024
play.seek=35072
play.errors=1024
play.seek=35072
play.errors=1024


here is dmesg:
(GAMMA = GENERIC.MP + NTFS)

OpenBSD 4.5-current (GAMMA) #64: Wed Mar 18 18:00:19 PDT 2009
r...@gamma.x96.org:/usr/src/sys/arch/amd64/compile/GAMMA
real mem = 2103115776 (2005MB)
avail mem = 2030059520 (1936MB)
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.4 @ 0xe0010 (73 entries)
bios0: vendor LENOVO version "7LETC5WW (2.25 )" date 11/14/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.45 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
acpicpu1 at acpi0: C3, C2
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: unknown Enhanced SpeedStep CPU, msr 0x06170c2206000c22
cpu0: using only highest and lowest power states
cpu0: Enhanced SpeedStep 2400 MHz (1244 mV): speeds: 2400, 1200 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)
intagp0 at vga1
agp0 at intagp0: aperture at 0xe000, size 0x1000
inteldrm0 at vga1: apic 1 int 16 (irq 10)
drm0 at inteldrm0
"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 00:1c:25:76:fa:ea
uhci0 at pci0 dev 26 function 0 "Intel 82801H USB" rev 0x03: apic 1 int 20 (irq 
11)
uhci1 at pci0 dev 26 function 1 "Intel 82801H USB" rev 0x03: apic 1 int 21 (irq 
11)
ehci0 at pci0 dev 26 function 7 "Intel 82801H USB" rev 0x03: apic 1 int 22 (irq 
11)
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 0x03: apic 1 int 
17 (irq 11)
azalia0: RIRB time out
azalia0: codecs: Analog Devices AD1984, Conexant/0x2bfa, using Analog Devices 
AD1984
audio0 at azalia0
ppb0 at pci0 dev 28 function 0 "Intel 82801H PCIE" rev 0x03: apic 1 int 20 (irq 
11)
pci1 at ppb0 bus 2
ppb1 at pci0 dev 28 function 1 "Intel 82801H PCIE" rev 0x03: apic 1 int 21 (irq 
11)
pci2 at ppb1 bus 3
iwn0 at pci2 dev 0 function 0 "Intel Wireless WiFi Link 4965" rev 0x61: apic 1 
int 17 (irq 11), MIMO 2T3R, MoW1, address 00:1f:3b:03:b1:59
ppb2 at pci0 dev 28 function 2 "Intel 82801H PCIE" rev 0x03: apic 1 int 22 (irq 
11)
pci3 at ppb2 bus 4
ppb3 at pci0 dev 28 function 3 "Intel 82801H PCIE" rev 0x03: apic 1 int 23 (irq 
11)
pci4 at ppb3 bus 5
ppb4 at pci0 dev 28 function 4 "Intel 82801H PCIE" rev 0x03: apic 1 int 20 (irq 
11)
pci5 at ppb4 bus 13
uhci2 at pci0 dev 29 function 0 "Intel 82801H USB" rev 0x03: apic 1 int 16 (irq 
10

Re: How to find available wifi access points?

2009-03-20 Thread Aaron Stellman
On Fri, Mar 20, 2009 at 08:12:45AM +0100, Matt wrote:
> Hi,

>
> All I need to be able to do is see what networks are available when out  
> and about, nothing more.
> Obviously I am not the only user with this wish - so I am probably  
> missing something extremely obvious :-(
>
> (Running 4.5 snapshot with onboard iwi0 - but also have external rum0  
> and ral0 cards available).
For recent snapshots it `scan' argument to ifconfig(8)
try: ifconfig iwi0 scan



Re: snapshot upgrades

2009-03-21 Thread Aaron Stellman
On Sat, Mar 21, 2009 at 09:21:30PM -0500, Mark Bucciarelli wrote:
> Is there danger in upgrading to the latest
> snapshot using a script?
> 
>   - fetch tarballs and kernels
>   - run sysmerge -s etc*.tgz
>   - run sysmerge -x xetc*.tgz
you realize that sysmerge(8) is interactive, right?



Re: graphic card support

2009-03-23 Thread Aaron Stellman
On Sun, Mar 22, 2009 at 08:52:43AM +0100, Matthieu Herrb wrote:
> DRI/DRM on OpenBSD works on recent intel chips (i855 and up) and on
> older ATI chips (r200/r300).
> 
Hello,
I'm looking to get a X600 PCI-E card, which seems to be based on RV380
chipset, which is supposedly almost identical to other R3xx series, but
use PCI-e instead. Do you have any idea whether DRI/DRM works on these?
Thanks



Re: graphic card support

2009-03-23 Thread Aaron Stellman
On Tue, Mar 24, 2009 at 02:29:20AM +, Owain Ainsworth wrote:
> my PCI-E x800 works perfectly. So probably.
I thought that x800 series were based on R4xx chipsets. And based on
Mattheu's response, only r200/r300 supported DRI/DRM. Could you please
comment on that?
Thanks



PF failing to create state for ipv6 tunnel

2009-04-05 Thread Aaron Stellman
Sorry, this machine is running 4.4 and I'm unable to upgrade it to
current, since I only have remote access to it.

My goal is to have operational ipv6 tunnel. Whenever appropriate gif0 is
created and default route through it is added, ipv6 traffic is not
allowed out.

As far as I understand, there must be a state, which will allow ipv6
traffic out. this state is never created as seen by 'loud' level:

Apr  6 00:19:50 D2710 /bsd: pf: stack key attach failed on all: 41 out
wire: 209.51.181.2 12.158.188.186 stack: 209.51.181.2 12.158.188.186 1:0
Apr  6 00:19:51 D2710 /bsd: pf: stack key attach failed on all: 41 out
wire: 209.51.181.2 12.158.188.186 stack: 209.51.181.2 12.158.188.186 1:0

whereas, a state should be created by this rule:
pass out quick inet from any to 209.51.181.2

traffic on gif0 is skipped, but it shouldn't matter

I don't want to paste the whole pf.conf on a public mailing list; it
will be provided on request
Here are the details:

# cat /etc/hostname.gif0
  
tunnel 12.158.188.186 209.51.181.2
!ifconfig gif0 inet6 alias 2001:470:1f10:754::2 2001:470:1f10:754::1
prefixlen 128
!route -n add -inet6 default 2001:470:1f10:754::1
--
gif0: flags=8051 mtu 1280
groups: gif
physical address inet 12.158.188.186 --> 209.51.181.2
inet6 fe80::20b:6aff:fea9:185a%gif0 ->  prefixlen 64 scopeid 0x9
inet6 2001:470:1f10:754::2 -> 2001:470:1f10:754::1 prefixlen 128


Routing tables

Internet:
DestinationGatewayFlags   Refs  Use   Mtu  Prio Iface
default12.158.188.1   UGS   13  2435489 -48 vr0
12.158.188/24  link#1 UC 20 -48 vr0
12.158.188.1   00:07:84:46:74:0a  UHLc   11 -48 vr0
12.158.188.186 00:0b:6a:a9:18:5a  UHLc   2 3138 -48 lo0
127/8  127.0.0.1  UGRS   00 3320448 lo0
127.0.0.1  127.0.0.1  UH 388114 3320448 lo0
224/4  127.0.0.1  URS00 3320448 lo0

Internet6:
DestinationGatewayFlags   Refs  
Use   Mtu  Prio Iface
::/104 ::1UGRS   0  
  0 -48 lo0
::/96  ::1UGRS   0  
  0 -48 lo0
default2001:470:1f10:754::1   UGS1  
   5817 -48 gif0
::1::1UH14  
  0 3320448 lo0
::127.0.0.0/104::1UGRS   0  
  0 -48 lo0
::224.0.0.0/100::1UGRS   0  
  0 -48 lo0
::255.0.0.0/104::1UGRS   0  
  0 -48 lo0
:::0.0.0.0/96  ::1UGRS   0  
  0 -48 lo0
2001:470:1f10:754::1   2001:470:1f10:754::2   UH 1  
  0 -48 gif0
2001:470:1f10:754::2   link#9 UHL1  
  0 -48 lo0
2002::/24  ::1UGRS   0  
  0 -48 lo0
2002:7f00::/24 ::1UGRS   0  
  0 -48 lo0
2002:e000::/20 ::1UGRS   0  
  0 -48 lo0
2002:ff00::/24 ::1UGRS   0  
  0 -48 lo0
fe80::/10  ::1UGRS   4  
  0 -48 lo0
fe80::%vr0/64  link#1 UC 0  
  0 -48 vr0
fe80::20b:6aff:fea9:185a%vr0   00:0b:6a:a9:18:5a  UHL0  
  0 -48 lo0
fe80::%lo0/64  fe80::1%lo0U  0  
  0 -48 lo0
fe80::1%lo0link#3 UHL0  
  0 -48 lo0
fe80::%gif0/64 link#9 UC 0  
  0 -48 gif0
fe80::20b:6aff:fea9:185a%gif0  link#9 UHL0  
  0 -48 lo0
fec0::/10  ::1UGRS   0  
  0 -48 lo0
ff01::/16  ::1UGRS   0  
  0 -48 lo0
ff01::%vr0/32  link#1 UC 0  
  0 -48 vr0
ff01::%lo0/32  ::1UC 0  
  0 -48 lo0
ff01::%gif0/32 link#9 UC 0  
  0 -48 gif0
ff02::/16   

Re: PF failing to create state for ipv6 tunnel

2009-04-05 Thread Aaron Stellman
On Sun, Apr 05, 2009 at 10:43:17PM -0700, Aaron Stellman wrote:
> Sorry, this machine is running 4.4 and I'm unable to upgrade it to
> current, since I only have remote access to it.
> 
> My goal is to have operational ipv6 tunnel. Whenever appropriate gif0 is
> created and default route through it is added, ipv6 traffic is not
> allowed out.
> 
> As far as I understand, there must be a state, which will allow ipv6
> traffic out. this state is never created as seen by 'loud' level:
> 
> Apr  6 00:19:50 D2710 /bsd: pf: stack key attach failed on all: 41 out
> wire: 209.51.181.2 12.158.188.186 stack: 209.51.181.2 12.158.188.186 1:0
> Apr  6 00:19:51 D2710 /bsd: pf: stack key attach failed on all: 41 out
> wire: 209.51.181.2 12.158.188.186 stack: 209.51.181.2 12.158.188.186 1:0

Whenever I ping6 this box from "outside", appropriate state is created,
and only then ipv6 traffic is able to go out.

all ipv6 12.158.188.186 <- 209.51.181.2   MULTIPLE:MULTIPLE



Re: PF failing to create state for ipv6 tunnel

2009-04-06 Thread Aaron Stellman
On Mon, Apr 06, 2009 at 04:31:42PM +0100, Sevan / Venture37 wrote:
> try adding:
> pass in on $ext_if inet proto ipv6
> to your pf.conf
This has nothing to do with "in" direction. Packets coming "in" are
passed fine and they do create a proper state.
The problem is that packets that are coming "out" when there is no state
don't create don't create approporiate state, and are not visible on pflog0 
even though all my block rules are logged.

This problem is confirmed by
Apr  6 01:21:39 D2710 /bsd: pf: stack key attach failed on all: 41 out
wire: 209.51.181.2 12.158.188.186 stack: 209.51.181.2 12.158.188.186 1:0



Re: PF failing to create state for ipv6 tunnel

2009-04-06 Thread Aaron Stellman
On Mon, Apr 06, 2009 at 11:58:01AM +0200, Tasmanian Devil wrote:
> > whereas, a state should be created by this rule:
> > pass out quick inet from any to 209.51.181.2
> 
> Not sure how this fits together with your second post where you say
> that you can ping6 from the outside, but depends also on your other
> rules. What you need to allow is proto 41 (ipv6) between the two
> tunnel endpoints of your GIF tunnel (between 12.158.188.186 and
> 209.51.181.2 in your case), and in both directions.
proto 41 is allowed out by "first" quick rule in the ruleset.

@0 pass out quick on vr0 inet proto ipv6 from any to 209.51.181.2 keep
state
  [ Evaluations: 83Packets: 0 Bytes: 0   States:
0 ]
  [ Inserted: uid 0 pid 5522 State Creations: 6 ]

That's the rule that should create appropriate state, but it doesn't as
seen by

Apr  6 01:21:39 D2710 /bsd: pf: stack key attach failed on all: 41 out
wire: 209.51.181.2 12.158.188.186 stack: 209.51.181.2 12.158.188.186 1:0
> 
> For me, with "block in all/pass out all" default rules, a rule like
> this works fine:
> 
> pass in on $ext_if proto ipv6 from $server_ip to $my_ip
> 
> > traffic on gif0 is skipped, but it shouldn't matter
> 
> Are you sure that you really want this? That way you allow all traffic
> via IPv6 in, which means no filtering at all for IPv6. So the world
> can probably access more than you think...
this is done for debugging purposes only.



Re: PF failing to create state for ipv6 tunnel

2009-04-06 Thread Aaron Stellman
On Sun, Apr 05, 2009 at 10:48:21PM -0700, Aaron Stellman wrote:
> On Sun, Apr 05, 2009 at 10:43:17PM -0700, Aaron Stellman wrote:
> > Sorry, this machine is running 4.4 and I'm unable to upgrade it to
> > current, since I only have remote access to it.
> > 
> > My goal is to have operational ipv6 tunnel. Whenever appropriate gif0 is
> > created and default route through it is added, ipv6 traffic is not
> > allowed out.
> > 
> > As far as I understand, there must be a state, which will allow ipv6
> > traffic out. this state is never created as seen by 'loud' level:
> > 
> > Apr  6 00:19:50 D2710 /bsd: pf: stack key attach failed on all: 41 out
> > wire: 209.51.181.2 12.158.188.186 stack: 209.51.181.2 12.158.188.186 1:0
> > Apr  6 00:19:51 D2710 /bsd: pf: stack key attach failed on all: 41 out
> > wire: 209.51.181.2 12.158.188.186 stack: 209.51.181.2 12.158.188.186 1:0
> 
> Whenever I ping6 this box from "outside", appropriate state is created,
> and only then ipv6 traffic is able to go out.
> 
> all ipv6 12.158.188.186 <- 209.51.181.2   MULTIPLE:MULTIPLE
> 
By commenting out half the ruleset, and doing that recursively until
finding which rule causes it, I found it it be:

nat on $ext_if from !self to any -> ($ext_if:0)

In other words, same rulset w/o rule above creates a proper state:
all ipv6 12.158.188.186 -> 209.51.181.2   MULTIPLE:MULTIPLE



Re: Low power OpenBSD machine

2009-04-13 Thread Aaron Stellman
On Mon, Apr 13, 2009 at 08:59:31AM -0500, Marco Peereboom wrote:
> Get an HP T5000 series.  I use that for my home firewall; no fans and no
> noise.  With 3 NICs it uses less than 1A.
> 
> em0 at pci0 dev 11 function 0 "Intel PRO/1000MT (82546GB)" rev 0x03: irq 11, 
> address 00:04:23:ab:6e:68
> em1 at pci0 dev 11 function 1 "Intel PRO/1000MT (82546GB)" rev 0x03: irq 10, 
> address 00:04:23:ab:6e:69

Is this em(4) installed through an optional PCI expansion module? I
can't seem to find any models that come with multiple NICs.
Thanks



Re: Low power OpenBSD machine

2009-04-13 Thread Aaron Stellman
On Mon, Apr 13, 2009 at 05:40:57PM +0200, Henning Brauer wrote:
> * Marco Peereboom  [2009-04-13 16:21]:
> > On Mon, Apr 13, 2009 at 11:31:52PM +1000, Timothy Hume wrote:
> > > Is it possible to build something like I describe which uses under 30
> > > Watts, and if so, what hardware would people recommend?
> > Get an HP T5000 series.  I use that for my home firewall; no fans and no
> > noise.  With 3 NICs it uses less than 1A.
> 
> 1A * 120V = 120VA ~= 120W

I believe they run on 12V power supplies. so it's max 12W



Re: Easiest Way to Encrypt /home

2009-04-14 Thread Aaron Stellman
On Tue, Apr 14, 2009 at 01:51:59PM -0700, new_guy wrote:
> I've begun using OpenBSD on portable computers/laptops. I want to guard
> against theft. I can't stand the thought of some crook pawing my laptop and
> someone looking over my personal files... pictures of my family, my taxes,
> etc... it keeps me awake at night.
> 
> I set the option to configure swap in sysctl.conf and I'd like to now
> encrypt /home (where I keep all of my personal files). I've googled, but
> nothing clear comes up. I'm using 4.5 current on an Asus eeepc 701 (the
> original one). I can reinstall and re-partition if necessary, but I'd rather
> not compile a custom kernel... any tips?
no need for custom kernel, read mount_vnd(8). you can also run this
script at boot to mount your /home after getting correct password from
user:

#!/bin/sh
# mount crypto partition

COUNTER=0
MAX_TRIES=3
SALT=/crypto/home.slt
IMG=/crypto/home.img
ROUNDS=2
MOUNT_PNT=/home
DISK=svnd0
PART=c
MOUNT_OPTS="rw,nodev,nosuid,softdep"

if [ ! -f $IMG -o ! -f $SALT ]; then
echo "[-] $IMG or $SALT not found"
exit
fi

#echo

while [ $COUNTER -lt $MAX_TRIES ]
do
sleep $(($COUNTER*2))
echo "[+] Mounting $MOUNT_PNT"
/sbin/vnconfig -K $ROUNDS -S $SALT $DISK $IMG
/sbin/fsck -y /dev/$DISK$PART
/sbin/mount -o $MOUNT_OPTS /dev/$DISK$PART $MOUNT_PNT

if [ $? != 0 ] ; then
/sbin/vnconfig -u $DISK
COUNTER=$(($COUNTER+1))
else
echo "[+] Success."
exit#normal exit point
fi

done

echo "[-] Failure."



Re: Low power OpenBSD machine

2009-04-16 Thread Aaron Stellman
On Fri, Apr 17, 2009 at 07:54:11AM +0200, Markus Hennecke wrote:
> Generalization is always false.
> I killed a 1GB SanDisk CF Card because of excessive logging of OpenVPN  
And what makes you so sure that this was exact cause? Another
generalization.



Re: Low power OpenBSD machine

2009-04-17 Thread Aaron Stellman
On Fri, Apr 17, 2009 at 08:19:11AM +0200, Markus Hennecke wrote:
> Aaron Stellman schrieb:
>> On Fri, Apr 17, 2009 at 07:54:11AM +0200, Markus Hennecke wrote:
>>> Generalization is always false.
>>> I killed a 1GB SanDisk CF Card because of excessive logging of 
>>> OpenVPN  
>> And what makes you so sure that this was exact cause? Another
>> generalization.
>
> The inode holding the log files metadata was no longer writeable. What  
> else would cause that?
I don't know what the cause is, and there is no point speculating. what
matters is that you made a conclusion based on sample of grand total of
1 case -- that's a pretty bad generalization.
Then you instantiate your previous generalization and accuse others of not
stress testing enough.



Re: milter-regex confusion

2009-05-31 Thread Aaron Stellman
On Sun, May 31, 2009 at 03:20:09PM -0400, Steve Shockley wrote:
> I have an OpenBSD 4.2 system running milter-regex 1.6.  As part of the  
> milter-regex rules, I have:
>
> # reject things that look like they might come from a dynamic address
> reject "Looks like a dynamic address"
> connect /[0-9][0-9]*\-[0-9][0-9]*\-[0-9][0-9]*/ //
> connect /[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*/ //
> connect /[0-9]{12}/e //
>
> That's been working quite well so far.  A few days ago, it seems it's  
> started matching "mail16.websecurestores.com" and returning "Looks like  
> a dynamic address".  Any idea why that string would match those regular  
> expressions?  I'm far from a regex guru, and this one has me confused.
I have never used milter-regex, but none of these regex should ever
match "mail16.websecurestores.com".
The manual page for milter regex states the following:
  When resolution fails, the hostname contains the numerical address
  in square brackets.

in case your resolver fails to resolve 209.147.117.6 -> 
mail16.websecurestores.com,
/[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*/ will successfully match
"209.147.117.6"



Re: Slow umass(4)

2009-06-10 Thread Aaron Stellman
On Wed, Jun 10, 2009 at 11:21:21PM +0200, Thomas Pfaff wrote:
> Is anyone else experiencing this?  Is the problem on my side, or does
> OpenBSD not yet support High Speed USB transfers?

umass1 at uhub9 port 1 configuration 1 interface 0 "Jabil Circuit
Seagate External Drive" rev 2.00/3.00 addr 6
umass1: using SCSI over Bulk-Only
scsibus3 at umass1: 2 targets, initiator 0
sd4 at scsibus3 targ 1 lun 0:  SCSI0 0/direct
fixed
sd4: 152627MB, 512 bytes/sec, 312581808 sec total

OpenBSD -current:
# dd if=/dev/zero of=/dev/rsd4c skip=1698814 bs=16k count=7200
7200+0 records in
7200+0 records out
117964800 bytes transferred in 9.004 secs (13100868 bytes/sec)

Linux:
# dd if=/dev/zero of=/dev/rsd4c skip=1698814 bs=16k count=7200
7200+0 records in
7200+0 records out
117964800 bytes (118MB) copied, 7.08758 s, 16.6 MB/s



Re: Commercials for TV?

2009-06-15 Thread Aaron Stellman
On Mon, Jun 15, 2009 at 01:54:09PM -0500, Fernando Quintero wrote:
> http://www.bbspot.com/News/2009/06/openbsd.html?from=rss
> 
> wtf?

epic fail of geeky humour



Re: PF rule evaluation

2008-08-24 Thread Aaron Stellman
On Mon, Aug 25, 2008 at 11:05:38AM +1000, Mikel Lindsaar wrote:
> Hello list,
> 
> I have purchased and read the book of PF (good book by the way) as
> well as the man pages, and I have a question that I have not been able
> to find a definitive answer on:
> 
> "Does PF only evaluate every packet against the ruleset once on all
> interfaces, or does it evaluate once for each interface?"
> 

If you default action is `block' and you want to allow a packet to be
routed through 2 interfaces on a multihomed box, you'd need two rules:
1st rule to allow packet `in' on the first interface
2nd rule to allow packet `out' from the second interface

I hope this answers your question.



Re: ntpd can hang on boot

2008-09-11 Thread Aaron Stellman
On Thu, Sep 11, 2008 at 12:21:29PM +0200, Henning Brauer wrote:
> * Henning Brauer <[EMAIL PROTECTED]> [2008-09-10 10:39]:
> > ntpd -s will time out eventually, but the 'eventually' might be
> > painfully far away. it's the dns routines that block and cause these
> > problems. i know how to fix this but haven't found the time to do so
> > yet. maybe i get a chance on the flight later today. maybe.
> 
> didn't find too much time on the flight, but finished this morning.
> 
> basically, move dns to its own process. the parent process is just not
> allowed to block no matter what. the dns process can drop privs but
> not chroot.
> 
Hello,
It's very nice, now it takes around ~20 secs or so to timeout in the
following scenarios:
* if hostname in ntpd.conf doesn't resolve
* if wireless interface isn't associated

Thanks



Re: recommendation for router (COMMELL)

2008-09-16 Thread Aaron Stellman
On Tue, Sep 16, 2008 at 10:20:08PM -0400, Steve Shockley wrote:
> Juan Miscaro wrote:
>> Has anyone any experience running OpenBSD on this puppy:
>>
>> http://www.commell-sys.com/Product/IPC/EMB-564.htm
>>
>> I'm looking for a replacement for my tower that is currently acting as
>> router, anti-spam, mail server for a small network/domain.
>
> Anti-spam might be a little slow on that depending on your volume.  I  
> haven't used that product though.
>
This commell site is suspiciously similar to Liantec site; moreover,
this commell device is very similar to EMB-5740 Liantec.
I assume these two companies are owned by same individuals.
I still can't find any places in US that sell EMB-5740.



SSD performace

2008-09-18 Thread Aaron Stellman
Hello list,
Since the prices on SSD are falling I'm thinking about aquiring one.
Before I do that however, I'd like to see some quantified benchmarks.
I'd really appreciate if anyone could comment on perfomance figures and
maybe even send results of bonnie/bonnie++ benchmark on any SSD drive 
on OpenBSD.
Here is what I'm looking at:
http://www.mwave.com/mwave/SkuSearch_v2.asp?SCriteria=ba25346
I realize reviews on this thing are contradictory, but I'm willing to
risk and see if these are worth the cost. There are also reports that
this particular SSD makes thinkpad T61 error out on bios initializing
with "error 2100"; however, it seems to be AHCI related. Someone
suggested disabling AHCI in bios. In any case, I appreciate your
thoughts and comments.



Re: Can one dd to /dev/rwd0c?

2008-09-20 Thread Aaron Stellman
On Sun, Sep 21, 2008 at 06:02:37AM +0100, Sunnz wrote:
> OK I am trying to completely erase the data of a hard disk so I though
> I can just do `dd if=/dev/arandom of=/dev/rwd0c` as to my
> understanding that is the entire hard disk (slice c) of wd0 in 'raw'
> mode?
> 
> But that dd refuse to do it.
security(7):
"Once you have set the security level to 1, write access to raw 
devices will be denied"
> 
> So now I am doing the same thing but to wd0c instead. Is this any
> worse? This is the "character device" right? Does that mean dd won't
> write random bits as low as going to the raw device?
> 
> This is running off a OpenBSD 4.3 CD, there are no intention to
> actually destroy the hard disk in any way, just erasing the data off
> the hard disk so that it can be reused, re-sold, whatever. The data
> are not some military top secret, but it is interesting to know of
> what can be done in a home/small office environment when it comes to
> erasing the hard drive.
> 
> Thanks.
> 
> -- 
> This e-mail may be confidential. You may not copy, forward,
> distribute, or, use any part of it. Note, like all disclaimers on the
> net, there are no effective legal binding on your part and disclaimers
> can be ignored. For more information about disclaimers, please see:
> http://www.goldmark.org/jeff/stupid-disclaimers/



Re: Specifying config file for rarpd

2008-10-12 Thread Aaron Stellman
On Sun, Oct 12, 2008 at 02:34:08PM +0300, Lars Nood??n wrote:
> OpenBSD's rarpd gets its configuration from /etc/ethers
>http://www.openbsd.org/cgi-bin/man.cgi?query=rarpd
> 
> How can it be set to use another source for configuration data?
> 
> (I'd like to leave / and /etc mounted read-only as well as have the
> choice of several different, separate configurations.)
> 
> Regards
> -Lars
> 
looks like you're interested in:
int ether_ntohost(char *hostname, struct ether_addr *e) which opens
_PATH_ETHERS for read. It's at lib/libc/net/ethers.c
Should be pretty easy to modify rarpd.c to match needed behavior.



Re: mutt: SMTP authentication requires SASL

2008-10-13 Thread Aaron Stellman
On Tue, Oct 14, 2008 at 03:50:34PM +1100, Chris wrote:
> I've been trying to send mails via Gmail's IMAP using Mutt 1.5.17 on
> OBSD 4.3. I installed this Mutt from the package list. But sending
> mails don't work as it says "SMTP authentication requires SASL" The
> output of mutt -v shows "-USE_SASL". Is there any way to get around
> this on OBSD 4.3 w/o compiling Mutt from source? I know I can use a
> separate MTA like msmtp but I would rather use Mutt since it already
> has this feature.
> 
> Thanks.
> 

This probably needs to be addressed to ports@; in anyway:

unset imap_passive
set imap_keepalive=300

account-hook imaps://[EMAIL PROTECTED]/ 'set imap_pass=PW mail_check=60 
timeout=15'

folder-hook imaps://[EMAIL PROTECTED]/ \
'set folder="imaps://[EMAIL PROTECTED]/" ;\
set smtp_url="smtps://[EMAIL PROTECTED]:465/" ;\
set postponed="+[Gmail]/Drafts" ;\
set from="John Smith <[EMAIL PROTECTED]>"'



azalia -- no sound on CURRENT

2008-10-24 Thread Aaron Stellman
Hello misc@,
Compiled freshly checked out -current from 10/23/08 -- no sound.
Looked through mixerctl and audioctl outputs, didn't find anything
interesting.
Downgraded azalia_codec.c to 1.49
   azalia.h to 1.15
   azalia.c to 1.55
recompiled kernel -- sound works again.
If needed, I could track down exact revision that causes the problem.
Here's dmesg, GAMMA = GENERIC.MP + NTFS

OpenBSD 4.4-current (GAMMA) #37: Fri Oct 24 00:47:46 PDT 2008
[EMAIL PROTECTED]:/usr/src/sys/arch/amd64/compile/GAMMA
real mem = 2090717184 (1993MB)
avail mem = 2029920256 (1935MB)
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.41 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
acpicpu1 at acpi0: C3, C2
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: unknown i686 model 7, can't get bus clockcpu0: EST: unknown system bus 
clock
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
"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 00:1c:25:76:fa:ea
uhci0 at pci0 dev 26 function 0 "Intel 82801H USB" rev 0x03: apic 1 int 20 (irq 
11)
uhci1 at pci0 dev 26 function 1 "Intel 82801H USB" rev 0x03: apic 1 int 21 (irq 
11)
ehci0 at pci0 dev 26 function 7 "Intel 82801H USB" rev 0x03: apic 1 int 22 (irq 
11)
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 0x03: apic 1 int 
17 (irq 11)
azalia0: RIRB time out
azalia0: RIRB time out
azalia0: codec[s]: Analog Devices AD1984, Conexant/0x2bfa, using Analog Devices 
AD1984
audio0 at azalia0
ppb0 at pci0 dev 28 function 0 "Intel 82801H PCIE" rev 0x03: apic 1 int 20 (irq 
11)
pci1 at ppb0 bus 2
ppb1 at pci0 dev 28 function 1 "Intel 82801H PCIE" rev 0x03: apic 1 int 21 (irq 
11)
pci2 at ppb1 bus 3
iwn0 at pci2 dev 0 function 0 "Intel Wireless WiFi Link 4965AGN" rev 0x61: apic 
1 int 17 (irq 11), MIMO 2T3R, MoW1, address 00:1f:3b:03:b1:59
ppb2 at pci0 dev 28 function 2 "Intel 82801H PCIE" rev 0x03: apic 1 int 22 (irq 
11)
pci3 at ppb2 bus 4
ppb3 at pci0 dev 28 function 3 "Intel 82801H PCIE" rev 0x03: apic 1 int 23 (irq 
11)
pci4 at ppb3 bus 5
ppb4 at pci0 dev 28 function 4 "Intel 82801H PCIE" rev 0x03: apic 1 int 20 (irq 
11)
pci5 at ppb4 bus 13
uhci2 at pci0 dev 29 function 0 "Intel 82801H USB" rev 0x03: apic 1 int 16 (irq 
10)
uhci3 at pci0 dev 29 function 1 "Intel 82801H USB" rev 0x03: apic 1 int 17 (irq 
11)
uhci4 at pci0 dev 29 function 2 "Intel 82801H USB" rev 0x03: apic 1 int 18 (irq 
11)
ehci1 at pci0 dev 29 function 7 "Intel 82801H USB" rev 0x03: apic 1 int 19 (irq 
11)
usb1 at ehci1: USB revision 2.0
uhub1 at usb1 "Intel EHCI root hub" rev 2.00/1.00 addr 1
ppb5 a

Re: azalia -- no sound on CURRENT

2008-10-24 Thread Aaron Stellman
On Fri, Oct 24, 2008 at 06:42:25PM +0300, Alexey Suslikov wrote:
> On Fri, Oct 24, 2008 at 10:57 AM, Aaron Stellman <[EMAIL PROTECTED]> wrote:
> > Hello misc@,
> > Compiled freshly checked out -current from 10/23/08 -- no sound.
> > Looked through mixerctl and audioctl outputs, didn't find anything
> > interesting.
> > Downgraded azalia_codec.c to 1.49
> >   azalia.h to 1.15
> >   azalia.c to 1.55
> > recompiled kernel -- sound works again.
> > If needed, I could track down exact revision that causes the problem.
> > Here's dmesg, GAMMA = GENERIC.MP + NTFS
> 
> Please drop me a mixerctl -av output diff between old (working) and
> new (non-working).
> 
> Alexey
OK, here we go:
working mixerctl and audioctl:

outputs.master=204,204 
outputs.master.mute=off  [ off on ]
record.volume=124,124 
record.volume.mute=off  [ off on ]
record.source=mic  [ mic ]
inputs.mic.preamp=85,85 
inputs.mic=120,120 
inputs.mic.mute=off  [ off on ]
outputs.headphones=204,204 
outputs.headphones.mute=off  [ off on ]
outputs.headphones.boost=off  [ off on ]
outputs.speaker=204,204 
outputs.speaker.mute=off  [ off on ]
outputs.speaker.boost=off  [ off on ]
outputs.mono=120 
outputs.mono.mute=off  [ off on ]

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

non-working mixerctl and audioctl:

outputs.master=204,204 
outputs.master.mute=off  [ off on ]
record.volume=124,124 
record.volume.mute=off  [ off on ]
record.source=mic  [ mic ]
inputs.mic.preamp=85,85 
inputs.mic=120,120 
inputs.mic.mute=off  [ off on ]
outputs.headphones=204,204 
outputs.headphones.mute=off  [ off on ]
outputs.headphones.boost=off  [ off on ]
outputs.speaker=204,204 
outputs.speaker.mute=off  [ off on ]
outputs.speaker.boost=off  [ off on ]
outputs.mono=120 
outputs.mono.mute=off  [ off on ]

name=HD-Audio
version=1.0
config=azalia0
encodings=slinear_le:16,slinear_le:16,slinear_le:16
properties=full_duplex,independent
full_duplex=0
fullduplex=0
blocksize=8704
hiwat=7
lowat=5
output_muted=0
monitor_gain=0
mode=play
play.rate=44100
play.channels=2
play.precision=16
play.encoding=slinear_le
play.gain=204
play.balance=32
play.port=0x0
play.avail_ports=0x0
play.seek=52224
play.samples=8033792
play.eof=0
play.pause=0
play.error=0
play.waiting=0
play.open=1
play.active=1
play.buffer_size=65536
play.block_size=8704
play.errors=0
record.rate=48000
record.channels=2
record.precision=16
record.encoding=slinear_le
record.gain=120
record.balance=32
record.port=0x1
record.avail_ports=0x1
record.seek=0
record.samples=0
record.eof=0
record.pause=0
record.error=0
record.waiting=0
record.open=0
record.active=0
record.buffer_size=65536
record.block_size=9600
record.errors=0
outputs.master=204,204 
outputs.master.mute=off  [ off on ]
record.volume=124,124 
record.volume.mute=off  [ off on ]
record.source=mic  [ mic ]
inputs.mic.preamp=85,85 
inputs.mic=120,120 
inputs.mic.mute=off  [ off on ]
outputs.headphones=204,204 
outputs.headphones.mute=off  [ off on ]
outputs.headphones.boost=off  [ off on ]
outputs.speaker=204,204 
outputs.speaker.mute=off  [ off on ]
outputs.speaker.boost=off  [ off on ]
outputs.mono=120 
outputs.mono.mute=off  [ off on ]

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

amd64 -current -- weird behavior of tpb in non-MP kernel

2008-10-26 Thread Aaron Stellman
Hello misc@,
Experiencing weird behavior that happens in GENERIC, but doesn't happen
in GENERIC.MP. It's a Thinkpad T61 machine. I'm running sysutils/tpb to
see nice visual feedback regarding brightness change and other niceties
for thinkpads. Whenever I run it on GENERIC.MP its behaviour is as
expected. On the other hand, running it on GENERIC generates weird
events. Take a look here:

$ tpb -v
Home button pressed
Search button pressed
Mail button pressed
Home button pressed
Search button pressed
Mail button pressed
Power management mode AC changed: PM AC unknown
Power management mode battery changed: PM battery unknown
Power management mode AC changed: PM AC high
Power management mode battery changed: PM battery auto
Volume changed: Level 0
Volume changed: Level 50
Zoom is on
Zoom is off
Zoom is on
Zoom is off
Brightness changed: Level 0
Brightness changed: Level 100
Volume changed: Level 0
Volume changed: Level 50
Zoom is on
Zoom is off
Home button pressed
Search button pressed
Mail button pressed
Home button pressed
Search button pressed
Mail button pressed
Zoom is on
Zoom is off
Brightness changed: Level 0
Brightness changed: Level 100
Display changed: PM battery auto
HV Expansion is off
Display changed: LCD on, CRT off
HV Expansion is on

None of these events are real.
Notice, this laptop doesn't have home/search/mail/zoom buttons, so it's
obviously strange. Again, none of this happens on GENERIC.MP. 
Also notice, if I press brightness up / brightness down buttons, the 
actual brightness _does_ change, and proper event is generated.
acpidump(8) is available at http://www.x96.org/acpidump.txt.gz

OpenBSD 4.4-current (GENERIC) #0: Sun Oct 26 21:09:29 PDT 2008
[EMAIL PROTECTED]:/usr/src/sys/arch/amd64/compile/GENERIC
real mem = 2090835968 (1993MB)
avail mem = 2030034944 (1935MB)
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
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
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 at mainbus0: (uniprocessor)
cpu0: Intel(R) Core(TM)2 Duo CPU T8300 @ 2.40GHz, 2394.39 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: unknown i686 model 7, can't get bus clockcpu0: EST: unknown system bus 
clock
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
"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: irq 11, address 
00:1c:25:76:fa:ea
uhci0 at pci0 dev 26 function 0 "Intel 82801H USB" rev 0x03: irq 11
uhci1 at pci0 dev 26 function 1 "Intel 82801H USB" rev 0x03: irq 11
ehci0 at pci0 dev 26 function 7 "Intel 82801H USB" rev 0x03: irq 11
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 0x03: irq 11
azalia0: RIRB time out
azalia0: RIRB time out
azalia0: RIRB time out
azalia0: codec[s]: Analog Devices AD1984, Conexant/0x2bfa, using Analog Devices 
AD1984
audio0 at azalia0
ppb0 at pci0 dev 28 function 0 "Intel 82801H PCIE" rev 0x03: irq 11
pci1 at ppb0 bus 2
ppb1 at pci0 dev 28 function 1 "Intel 82801H PCIE" rev 0x03: irq 11
pci2 at ppb1 bus 3
iwn0 at pci2 dev 0 function 0 "Intel Wireless WiFi Link 4965AGN" rev 0x61: irq 
11, MIMO 2T3R, MoW1, address 00:1f:3b:03:b1:59
ppb2 at pci0 dev 28 function 2 "Intel 82801H PCIE" rev 0x03: irq 11
pci3 at ppb2 bus 4
ppb3 at pci0 dev 28 function 3 "Intel 82801H PCIE" rev 0x03: irq 11
pci4 at ppb3 bus 5
ppb4 a

Re: ssh_exchange_identification: Connection closed by remote host

2008-05-20 Thread Aaron Stellman
> On Tue, May 20, 2008 at 11:25 AM, Floor Terra <[EMAIL PROTECTED]> wrote:
> 
> Thanks for your reply!
> 
> Apache  doesn't run nor any other httpd service. And yes, when defining port
> 80 in the sshd_config file I did re-start the whole box! Also when I go via
> a browser to my server it displays:
> 
> SSH-2.0-OpenSSH_4.8
> Protocol mismatch.
> 
Are you sure there is no some proxy in between?



Re: Realtek 8185 wireless card

2008-05-24 Thread Aaron Stellman
On Sat, May 24, 2008 at 04:33:40PM -0700, [EMAIL PROTECTED] wrote:
> I saw on OpenBSD site that Realtek 8185 pci/cardbus chips are supported
> as of OBSD 3.8.
where did you see that?
> Just bought an airlink101 card but get 'not configured' in dmesg. Which
> driver is supposed to support 8185 chips?
> I couldn't find any other references to these chips. It was a very cheap
> card for my dad who will only be using it for about a month and a half
> anyway, but I am curious if its a problem with this particular card, or
> with some 8185's in general
> 
These cards aren't supported. see rtw(4) for the list of Realtek wifi
cards supported in OpenBSD.



Re: Can connect to some sites but not others

2008-06-05 Thread Aaron Stellman
On Thu, Jun 05, 2008 at 07:47:22PM -0700, Kareem Kazkaz wrote:
> Hello all.
> 
> I have an OpenBSD box running as my firewall (v4.2, PPPoE with AT&T over a
> Netopia 2210). I am using pf to share the internet connection to the local
> network, which is made up of two Mac laptops (one 10.5.3, one 10.4.6) and
> one Mac Mini (10.5.3).
> 
> From the local network, I can connect to some websites just fine. Other
> websites, however, can't load and eventually time out. The sites that time
> out are the same among all three Macs, and I get the same behavior on all
> three Macs whether I use Safari or Firefox. I can nslookup all the websites
> that don't load and I get IP addresses back, so I know it's not a DNS issue.
> I've rebooted all machines, including the firewall, so it doesn't seem to be
> a cache issue.
> 
> Compounding the problem is that I can connect to the firewall and run
> Firefox (sending the X window to my mac laptop), and I can connect just fine
> to every web site I can think of.

It would be nice to see your pf.conf and other related settings.

> 
> Websites I can't connect to include (but are not limited to)
> www.washingtonpost.com, www.latimes.com, www.cnet.com,
> www.chicagotribune.com.
> 
> So it appears as though the OpenBSD box is communicating to the internet
> just fine, but for some reason it's not packetforwarding some of the
> traffic.
> 
> I'm really stumped by this one. Does anybody have any idea of how to start
> tracking down what's going wrong?
> 
> 
> -- 
> View this message in context: 
> http://www.nabble.com/Can-connect-to-some-sites-but-not-others-tp17683557p17683557.html
> Sent from the openbsd user - misc mailing list archive at Nabble.com.
> 

In any case, this has been discussed multiple times, check this one out
for example:
http://marc.info/?t=12085694341&r=1&w=2



Re: detection of machines behind PF firewall

2008-06-13 Thread Aaron Stellman
On Fri, Jun 13, 2008 at 04:05:12PM -0400, alexander lind wrote:
> Hi all
> 
> Is there currently any known method for detecting information about a  
> machine behind a PF firewall?
> 
> Specifically, if I have a machine with two IP addresses, is it  
> possible for a remote attacker to detect that these two IP addresses  
> are bound on the same machine  (this machine would be behind a PF  
> firewall with the scrubbing option). The two IP addresses would be  
> known to the attacker.
> 
Nobody will answer your question without seeing your ruleset and other
detailed information.
> Thanks
> Alec



rpc.lockd doesn't build in current

2008-06-13 Thread Aaron Stellman
Freshly checked out -current doesn't build:
===> usr.sbin/rpc.lockd
cc -O2 -pipe  -I. -DSYSLOG   -c nlm_prot_svc.c
cc -O2 -pipe  -I. -DSYSLOG   -c /usr/src/usr.sbin/rpc.lockd/procs.c
cc -O2 -pipe  -I. -DSYSLOG   -c /usr/src/usr.sbin/rpc.lockd/lockd.c
nroff -Tascii -mandoc /usr/src/usr.sbin/rpc.lockd/rpc.lockd.8 >
rpc.lockd.cat8
cc   -o rpc.lockd nlm_prot_svc.o lockd.o procs.o -lrpcsvc
nlm_prot_svc.o(.text+0x4e9): In function `nlm_prog_4':
: undefined reference to `nlm4_test_4_svc'
nlm_prot_svc.o(.text+0x574): In function `nlm_prog_4':
: undefined reference to `nlm4_lock_4_svc'
nlm_prot_svc.o(.text+0x58b): In function `nlm_prog_4':
: undefined reference to `nlm4_cancel_4_svc'
nlm_prot_svc.o(.text+0x5a2): In function `nlm_prog_4':
: undefined reference to `nlm4_unlock_4_svc'
nlm_prot_svc.o(.text+0x5b9): In function `nlm_prog_4':
: undefined reference to `nlm4_granted_4_svc'
nlm_prot_svc.o(.text+0x5d0): In function `nlm_prog_4':
: undefined reference to `nlm4_test_msg_4_svc'
nlm_prot_svc.o(.text+0x5e7): In function `nlm_prog_4':
: undefined reference to `nlm4_lock_msg_4_svc'
nlm_prot_svc.o(.text+0x5fe): In function `nlm_prog_4':
: undefined reference to `nlm4_cancel_msg_4_svc'
nlm_prot_svc.o(.text+0x615): In function `nlm_prog_4':
: undefined reference to `nlm4_unlock_msg_4_svc'
nlm_prot_svc.o(.text+0x62c): In function `nlm_prog_4':
: undefined reference to `nlm4_granted_msg_4_svc'
nlm_prot_svc.o(.text+0x643): In function `nlm_prog_4':
: undefined reference to `nlm4_test_res_4_svc'
nlm_prot_svc.o(.text+0x65a): In function `nlm_prog_4':
: undefined reference to `nlm4_lock_res_4_svc'
nlm_prot_svc.o(.text+0x671): In function `nlm_prog_4':
: undefined reference to `nlm4_cancel_res_4_svc'
nlm_prot_svc.o(.text+0x688): In function `nlm_prog_4':
: undefined reference to `nlm4_unlock_res_4_svc'
nlm_prot_svc.o(.text+0x69f): In function `nlm_prog_4':
: undefined reference to `nlm4_granted_res_4_svc'
nlm_prot_svc.o(.text+0x6c3): In function `nlm_prog_4':
: undefined reference to `nlm4_share_4_svc'
nlm_prot_svc.o(.text+0x6da): In function `nlm_prog_4':
: undefined reference to `nlm4_unshare_4_svc'
nlm_prot_svc.o(.text+0x6f1): In function `nlm_prog_4':
: undefined reference to `nlm4_nm_lock_4_svc'
nlm_prot_svc.o(.text+0x708): In function `nlm_prog_4':
: undefined reference to `nlm4_free_all_4_svc'
collect2: ld returned 1 exit status
Stop in /usr/src/usr.sbin/rpc.lockd:
 Exit status 1 (rpc.lockd, line 95 of /usr/share/mk/bsd.prog.mk)
Stop in /usr/src/usr.sbin:
 Exit status 2 (all, line 48 of /usr/share/mk/bsd.subdir.mk)
*** Error code 1 
*** Error code 2 
*** Error code 2 
Stop in /usr/src:
 Exit status 2 (all, line 48 of /usr/share/mk/bsd.subdir.mk)
*** Error code 2 
Stop in /usr/src:
 Exit status 2 (build, line 73 of Makefile)



Re: Coreboot support

2008-06-29 Thread Aaron Stellman
On Sun, Jun 29, 2008 at 11:58:47PM +0100, Sevan / Venture37 wrote:
> Hi
> Has anyone on this list tried using openbsd with a system running coreboot
> (previously linuxbios)?
> Seeing as some of the ALIX boards are supported I was planning on giving it a
> try
> http://www.coreboot.org/Supported_Motherboards
I fail to see the point. It even requires VSA blob from AMD in order to
run Coreboot.
> 
> Sevan / Venture37
> _
> 
> http://clk.atdmt.com/UKM/go/msnnkmgl001002ukm/direct/01/



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 00:

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: rtorrent problems - solved?

2008-07-13 Thread Aaron Stellman
On Mon, Jul 14, 2008 at 07:55:23AM +0200, Bj??rn Ketelaars wrote:
> viq wrote:
> > Sorry for the "carpet bombing", I grabbed the list of people who I saw
> > report problems with rtorrent.
> > 
> > I'm writing to ask those who had problems with rtorrent try it again
> > with newest snapshots, I was not able to reproduce the problem on a
> > box that used to freeze. Please test and report, maybe Otto just fixed
> > another obscure bug ;)
> > 
> 
> 
> I'm experiencing the same. Rtorrent is working without taking down the 
> complete system. It seems that Arthur Grabowski's work [1] paid of.
> 
> There is however one point of concern; Rtorrent is a real memory hog; it 
> just keeps on taking and taking...
> 
I used to use rtorrent until it started to freeze the whole system
so that I was able to ping it, but no userland worked. The box
became unreachable, which wasn't easy to debug. I believe other
people on this list experienced similar problems.  In any case, I
switched to btpd and never looked back. It's stable and doesn't
consume more than 4MB of ram after 44 days of uptime while seeding
50+ torrents.
> Kind regards,
> 
> BjC6rn Ketelaars
> 
> [1] http://marc.info/?l=openbsd-cvs&m=121501219121627&w=2



Re: svnd questions (encrypting all of a partition or disk)

2008-07-20 Thread Aaron Stellman
On Sat, Jul 19, 2008 at 11:58:11AM -0500, Marco Peereboom wrote:
> This might be a good time to try my giant softraid diff that makes
> crypto useful.
> 
Hello Marco,

Greatly appreciate your work on softraid(4). I've decided to play around
with Crypto discipline w/ softraid, created 60GB partition in the
disklabel, marked it as RAID:

  n:117194175195382530RAID   

then created the softraid0 device, backup by sd0n:

scsibus2 at softraid0: 1 targets, initiator 1
sd1 at scsibus2 targ 0 lun 0:  SCSI2 0/direct
fixed
sd1: 57223MB, 7294 cyl, 255 head, 63 sec, 512 bytes/sec, 117194096 sec
total

Everything seems fine, performance is not bad at all, ~4% higher than
svnd0 on the same box. (could be the difference of Blowfish_CBC vs
AES_XTS). However, when playing with tools like bonnie++, my T61 w/
2.4GHZ duo becomes barely responsive. But, it's perfectly understandable,
writing massive amounts of data to crypto backed device with putc() is 
insane.

Now, on boot, the softraid0 doesn't attach itself to sd0n, perhaps not
implemented yet? I was wondering if there were any plans to create
support for crypto devices so that they could be mounted on boot as
specified in fstab(5).

Also, is there any plans to be able  to specify which key size you'd 
want to use with AES_XTS?

Thank you.



Re: BIND workaround for older versions?

2008-07-24 Thread Aaron Stellman
On Thu, Jul 24, 2008 at 02:48:45PM -0500, Mike Shaw wrote:
> Regarding the cache poisoning patch (which I see for 4.3).  Are there
> any effective workarounds for OpenBSD 4.0/4.1?
> 
> I have a couple older boxes I will be upgrading, but I'd like to CMA
> in the meantime.
> 
> Thanks!
> -Mike
> 
Perhaps you'd want to look at pf workaround to this. look at misc@
archives from 2008-07-19.



Re: script to update dyndns IP

2010-03-19 Thread Aaron Stellman
On Thu, Mar 18, 2010 at 09:52:28PM -0400, Brad Tilley wrote:
> There are ports that do this with more features, but I thought others
> might like to do it in base with no added software. I've been using this
> script since 4.2 and it works OK:

since when is net/curl in base?



help with azalia(4) and 6 channels

2010-06-01 Thread Aaron Stellman
Hello,
First of all, I appreciate all the work that has been put in to making
azalia knobs more user friendly.
Now, my goal is to have the same audio signal sent to all 6 channels.
outputs.line-grn_sense=plugged
outputs.line-blk_sense=plugged
outputs.line-org_sense=plugged
I'm running aucat and mpd, playing random mp3s
I've read azalia(4) and mixerctl(1) but am still at a loss on how to get
it to do what I want. Basically, right now only grn jack gets output.
blk and org are getting nothing. Any ideas? They're appreciated


inputs.dac-8:9=204,204 
inputs.dac-0:1=204,204 
inputs.dac-2:3=234,234 
inputs.dac-4:5=234,234 
inputs.dac-6:7=234,234 
inputs.sel_source=adc-0:1  [ adc-0:1 adc-2:3 adc-4:5 ]
record.adc-0:1_source=hp  [ hp mic line-in line-blk mic2 line-grn ]
record.adc-0:1_mute=off  [ off on ]
record.adc-0:1=124,124 
record.adc-2:3_source=hp  [ hp mic line-in line-blk mic2 line-grn ]
record.adc-2:3_mute=off  [ off on ]
record.adc-2:3=124,124 
record.adc-4:5_source=hp  [ hp mic line-in line-blk mic2 line-grn ]
record.adc-4:5_mute=off  [ off on ]
record.adc-4:5=124,124 
inputs.beep_mute=off  [ off on ]
inputs.beep=119 
outputs.hp_mute=off  [ off on ]
outputs.hp_dir=output  [ none output input input-vr0 input-vr50 input-vr80 
input-vr100 ]
outputs.hp_boost=off  [ off on ]
outputs.line-grn_mute=off  [ off on ]
outputs.line-grn_dir=output  [ none output input input-vr0 input-vr50 
input-vr80 input-vr100 ]
outputs.line-grn_boost=off  [ off on ]
outputs.mic_mute=off  [ off on ]
outputs.mic_dir=input-vr80  [ none output input input-vr0 input-vr50 input-vr80 
input-vr100 ]
outputs.mic_boost=off  [ off on ]
outputs.line-in_mute=off  [ off on ]
outputs.line-in_dir=input  [ none output input input-vr0 input-vr50 input-vr80 
input-vr100 ]
outputs.line-blk_mute=off  [ off on ]
outputs.line-blk_dir=output  [ none output input input-vr0 input-vr50 
input-vr80 input-vr100 ]
outputs.mic2_mute=off  [ off on ]
outputs.mic2_dir=input-vr80  [ none output input input-vr0 input-vr50 
input-vr80 input-vr100 ]
outputs.SPDIF_source=dig-dac-0:1  [ dig-dac-0:1 ]
outputs.SPDIF_mute=off  [ off on ]
outputs.SPDIF=126,126 
inputs.dig-dac-0:1_sou=hdaudio,sel  { hdaudio sel }
inputs.mix2_source=sel11,mix3  { sel11 mix3 }
inputs.mix3_source=mic,sel9,hp,line-grn,sel10,line-blk,cd,other  { mic sel9 hp 
line-grn sel10 line-blk cd other }
inputs.mix3_mic=120,120 
inputs.mix3_sel9=120,120 
inputs.mix3_hp=120,120 
inputs.mix3_line-grn=120,120 
inputs.mix3_sel10=120,120 
inputs.mix3_line-blk=120,120 
inputs.mix3_cd=120,120 
inputs.mix3_other=120 
outputs.mix3_mute=off  [ off on ]
outputs.mix3=248,248 
inputs.hp_source=sel12,mix3  { sel12 mix3 }
outputs.line-org_mute=off  [ off on ]
outputs.line-org_dir=output  [ none output input ]
outputs.line-gry_mute=off  [ off on ]
outputs.line-gry_dir=output  [ none output input ]
inputs.mic2_source=sel8,mix3  { sel8 mix3 }
inputs.line-org_source=dac-2:3,mix3  { dac-2:3 mix3 }
inputs.line-gry_source=dac-6:7,mix3  { dac-6:7 mix3 }
inputs.line-grn_source=dac-0:1,mix3  { dac-0:1 mix3 }
inputs.line-blk_source=dac-4:5,mix3  { dac-4:5 mix3 }
inputs.mic_source=sel6,mix3  { sel6 mix3 }
inputs.line-in_source=sel7,mix3  { sel7 mix3 }
inputs.sel6_source=dac-8:9  [ dac-8:9 dac-0:1 dac-4:5 ]
inputs.sel7_source=dac-0:1  [ dac-0:1 dac-6:7 ]
inputs.sel8_source=dac-2:3  [ dac-2:3 dac-0:1 ]
inputs.sel9_source=line-in  [ line-in line-gry line-org ]
inputs.sel10_source=mic2  [ mic2 line-gry line-org ]
inputs.sel11_source=dac-8:9  [ dac-8:9 dac-0:1 dac-4:5 ]
inputs.sel12_source=dac-8:9  [ dac-8:9 dac-0:1 dac-4:5 ]
inputs.hp=85,85 
inputs.mic=85,85 
inputs.line-in=85,85 
inputs.line-blk=85,85 
inputs.mic2=85,85 
inputs.line-grn=85,85 
outputs.hp_sense=unplugged  [ unplugged plugged ]
outputs.line-grn_sense=plugged  [ unplugged plugged ]
outputs.mic_sense=unplugged  [ unplugged plugged ]
outputs.line-in_sense=unplugged  [ unplugged plugged ]
outputs.line-blk_sense=plugged  [ unplugged plugged ]
outputs.mic2_sense=unplugged  [ unplugged plugged ]
outputs.line-org_sense=plugged  [ unplugged plugged ]
outputs.line-gry_sense=unplugged  [ unplugged plugged ]
outputs.master=204,204 
outputs.master.mute=off  [ off on ]
outputs.master.slaves=dac-8:9,dac-0:1,hp,line-grn,line-org  { dac-8:9 dac-0:1 
dac-2:3 dac-4:5 dac-6:7 beep hp line-grn mic line-in line-blk mic2 SPDIF mix3 
line-org line-gry }
record.volume=124,124 
record.volume.mute=off  [ off on ]
record.volume.slaves=adc-0:1,adc-2:3,adc-4:5  { adc-0:1 adc-2:3 adc-4:5 }
outputs.mode=analog  [ analog digital ]

OpenBSD 4.7-current (GENERIC.MP) #227: Wed Apr 28 11:55:45 MDT 2010
dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP
real mem = 3756523520 (3582MB)
avail mem = 3642810368 (3474MB)
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.4 @ 0xf06e0 (71 entries)
bios0: vendor American Megatrends Inc. version "1202" date 09/08/2008
bios0: ASUSTeK Computer INC. P5K-E
acpi0 at bios0: rev 0
acpi0: tables DSDT FACP APIC MCFG OEMB HPET OSFR
acpi0: wakeup devices P0P2

Re: help with azalia(4) and 6 channels

2010-06-01 Thread Aaron Stellman
On Tue, Jun 01, 2010 at 09:40:07PM -0700, Aaron Stellman wrote:
> Hello,
> First of all, I appreciate all the work that has been put in to making
> azalia knobs more user friendly.
> Now, my goal is to have the same audio signal sent to all 6 channels.

To make it more clear,  I'd like to spread stereo to all channels. I've
grep(1)ed mixerctl output for grn,blk,org to see what's special about
grn, but I fail to see anything that can help me.



Re: help with azalia(4) and 6 channels

2010-06-02 Thread Aaron Stellman
On Tue, Jun 01, 2010 at 11:16:02PM -0700, Aaron Stellman wrote:
> On Tue, Jun 01, 2010 at 09:40:07PM -0700, Aaron Stellman wrote:
> > Hello,
> > First of all, I appreciate all the work that has been put in to making
> > azalia knobs more user friendly.
> > Now, my goal is to have the same audio signal sent to all 6 channels.
> 
> To make it more clear,  I'd like to spread stereo to all channels. I've
> grep(1)ed mixerctl output for grn,blk,org to see what's special about
> grn, but I fail to see anything that can help me.

Seeing that there are no "_source"s for outputs makes me wonder. Perhaps
this azalia device isn't capable of doing this.



Re: help with azalia(4) and 6 channels

2010-06-02 Thread Aaron Stellman
On Wed, Jun 02, 2010 at 07:34:57AM +, Jacob Meuser wrote:
> On Wed, Jun 02, 2010 at 07:23:38AM +, Jacob Meuser wrote:
> > On Tue, Jun 01, 2010 at 09:40:07PM -0700, Aaron Stellman wrote:
> > > Hello,
> > > First of all, I appreciate all the work that has been put in to making
> > > azalia knobs more user friendly.
> > > Now, my goal is to have the same audio signal sent to all 6 channels.
> > > outputs.line-grn_sense=plugged
> > > outputs.line-blk_sense=plugged
> > > outputs.line-org_sense=plugged
> > > I'm running aucat and mpd, playing random mp3s
> > > I've read azalia(4) and mixerctl(1) but am still at a loss on how to get
> > > it to do what I want. Basically, right now only grn jack gets output.
> > > blk and org are getting nothing. Any ideas? They're appreciated
> > 
> > you can't do this with with your hardware, but you can do it with
> > aucat:
> 
> what I mean is, you can't accomplish this by playing with mixerctl,
> but you can accomplish it with aucat.
> 
> > $ aucat -c 0:5 -l
> > 
> > that starts aucat with the normal stereo recording and 6 channel
> > playback, where stereo playback is copied from channels 0:1 to 2:3
> > and 4:5.  at least, it's that easy in -current.
> > 
> > you can't do it with your hardware because:
> > 
> > > inputs.line-org_source=dac-2:3,mix3  { dac-2:3 mix3 }
> > > inputs.line-gry_source=dac-6:7,mix3  { dac-6:7 mix3 }
> > > inputs.line-grn_source=dac-0:1,mix3  { dac-0:1 mix3 }
> > > inputs.line-blk_source=dac-4:5,mix3  { dac-4:5 mix3 }
> 
> with that aucat command, you'll get output on dac-0:1, dac-2:3 and
> dac-4:5, which your green, orange and black jacks use as sources.
Yes, I understand. Thanks for your input. I will test it out as soon as
possible and report back.



Re: help with azalia(4) and 6 channels

2010-06-02 Thread Aaron Stellman
On Wed, Jun 02, 2010 at 07:34:57AM +, Jacob Meuser wrote:
> On Wed, Jun 02, 2010 at 07:23:38AM +, Jacob Meuser wrote:
> > On Tue, Jun 01, 2010 at 09:40:07PM -0700, Aaron Stellman wrote:
> > > Hello,
> > > First of all, I appreciate all the work that has been put in to making
> > > azalia knobs more user friendly.
> > > Now, my goal is to have the same audio signal sent to all 6 channels.
> > > outputs.line-grn_sense=plugged
> > > outputs.line-blk_sense=plugged
> > > outputs.line-org_sense=plugged
> > > I'm running aucat and mpd, playing random mp3s
> > > I've read azalia(4) and mixerctl(1) but am still at a loss on how to get
> > > it to do what I want. Basically, right now only grn jack gets output.
> > > blk and org are getting nothing. Any ideas? They're appreciated
> > 
> > you can't do this with with your hardware, but you can do it with
> > aucat:
> 
> what I mean is, you can't accomplish this by playing with mixerctl,
> but you can accomplish it with aucat.
> 
> > $ aucat -c 0:5 -l
> > 
> > that starts aucat with the normal stereo recording and 6 channel
> > playback, where stereo playback is copied from channels 0:1 to 2:3
> > and 4:5.  at least, it's that easy in -current.
> > 
> > you can't do it with your hardware because:
> > 
> > > inputs.line-org_source=dac-2:3,mix3  { dac-2:3 mix3 }
> > > inputs.line-gry_source=dac-6:7,mix3  { dac-6:7 mix3 }
> > > inputs.line-grn_source=dac-0:1,mix3  { dac-0:1 mix3 }
> > > inputs.line-blk_source=dac-4:5,mix3  { dac-4:5 mix3 }
> 
> with that aucat command, you'll get output on dac-0:1, dac-2:3 and
> dac-4:5, which your green, orange and black jacks use as sources.
Thanks, aucat solution seems to work quite well



azalia0 misbehaving

2010-09-03 Thread Aaron Stellman
Hello,

Having some issues with azalia(4) in a thinkpad T61, and perhaps aucat
may have something to do with it too.
Very simple setup, listening to mpd playing audio streams from another
mpd running on another machine. Sound skips at times, coinciding with
the following messages in dmesg:

azalia0: stream 1: sts=28
azalia0: stream 1: sts=28
azalia0: stream 1: sts=28
azalia0: stream 1: sts=28
azalia0: stream 1: sts=28
azalia0: stream 1: sts=2c
azalia0: stream 1: sts=28
azalia0: stream 1: sts=28
azalia0: stream 1: sts=28
azalia0: stream 1: sts=28
azalia0: stream 1: sts=28
azalia0: stream 1: sts=28
azalia0: stream 1: sts=2c
azalia0: stream 1: sts=28
azalia0: stream 1: sts=28
azalia0: stream 1: sts=28

$ dmesg  | grep azalia | wc -l
 582

Sometimes aucat just exits by itself, sometimes doesn't.
$ sudo aucat -
sio(default|): created
default: recording s16le,0:1,44100
default: playing s16le,0:1,44100
mix(play): newin, will use 11648
default: block size is 2912 frames, using 4 blocks
defa...@default: rec=0:1 play=0:1 vol=32768
listen(/tmp/aucat/softaudio0|): created
sock(sock|): created
sock/hel|rmsg|widl: HELLO message
sock/hel|rmsg|widl: hello from , proto = 1, ver 3
default: option found
device requested
ctl(ctl): new control name is mpd0
ctl(ctl): overwritten slot 0
sock/hel|rmsg|widl: no read buffer to set volume yet
mpd0(127)/off: changing volume to 127
mpd0/ini|rmsg|widl: SETPAR message
mpd0/ini|rmsg|widl: using 16bits, 2 bytes per sample
mpd0/ini|rmsg|widl: using playback channels 0..1
mpd0/ini|rmsg|widl: using 44100Hz sample rate, 2912 fr block size
mpd0/ini|rmsg|widl: using 11648 buffer size
mpd0: buffer size = 11648, play = s16le,0:1,44100
mpd0/ini|rmsg|widl: GETPAR message
mpd0/ini|rret|widl: RRET done
mpd0/ini|rmsg|widl: GETPAR message
mpd0/ini|rret|widl: RRET done
mpd0/ini|rmsg|widl: GETPAR message
mpd0/ini|rret|widl: RRET done
mpd0/ini|rmsg|widl: START message
mpd0/sta|rmsg|widl: allocating 11648/23296 fr buffers, rmax = 93184
mpd0/run|rmsg|widl: attaching at 0
rsock(sock)->mix(play): setmaster: 32768/32768
syncing device, mix(play): todo = 0: lat = 0, sub(rec): lat = 0
rsock(sock)->mix(play): setting volume to 32768
starting device
sio(default|): started
sio(default|): busy loop, disconnecting
sio(default|): disconnected
sio(default|eh): eof
rsio(default): eof
rsio(default): terminating...
rsio(default): done
rsio(default)->sub(rec): eof requested
sub(rec): terminating...
sub(rec): free delayed
wsio(default): terminating...
wsio(default): done
mix(play)->wsio(default): hup requested
mix(play): hup
mix(play): terminating...
rsock(sock)->mix(play): hup requested
rsock(sock): hup
rsock(sock): terminating...
rsock(sock): done
mpd0/ini|rmsg|widl: freeing buffers
wsock(sock): terminating...
wsock(sock): done
wsock(sock): freed
sock(sock|w): terminating...
sock(sock|w): destroyed
device released
rsock(sock): freed
mix(play): free delayed
sio(default|Reh): terminating...
wsio(default): free delayed
rsio(default): free delayed
sio(default|hZ): terminating...
sio(default|hZ): destroyed
sio(default|hZ): stopped
device disappeared
closing device
ctl(ctl): terminating...
ctl(ctl): done
ctl(ctl): free delayed
zomb(play): freed
zomb(default): freed
zomb(rec): freed
zomb(default): freed
zomb(ctl): freed
listen(/tmp/aucat/softaudio0|): closing
listen(/tmp/aucat/softaudio0|Z): terminating...
listen(/tmp/aucat/softaudio0|Z): destroyed
nothing to do...

These events tend to happen when I switch virtual screens in scrotwm..
Haven't tried on other WMs.

Usually I run it like this:
$ grep aucat /etc/rc.conf.local 
aucat_flags="-l"# for normal use: ""


OpenBSD 4.8-beta (GENERIC.MP) #297: Thu Aug  5 21:35:12 MDT 2010
dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP
real mem = 2103115776 (2005MB)
avail mem = 2033311744 (1939MB)
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.4 @ 0xe0010 (73 entries)
bios0: vendor LENOVO version "7LETC7WW (2.27 )" date 04/08/2010
bios0: LENOVO 7658CTO
acpi0 at bios0: rev 2
acpi0: sleep states S0 S3 S4 S5
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
acpiec0 at acpi0
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.40 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,SSSE3,CX16,xTPR,PDCM,SSE4.1,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,C

Re: azalia0 misbehaving

2010-09-04 Thread Aaron Stellman
On Sat, Sep 04, 2010 at 08:10:55AM +, Jacob Meuser wrote:
> On Sat, Sep 04, 2010 at 07:39:27AM +, Jacob Meuser wrote:
> > On Fri, Sep 03, 2010 at 11:26:01PM -0700, Aaron Stellman wrote:
> > > Hello,
> > > 
> > > Having some issues with azalia(4) in a thinkpad T61, and perhaps aucat
> > > may have something to do with it too.
> > > Very simple setup, listening to mpd playing audio streams from another
> > > mpd running on another machine. Sound skips at times, coinciding with
> > > the following messages in dmesg:
> > 
> > when did this start?
> > 
> > > azalia0: stream 1: sts=28
> 
> > > OpenBSD 4.8-beta (GENERIC.MP) #297: Thu Aug  5 21:35:12 MDT 2010
> 
> you want changes that went in the next day.  and maybe the next few days
> too.
Upgraded to latest snapshot, and so far unable to reproduce. Much
thanks. Will write back in case this happens again.



Re: blank virtual consoles, blank screen after exiting X11

2010-09-06 Thread Aaron Stellman
On Sun, Sep 05, 2010 at 09:40:07PM -0500, Peter Miller wrote:
> using a current amd64 or i386 snapshot i can't see any output on the
> virtual consoles after starting X11. I'm using a lenovo t410i
> 
> Once i start X and do ctrl+alt+f1 there is just a blank screen. The same
> thing happens when i kill X and try to shut down my cpu. After exiting
> X11 there is just a blank screen.
> 
> I can still type 'reboot' or other commands to shutdown the computer, i
> just can't see anything. Also, i can restart X11 from the blank console
> and it starts back up without a hitch.

Same thing happens here on T61, but it's intermittent.


OpenBSD 4.8-beta (GENERIC.MP) #297: Thu Aug  5 21:35:12 MDT 2010
dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP
real mem = 2103115776 (2005MB)
avail mem = 2033311744 (1939MB)
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.4 @ 0xe0010 (73 entries)
bios0: vendor LENOVO version "7LETC7WW (2.27 )" date 04/08/2010
bios0: LENOVO 7658CTO
acpi0 at bios0: rev 2
acpi0: sleep states S0 S3 S4 S5
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
acpiec0 at acpi0
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.40 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,SSSE3,CX16,xTPR,PDCM,SSE4.1,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,SSSE3,CX16,xTPR,PDCM,SSE4.1,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)
acpicpu0 at acpi0: C3, C2, C1, PSS
acpicpu1 at acpi0: C3, C2, C1, PSS
acpipwrres0 at acpi0: PUBS
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
acpidock0 at acpi0: GDCK not docked (0)
cpu0: Enhanced SpeedStep 2394 MHz: speeds: 2401, 2400, 2000, 1600, 1200, 800 MHz
pci0 at mainbus0 bus 0
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 1 int 16 (irq 10)
drm0 at inteldrm0
"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 00:1c:25:76:fa:ea
uhci0 at pci0 dev 26 function 0 "Intel 82801H USB" rev 0x03: apic 1 int 20 (irq 
11)
uhci1 at pci0 dev 26 function 1 "Intel 82801H USB" rev 0x03: apic 1 int 21 (irq 
11)
ehci0 at pci0 dev 26 function 7 "Intel 82801H USB" rev 0x03: apic 1 int 22 (irq 
11)
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 0x03: apic 1 int 
17 (irq 11)
azalia0: codecs: Analog Devices AD1984, Conexant/0x2bfa, using Analog Devices 
AD1984
audio0 at azalia0
ppb0 at pci0 dev 28 function 0 "Intel 82801H PCIE" rev 0x03: apic 1 int 20 (irq 
11)
pci1 at ppb0 bus 2
ppb1 at pci0 dev 28 function 1 "Intel 82801H PCIE" rev 0x03: apic 1 int 21 (irq 
11)
pci2 at ppb1 bus 3
iwn0 at pci2 dev 0 function 0 "Intel Wireless WiFi Link 4965" rev 0x61: apic 1 
int 17 (irq 11), MIMO 2T3R, MoW1, address 00:1f:3b:03:b1:59
ppb2 at pci0 dev 28 function 2 "Intel 82801H PCIE" rev 0x03: apic 1 int 22 (irq 
11)
pci3 at ppb2 bus 4
ppb3 at pci0 dev 28 function 3 "Intel 82801H PCIE" rev 0x03: apic 1 int 23 (irq 
11)
pci4 at ppb3 bus 5
ppb4 at pci0 dev 28 function 4 "Intel 82801H PCIE" rev 0x03: apic 1 int 20 (irq 
11)
pci5 at ppb4 bus 13
uhci2 at pci0 dev 29 function 0 "Intel 82801H USB" rev 0x03: apic 1 int 16 (irq 
10)
uhci3 at pci0 dev 29 function 1 "Intel 82801H USB" rev 0x03: 

Re: blank virtual consoles, blank screen after exiting X11

2010-09-10 Thread Aaron Stellman
On Mon, Sep 06, 2010 at 11:20:21AM -0600, Theo de Raadt wrote:
> > On Sun, Sep 05, 2010 at 09:40:07PM -0500, Peter Miller wrote:
> > > using a current amd64 or i386 snapshot i can't see any output on the
> > > virtual consoles after starting X11. I'm using a lenovo t410i
> > > 
> > > Once i start X and do ctrl+alt+f1 there is just a blank screen. The same
> > > thing happens when i kill X and try to shut down my cpu. After exiting
> > > X11 there is just a blank screen.
> > > 
> > > I can still type 'reboot' or other commands to shutdown the computer, i
> > > just can't see anything. Also, i can restart X11 from the blank console
> > > and it starts back up without a hitch.
> > 
> > Same thing happens here on T61, but it's intermittent.
> 
> Please be very careful to make sure that you are using the latest X
> snapshots, or building your own X.
> 
> I cannot put enough stress ... on the poohole X can be.

I try to avoid building anything, so yes, I am running snapshots.



acpitz0 keeps yelling

2010-09-10 Thread Aaron Stellman
Hello misc,

I have a little box that is made to be a router, it works fine. The only
problem is that acpitz0 keeps printing weird stuff..
It has latest bios flashed.

acpidump is at http://www.x96.org/files/acpidump.tar.gz

acpitz0: \M-V'>\M-P\M^T\M-z\M-+\M-P[0] _PR0 failed
acpitz0: \M-V'>\M-P\M^T\M-z\M-+\M-P[0] _PR0 failed
acpitz0: \M-V'>\M-P\M^T\M-z\M-+\M-P[0] _PR0 failed
acpitz0: \M-V'>\M-P\M^T\M-z\M-+\M-P[0] _PR0 failed
acpitz0: \M-V'>\M-P\M^T\M-z\M-+\M-P[0] _PR0 failed
acpitz0: \M-V'>\M-P\M^T\M-z\M-+\M-P[0] _PR0 failed
acpitz0: \M-V'>\M-P\M^T\M-z\M-+\M-P[0] _PR0 failed
acpitz0: [0] _PR0 failed
acpitz0: \M-V'>\M-P[0] _PR0 failed
acpitz0: \M-V'>\M-P[0] _PR0 failed
acpitz0: \M-V'>\M-P\M^T\M-z\M-+\M-P[0] _PR0 failed
acpitz0: \M-V'>\M-P\M^T\M-z\M-+\M-P[0] _PR0 failed
acpitz0: \M-V'>\M-P\M^T\M-z\M-+\M-P[0] _PR0 failed
acpitz0: \M-V'>\M-P\M^T\M-z\M-+\M-P[0] _PR0 failed
acpitz0: \M-V'>\M-P\M^T\M-z\M-+\M-P[0] _PR0 failed
acpitz0: \M-V'>\M-P\M^T\M-z\M-+\M-P[0] _PR0 failed
acpitz0: \M-V'>\M-P\M^T\M-z\M-+\M-P[0] _PR0 failed
acpitz0: [0] _PR0 failed
acpitz0: \M-V'>\M-P\M^T\M-z\M-+\M-P[0] _PR0 failed
acpitz0: \M-V'>\M-P[0] _PR0 failed
acpitz0: \M-V'>\M-P[0] _PR0 failed
acpitz0: \M-V'>\M-P\M^T\M-z\M-+\M-P[0] _PR0 failed
acpitz0: \M-V'>\M-P\M^T\M-z\M-+\M-P[0] _PR0 failed
acpitz0: \M-V'>\M-P\M^T\M-z\M-+\M-P[0] _PR0 failed
acpitz0: \M-V'>\M-P\M^T\M-z\M-+\M-P[0] _PR0 failed
acpitz0: \M-V'>\M-P\M^T\M-z\M-+\M-P[0] _PR0 failed
acpitz0: \M-V'>\M-P\M^T\M-z\M-+\M-P[0] _PR0 failed
acpitz0: \M-V'>\M-P\M^T\M-z\M-+\M-P[0] _PR0 failed
acpitz0: \M-V'>\M-P\M^T\M-z\M-+\M-P[0] _PR0 failed
acpitz0: \M-V'>\M-P\M^T\M-z\M-+\M-P[0] _PR0 failed
acpitz0: \M-V'>\M-P\M^T\M-z\M-+\M-P[0] _PR0 failed
acpitz0: \M-V'>\M-P\M^T\M-z\M-+\M-P[0] _PR0 failed
acpitz0: \M-V'>\M-P\M^T\M-z\M-+\M-P[0] _PR0 failed
acpitz0: \M-V'>\M-P[0] _PR0 failed
acpitz0: \M-V'>\M-P[0] _PR0 failed
acpitz0: \M-V'>\M-P\M^T\M-z\M-+\M-P[0] _PR0 failed
acpitz0: \M-V'>\M-P\M^T\M-z\M-+\M-P[0] _PR0 failed
acpitz0: \M-V'>\M-P\M^T\M-z\M-+\M-P[0] _PR0 failed
acpitz0: \M-V'>\M-P\M^T\M-z\M-+\M-P[0] _PR0 failed
acpitz0: \M-V'>\M-P\M^T\M-z\M-+\M-P[0] _PR0 failed
acpitz0: \M-V'>\M-P\M^T\M-z\M-+\M-P[0] _PR0 failed
acpitz0: \M-V'>\M-P\M^T\M-z\M-+\M-P[0] _PR0 failed
acpitz0: \M-V'>\M-P[0] _PR0 failed
acpitz0: \M-V'>\M-P[0] _PR0 failed
acpitz0: \M-V'>\M-P\M^T\M-z\M-+\M-P[0] _PR0 failed
acpitz0: \M-V'>\M-P\M^T\M-z\M-+\M-P[0] _PR0 failed
acpitz0: \M-V'>\M-P\M^T\M-z\M-+\M-P[0] _PR0 failed


OpenBSD 4.8-current (GENERIC) #324: Mon Sep  6 15:48:48 MDT 2010
dera...@i386.openbsd.org:/usr/src/sys/arch/i386/compile/GENERIC
cpu0: Intel(R) Atom(TM) CPU 230 @ 1.60GHz ("GenuineIntel" 686-class) 1.61 GHz
cpu0: 
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,SSE3,MWAIT,DS-CPL,TM2,SSSE3,CX16,xTPR,PDCM,MOVBE
real mem  = 1063415808 (1014MB)
avail mem = 1036066816 (988MB)
mainbus0 at root
bios0 at mainbus0: AT/286+ BIOS, date 02/26/10, BIOS32 rev. 0 @ 0xfaa50, SMBIOS 
rev. 2.2 @ 0xf (39 entries)
bios0: vendor Phoenix Technologies, LTD version "6.00 PG" date 02/26/2010
acpi0 at bios0: rev 0
acpi0: sleep states S0 S1 S4 S5
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(S4) USB1(S4) USB2(S4) USB3(S4) USBE(S4) 
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 133MHz
cpu at mainbus0: not configured
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 -1 (PEX1)
acpiprt3 at acpi0: bus -1 (PEX2)
acpiprt4 at acpi0: bus -1 (PEX3)
acpiprt5 at acpi0: bus -1 (PEX4)
acpiprt6 at acpi0: bus -1 (PEX5)
acpiprt7 at acpi0: bus 2 (HUB0)
acpicpu0 at acpi0
acpitz0 at acpi0: critical temperature 100 degC
acpibtn0 at acpi0: PWRB
bios0: ROM list: 0xc/0xae00!
pci0 at mainbus0 bus 0: configuration mode 1 (bios)
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)
intagp0 at vga1
agp0 at intagp0: aperture at 0xd000, size 0x1000
inteldrm0 at vga1: apic 4 int 16 (irq 10)
drm0 at inteldrm0
azalia0 at pci0 dev 27 function 0 "Intel 82801GB HD Audio" rev 0x01: apic 4 int 
16 (irq 10)
azalia0: codecs: Realtek ALC662
audio0 at azalia0
ppb0 at pci0 dev 28 function 0 "Intel 82801GB PCIE" rev 0x01: apic 4 int 16 
(irq 10)
pci1 at ppb0 bus 1
re0 at pci1 dev 0 function 0 "Realtek 8168" rev 0x02: RTL8168C/8111C (0x3c00), 
apic 4 int 16 (irq 10), address 00:30:18:af:23:06
rgephy0 at re0 phy 7: RTL8169S/8110S PHY, rev. 2
uhci0 at pci0 dev 29 function 0 "Intel 82801GB USB" rev 0x01: apic 4 int 23 
(irq 9)
uhci1 at pci0 

Re: pf.conf and dns names

2009-12-28 Thread Aaron Stellman
On Mon, Dec 28, 2009 at 10:11:36PM +0100, Didier Wiroth wrote:
> Hello,
> (running current on a soekris  5501 box)
> I'm using an OpenBSD DSL router at home. After I reboot my dsl router, it 
> takes 1 to 3 minutes before the DSL line is up and to the router to be 
> functional. When looking at the console it hangs at the following line:
> add default 0.0.0.1
> After 1-3 minutes the router finishes to start it's network services and is 
> able to route traffic and run normally.
> 
> By the way, here is my hostname.pppoe0:
> inet 0.0.0.0 255.255.255.255 0.0.0.1 -inet6 pppoedev re0\
> authproto pap authname xyz authkey xyz up
> !/sbin/route add default 0.0.0.1
> 
> I would like to restrict some boxes in my home network to connect only to 
> specific hosts and ports like this:
> boxes="{ 172.16.43.34,172.16.43.35 }"
> host1="somehost.somewhere.org"
> host2="somehost2.somewhere.org"
> port1="{ ,1 }"
> port2="2"
> pass in on $int_if inet proto tcp from $boxes to $host1 port $port1\
> tag allowed1
> pass in on $int_if inet proto tcp from $boxes to $host2 port $port2\
> tag allowed1
> pass out quick on $ext_if nat-to ($ext_if) tagged allowed1
> 
> Well ... here are my problems. The $host{1,2} are DynamicDNS clients which 
> IPs 
> can change from time to time. I don't know when they change and I don't have 
> a hand on these machines. 
> 
> My questions:
> 1) When I reboot my router, pf.conf fails to load due to the 1-3 minutes 
> delay. The 2 hosts are not resolved and there is an error message that 
> pf.conf cannot be loaded.
> How can I resolve this problem?

PF tries to load /etc/pf.conf rules before any other network daemon is
stared. That includes named(8). This has been discussed many times on
misc@

> 2) If the $host{1,2} change after I've loaded my pf rules, how can I track 
> the 
> IP changes of these hosts and make pf reload their updated IP adresses.

You can come up with many ways of doing it. One example could be a
cronjob that tries to resolve some hostnames and update a PF table..



Re: Parental filter

2010-01-17 Thread Aaron Stellman
On Sun, Jan 17, 2010 at 07:27:47PM -0600, Matt Bettinger wrote:
> On Sun, Jan 17, 2010 at 5:53 PM, Marco Peereboom  wrote:
> > It's crazy what a teenager around the house causes...
> >
> > It keeps him out of trouble...
> >
> > On Sun, Jan 17, 2010 at 03:28:49PM -0800, James Hozier wrote:
> >> To be honest, I'd be a little worried if you didn't
> >>
> 
> 
> You might want to look at the filtering offered ( for 'free' )  by
> using opendns.org 's dns servers as well.

This is just garbage. Not only you are not in control of what's filtered,
you are also redirected to various ads when trying to resolve
unregistered domain names.



Re: SHA256 mismatch on base46.tgz in 20 Jan i386 snapshot

2010-01-22 Thread Aaron Stellman
On Fri, Jan 22, 2010 at 10:05:13PM -0800, James Hartley wrote:
> A quick search in the misc@ archives & PR database didn't reveal that anyone
> has mentioned this before.
> 
> In installing the 20 January (#511) i386 snapshot, I received a SHA256
> mismatch on base46.tgz.  Otherwise, the snapshot installs as expected.
> 
> FYI & FWIW.
> 
> Jim
> 
I did get the same mismatch, to be clear, it's on amd64



Re: MPD-0.15.7 will not do httpd streamingi on my system.

2010-01-29 Thread Aaron Stellman
On Fri, Jan 29, 2010 at 08:05:46PM -0500, s.casw...@protocol6.com wrote:
> Hi.
> 
> I'm at my wits end with httpd streaming from mpd-0.15.7.
>   
> I installed the latest mpd package from snapshots and its installs fine on my 
> Openbsd -current system.
>   
> I modified the /etc/mpd.conf file by adding my music directory and set the 
> bind_to_address to "any" 

Is that the only audio_output that's defined? When I had two defined,
only the first one worked. 

>   
> audio_output {
>type"httpd"
>name"My HTTP Stream"
>encoder "vorbis"# optional, vorbis or lame
>port"8000"
>  # quality "5.0"   # do not define if bitrate is
>bitrate "128"   # do not define if quality is
>format  "44100:16:1"
> }
>   
>   
> All this makes the control port 6600 show up (in netstat), but I can't for 
> the life of me get port 8000 to be open - thus no streaming.
> 
> I've tried to start mpd via "sudo mpd" and that still doesn't help.
>   
> Is there something I'm missing? 
>   
> Any thoughts would be greatly appreciated.
>  
> :-)
>   
> Sarah
>   
>   
> P.S.:  My music files are all mp3 files, but varying the encoder setting 
> above make no difference.
> 
> 
> 
> -- 
> "Not everything that can be counted, counts; and not everything that counts 
> can be counted." - Albert Einstein



Re: writing to usb very slow

2010-02-11 Thread Aaron Stellman
On Sat, Jan 16, 2010 at 01:44:49AM +0100, T. Tofus von Blisstein wrote:
> Hello,
> 
> I have noticed that writing to a usb drive is "slow".
> 
> What does "slow" mean?
> 
> It means that compared to other OS's.
> 
> Which OS's?
> 
> Yes, it hurts: the penguin.
Hello there,
I came across a cheap USB flash drive, particularly a SanDisk Cruzer U3:

umass0 at uhub1 port 1 configuration 1 interface 0 "SanDisk SanDisk Cruzer" rev 
2.00/2.00 addr 2
umass0: using SCSI over Bulk-Only
scsibus3 at umass0: 2 targets, initiator 0
sd1 at scsibus3 targ 1 lun 0:  SCSI0 0/direct 
removable
sd1: 3863MB, 512 bytes/sec, 7913471 sec total

Reading and writing from/to a raw disk "/dev/rsd1c" gives same exact
rates as on other OSes:

$ sudo dd if=/dev/rsd1c of=/dev/null bs=128k count=1600
1600+0 records in
1600+0 records out
209715200 bytes transferred in 8.822 secs (23771541 bytes/sec)

$ sudo dd if=/dev/zero of=/dev/rsd1c bs=128k count=1600
1600+0 records in
1600+0 records out
209715200 bytes transferred in 19.253 secs (10892315 bytes/sec)

Which are reasonable numbers.
Now let's put a filesystem on it:

$ sudo fdisk -i sd1
Do you wish to write new MBR and partition table? [n] y
Writing MBR at offset 0.
$ sudo disklabel -E sd1
Label editor (enter '?' for help at any prompt)
> a
partition: [a] 
offset: [63] 
size: [7903917] 
FS type: [4.2BSD] 
> w
> q
No label changes.
$ sudo newfs sd1a
/dev/rsd1a: 3859.3MB in 7903916 sectors of 512 bytes
20 cylinder groups of 202.47MB, 12958 blocks, 25984 inodes each
super-block backups (for fsck -b #) at:
 32, 414688, 829344, 1244000, 1658656, 2073312, 2487968, 2902624, 3317280, 
3731936, 4146592,
 4561248, 4975904, 5390560, 5805216, 6219872, 6634528, 7049184, 7463840, 
7878496,
$ sudo mount /dev/sd1a /mnt/test; cd /mnt/test
$ sudo dd if=/dev/zero of=./x bs=128k count=1600
1600+0 records in
1600+0 records out
209715200 bytes transferred in 254.224 secs (824923 bytes/sec)
(confirmed that pengingwrites is 0 right after dd exits with systat
iostat)

As you can see here, 800KB/s is quite low, compared to raw read rate.
What can be the cause? I don't know, but let's try formatting sd1a with
frag-size of 8192 and block-size of 65536
...
(same exact sequence of steps as above, just adjust frag-size and
block-size)
...

$ time (sudo dd if=/dev/zero of=./x bs=128k count=3200; sync)
3200+0 records in
3200+0 records out
419430400 bytes transferred in 21.194 secs (19789417 bytes/sec)
0m42.44s real 0m0.00s user 0m0.33s syste

419430400/42.44=9,882,902.92 That's almost 10MB/s
Perhaps people who are having problems with their "slow" USB flash
drives can try the same experiment, see if it helps.



Re: New Jacek Book

2010-02-15 Thread Aaron Stellman
On Mon, Feb 15, 2010 at 09:33:15PM +0400, open...@e-solutions.re wrote:
> Hi,
> 
> He has just updated his website with a new book :
> http://www.devguide.net/books/ooocfaft1
> So he's alive ! He doesn't send our pdf. It is not serious ! I spent my
> money in the vaccum !
> 
> So am i, i purchased his "OpenBSD companion command line" on 14 september
> 2009, i ve also Paypal receipt. I never received my pdf or print book.
> On 14 october 2009, i "re-purchased" using Paypal the book : "Building
> firewall with OpenBSD and PF Third Ed". I never received my pdf or print
> book.
> I have the 2 paypal receipts. *
> 
> If someone has a copy of these books...?
> Thank's
> 

Nobody sane will give you a copy of copyrighted material,
especially on a public mailing list. This matter shouldn't even be
discussed here.



Re: New Jacek Book

2010-02-15 Thread Aaron Stellman
On Mon, Feb 15, 2010 at 08:49:48PM +0200, Lars Nooden wrote:
> Here, Aaron, download some copyrighted material all you want regardless
> of the sanity of these fellows:
>   http://openbsd.org/ftp.html
> 
> Be sure to use a mirror.  Here's some more copyrighted material.
>   http://openssh.org/portable.html
> 
> And even more:
>   http://www.openbsdsupport.org/
>   http://search.creativecommons.org/
>   http://www.plos.org/
> 
> /Lars

Sure, the author of copyrighted material can do whatever s?he wants.
Point is, Jacek presumably makes profit from his copyrighted material, 
and thus anyone, other than Jacek, sharing this material here violates 
the copyright, unless Jacek gave permission.



Re: Kernel msg creating a ISO file from CD-ROM

2009-09-06 Thread Aaron Stellman
On Mon, Sep 07, 2009 at 02:45:33AM +0200, Jesus Sanchez wrote:
> on 4.5 stable.
> 
> I'm using a CD drive with no problem until I need to create an ISO file
> from a data CD-ROM for what I use this:
> 
> # dd if=/dev/rcd0c bs=32k > image.iso
> 
If you know the size in bytes of the iso file that was burned on to the
CD, you could do something like:
$ dd if=/dev/rcd0a bs=2k count= of=/tmp/x.iso



Re: tmux neww syntax

2009-09-21 Thread Aaron Stellman
On Tue, Sep 22, 2009 at 03:27:21AM +0200, frantisek holop wrote:
> hi there,
> 
> i am having difficulties understanding the syntax tmux
> new-windows command.  if i read it correctly, this is the
> equivalent of screen's "screen" command.
> 
> i am trying to do the screen equivalent of this:

> # -
> newwvmstat 5
> newwmutt
> newwksh
> newwksh
> newwksh
> newwbin/pflog.sh
> 
> selectw 2
> # -
take a look at
./examples/n-marriott.conf in
http://downloads.sourceforge.net/tmux/tmux-1.0.tar.gz



Re: instable vpn after upgrading to 4.8

2010-12-23 Thread Aaron Stellman
On Mon, Dec 20, 2010 at 11:54:57PM +0100, Axel Rau wrote:
> Am 20.12.2010 um 12:50 schrieb Axel Rau:
> 
> > After upgrading to 4.8 (stable) the vpn starts blocking in one
> > direction after 2 days of uptime of the gateway pair.
> Today it took only 2 hours to start blocking.
> Blocking cab be prevented by keeping a ping running.

I have started experiencing similar stuff around 3 months ago. It never happened
before 3 months ago, and I haven't changed any PF/IPsec settings.
Unfortunately, I am unable to track it down though, so this kind of bug
report is useless.

I tunnel out imap connections, so it's easy to notice any problems with IPsec
tunnel. Once it happens, it takes around 10 minutes for tunnel to recover.

I will try to see if I can get more details.

OpenBSD 4.8-current (GENERIC) #460: Sat Oct 30 10:30:25 MDT 2010
dera...@i386.openbsd.org:/usr/src/sys/arch/i386/compile/GENERIC
cpu0: Intel(R) Celeron(R) CPU 2.66GHz ("GenuineIntel" 686-class) 2.68 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,TM2,CNXT-ID,CX16,xTPR
real mem  = 535326720 (510MB)
avail mem = 516562944 (492MB)
mainbus0 at root
bios0 at mainbus0: AT/286+ BIOS, date 12/26/06, BIOS32 rev. 0 @ 0xfa9e0, SMBIOS 
rev. 2.3 @ 0xf0100 (34 entries)
bios0: vendor Award Software International, Inc. version "FA" date 12/26/2006
bios0: Gigabyte Technology Co., Ltd. 8I865GME-775-RH
acpi0 at bios0: rev 0
acpi0: sleep states S0 S1 S4 S5
acpi0: tables DSDT FACP APIC
acpi0: wakeup devices HUB0(S4) USB0(S1) USB1(S1) USB2(S1) USB3(S1) USBE(S1) 
PCI0(S4)
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 133MHz
ioapic0 at mainbus0: apid 2 pa 0xfec0, version 20, 24 pins
ioapic0: misconfigured as apic 4, remapped to apid 2
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus 1 (HUB0)
acpicpu0 at acpi0
acpitz0 at acpi0: critical temperature 75 degC
acpibtn0 at acpi0: PWRB
bios0: ROM list: 0xc/0xa400!
pci0 at mainbus0 bus 0: configuration mode 1 (bios)
pchb0 at pci0 dev 0 function 0 "Intel 82865G Host" rev 0x02
vga1 at pci0 dev 2 function 0 "Intel 82865G Video" rev 0x02
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 0xf000, size 0x800
inteldrm0 at vga1: apic 2 int 16 (irq 5)
drm0 at inteldrm0
uhci0 at pci0 dev 29 function 0 "Intel 82801EB/ER USB" rev 0x02: apic 2 int 16 
(irq 5)
uhci1 at pci0 dev 29 function 1 "Intel 82801EB/ER USB" rev 0x02: apic 2 int 19 
(irq 6)
uhci2 at pci0 dev 29 function 2 "Intel 82801EB/ER USB" rev 0x02: apic 2 int 18 
(irq 11)
uhci3 at pci0 dev 29 function 3 "Intel 82801EB/ER USB" rev 0x02: apic 2 int 16 
(irq 5)
ehci0 at pci0 dev 29 function 7 "Intel 82801EB/ER USB2" rev 0x02: apic 2 int 23 
(irq 9)
usb0 at ehci0: USB revision 2.0
uhub0 at usb0 "Intel EHCI root hub" rev 2.00/1.00 addr 1
ppb0 at pci0 dev 30 function 0 "Intel 82801BA Hub-to-PCI" rev 0xc2
pci1 at ppb0 bus 1
fxp0 at pci1 dev 8 function 0 "Intel PRO/100 VE" rev 0x02, i82562: apic 2 int 
20 (irq 10), address 00:16:e6:d9:0f:eb
inphy0 at fxp0 phy 1: i82562G 10/100 PHY, rev. 0
ichpcib0 at pci0 dev 31 function 0 "Intel 82801EB/ER LPC" rev 0x02
pciide0 at pci0 dev 31 function 2 "Intel 82801EB SATA" rev 0x02: DMA, channel 0 
configured to compatibility, channel 1 configured to compatibility
wd0 at pciide0 channel 0 drive 0: 
wd0: 16-sector PIO, LBA48, 76318MB, 156299375 sectors
wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 6
ichiic0 at pci0 dev 31 function 3 "Intel 82801EB/ER SMBus" rev 0x02: apic 2 int 
17 (irq 3)
iic0 at ichiic0
spdmem0 at iic0 addr 0x50: 512MB DDR SDRAM non-parity PC3200CL3.0
usb1 at uhci0: USB revision 1.0
uhub1 at usb1 "Intel UHCI root hub" rev 1.00/1.00 addr 1
usb2 at uhci1: USB revision 1.0
uhub2 at usb2 "Intel UHCI root hub" rev 1.00/1.00 addr 1
usb3 at uhci2: USB revision 1.0
uhub3 at usb3 "Intel UHCI root hub" rev 1.00/1.00 addr 1
usb4 at uhci3: USB revision 1.0
uhub4 at usb4 "Intel UHCI root hub" rev 1.00/1.00 addr 1
isa0 at ichpcib0
isadma0 at isa0
com0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo
pckbc0 at isa0 port 0x60/5
pckbd0 at pckbc0 (kbd slot)
pckbc0: using irq 1 for kbd slot
wskbd0 at pckbd0: console keyboard, using wsdisplay0
pms0 at pckbc0 (aux slot)
pckbc0: using irq 12 for aux slot
wsmouse0 at pms0 mux 0
pcppi0 at isa0 port 0x61
spkr0 at pcppi0
lpt0 at isa0 port 0x378/4 irq 7
it0 at isa0 port 0x2e/2: IT8718F rev 2, EC port 0x290
npx0 at isa0 port 0xf0/16: reported by CPUID; using exception 16
mtrr: Pentium Pro MTRR support