Re: Anyone playing with Active Protection System (hdaps) here ?

2010-08-08 Thread Dmitrij D. Czarkoff
aaron lewis aaron.lewis1...@gmail.com wrote:
 I think i should put a limit via sysctl  , right ?

Hmm... Limit what? You want to limit X_ACCEL and Y_ACCEL? I'm not quite sure
about that being possible.

As far as I understand, this feature is a kind of anti-theft protection.

What do You want to get from this feature? If You want to know the movement of
Your laptop You might be interested in writing some daemon (script?) that
polls the state of X_ACCEL and Y_ACCEL and mails You some helpful data if
values exceeded something. Still, useful report would need some instant mean
of communication (e.g. WiMax or cellular connection) and some means of
position tracking (GPS?). Do You have those undetachable?

--
Dmitrij D. Czarkoff



developing openbsd?

2010-08-08 Thread Jay K
I've looked all over www.openbsd.org.
Any sort of guide/projects for new wannabe developers?
 (not new to programming)
Just the bug list?
Fix something  send diffs?

 - Jay



Re: developing openbsd?

2010-08-08 Thread Marc Espie
On Sun, Aug 08, 2010 at 08:23:03AM +, Jay K wrote:
 I've looked all over www.openbsd.org.
 Any sort of guide/projects for new wannabe developers?
  (not new to programming)
 Just the bug list?
 Fix something  send diffs?

If you're serious about this, just use OpenBSD intensively.
After a few weeks/months, you'll notice things that will irritate you.

The other thing you should do is read those mailing-lists and follow
instructions. Each time we ask for patch testers.  This is a good way
to help and to get a feel as to how things work.

It's not complicated really. Everyone smart enough to become a developer
soon figures things out by himself.



Re: Anyone playing with Active Protection System (hdaps) here ?

2010-08-08 Thread Aaron Lewis
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 08/08/2010 02:22 PM, Dmitrij D. Czarkoff wrote:
 aaron lewis aaron.lewis1...@gmail.com wrote:
 I think i should put a limit via sysctl  , right ?
 
 Hmm... Limit what? You want to limit X_ACCEL and Y_ACCEL? I'm not quite sure
 about that being possible.
 
 As far as I understand, this feature is a kind of anti-theft protection.

Nope , it's a internal hdd protection system , see here:
http://www.thinkwiki.org/wiki/Active_Protection_System

 
 What do You want to get from this feature? If You want to know the movement of
 Your laptop You might be interested in writing some daemon (script?) that
 polls the state of X_ACCEL and Y_ACCEL and mails You some helpful data if
 values exceeded something. Still, useful report would need some instant mean
 of communication (e.g. WiMax or cellular connection) and some means of
 position tracking (GPS?). Do You have those undetachable?

At first , I thought BSD has a pre-installed daemon for this , just need
me to enable it , i was wrong.

So i turned to the source code of hdapsd , but it's for linux only ( i
thought it's a script at first glance , while it's not ) , i'm now
trying to port it to OpenBSD ;-)

- -- 
Best Regards,
Aaron Lewis - PGP: 0x4A6D32A0
FingerPrint EA63 26B2 6C52 72EA A4A5 EB6B BDFE 35B0 4A6D 32A0
irc: A4R0NL3WI5 on freenode
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkxea9EACgkQvf41sEptMqCXCwCfQN+oeXBlCDS8r0VjH1l9C46y
R0oAoNE7KvWh7c8Gj46TANUj2J7fj27u
=SU4Q
-END PGP SIGNATURE-



Re: developing openbsd?

2010-08-08 Thread Bret S. Lambert
On Sun, Aug 08, 2010 at 08:23:03AM +, Jay K wrote:
 I've looked all over www.openbsd.org.
 Any sort of guide/projects for new wannabe developers?
  (not new to programming)

man style

 Just the bug list?

That's a good start, probably.

 Fix something  send diffs?

As mentioned on these lists multiple times over the years,
yes, that's what you should start doing.

 
  - Jay



NUEVA RESOLUCION MISCELANEA 2010 (PUBLICADA EN EL DOF EL 11 DE JUNIO)

2010-08-08 Thread Claudia Ahumada
Si no puede ver esta informacisn haga click aqum

[IMAGE]

POLMTICAS DE CANCELACISN

[IMAGE]

Corporativo Fiscal Dicada, S.C. posee una rmgida polmtica contra el
SPAMming, por lo que respetamos su privacidad. Por favor, si usted no
desea recibir mas informacisn y comunicados sobre Corporativo Fiscal
Dicada, S.C. o considera que recibis por error este e-mail, le suplicamos
haga click aqum, escriba su nombre y lo daremos de baja inmediatamente de
nuestra base de datos.



Re: memory fragmentation

2010-08-08 Thread Otto Moerbeek
On Sat, Aug 07, 2010 at 08:19:47PM +0800, Edwin Eyan Moragas wrote:

 Hi misc,
 
 assuming that a long running app would malloc(3) when needed and then
 free(3)s the resource immediately when it is done, is memory
 fragmentation still a concern for long running apps?
 
 what are steps that you take to manage this problem if ever it is a problem?
 
 best,
 
 /e

Scenarios do exists where a leak-free process still can run out of
mem, i.e. if it does a lot of small allocations, these are scattered
through its address space. Big allocations following that could fail,
even if the available memory is bigger than the size requested. 

Otoh, if the sum of your allocations stays below the malloc cache
size, malloc will never do any mmap(2) calls after the initial ones and
fragmentation will not be any issue.

The only answer is: it depends, but in general it is not a problem,
this is especially true for 64-bit systems. 

-Otto



Re: memory fragmentation

2010-08-08 Thread Henning Brauer
* Edwin Eyan Moragas e...@yndy.org [2010-08-08 03:45]:
 was wondering if there are any special 'moves' that are employed in
 creating daemons in openbsd that the devs might care to share.

yes: don't bother. it's not your job, but the job of the lower layers.

-- 
Henning Brauer, h...@bsws.de, henn...@openbsd.org
BS Web Services, http://bsws.de
Full-Service ISP - Secure Hosting, Mail and DNS Services
Dedicated Servers, Rootservers, Application Hosting



Re: developing openbsd?

2010-08-08 Thread Edd Barrett
On Sun, Aug 08, 2010 at 08:23:03AM +, Jay K wrote:
 I've looked all over www.openbsd.org.
 Any sort of guide/projects for new wannabe developers?

Find something missing and implement it.

I find myself sshing to linux boxes to valgrind things, so how about a leak
checker for OpenBSD? And no.. not a valgrind port, somthing our own.

-- 
Best Regards
Edd Barrett

http://www.theunixzoo.co.uk



OpenBSD on RouterBoard 450G

2010-08-08 Thread Jozsi Vadkan
Did anyone manage to install, and use/test OpenBSD on the RouterBoard
450G? Or does anyone has a howto for it, how to do it?

Thank you in advance.



Re: developing openbsd?

2010-08-08 Thread Kenneth R Westerback
On Sun, Aug 08, 2010 at 08:23:03AM +, Jay K wrote:
 I've looked all over www.openbsd.org.
 Any sort of guide/projects for new wannabe developers?
  (not new to programming)
 Just the bug list?
 Fix something  send diffs?
 
  - Jay

We pride ourselves on good, useful man pages. Reading man pages
reveals many interesting things. And occaisonal problems. A number
of developers started by fixing/updating man pages. Sometimes the
code is broken rather than the man page, and viola you on the water
slide.

 Ken



Re: OpenBSD on RouterBoard 450G

2010-08-08 Thread syuu
Hi,

Unfortunately there's no implementation on OpenBSD.

syuu


On 10/08/08 20:32, Jozsi Vadkan jozsi.avad...@gmail.com wrote:

 Did anyone manage to install, and use/test OpenBSD on the RouterBoard
 450G? Or does anyone has a howto for it, how to do it?
 
 Thank you in advance.



Re: developing openbsd?

2010-08-08 Thread Jay K
Ok, thanks all. Later.

 - Jay

 Date: Sun, 8 Aug 2010 12:14:30 +0100
 From: vex...@gmail.com
 To: jay.kr...@cornell.edu
 CC: misc@openbsd.org
 Subject: Re: developing openbsd?

 On Sun, Aug 08, 2010 at 08:23:03AM +, Jay K wrote:
  I've looked all over www.openbsd.org.
  Any sort of guide/projects for new wannabe developers?

 Find something missing and implement it.

 I find myself sshing to linux boxes to valgrind things, so how about a leak
 checker for OpenBSD? And no.. not a valgrind port, somthing our own.

 --
 Best Regards
 Edd Barrett

 http://www.theunixzoo.co.uk



Re: xrandr to turn display back on?

2010-08-08 Thread Owain Ainsworth
On Sun, Aug 08, 2010 at 01:31:18AM -0400, Ted Unangst wrote:
 I plugged a monitor into my laptop's VGA port.  I ran xrandr --auto
 and got the mirrored screen.  I found it a little distracting, so I
 turned off the LVDS: xrandr --output LVDS --off.  So far, so good.
 
 Now I want to unplug the monitor.  How do I turn the laptop screen
 back on?  I note that there is no --on option to match with --off.
 
 atom:~ xrandr --output LVDS --auto
 xrandr: Configure crtc 1 invalid time
 
 Am I looking at a bug, user error, missing feature, what?

one of the first two.

Normally, turning an output on would be:

xrandr --output whatever --{auto|mode mode} positional arguments

Sounds like the mode calculation code wrongly guesses that it can't
clock the LVDS the was it was before.

-0-
-- 
Why isn't there a special name for the tops of your feet?
-- Lily Tomlin



Re: developing openbsd?

2010-08-08 Thread Tomas Vavrys
Does any developer use c.vim plugin? I can't get it working properly
according to STYLE(9). I would appreciate your settings. What other
Vim plugins do you use?



Re: developing openbsd?

2010-08-08 Thread Darrin Chandler
On Sun, Aug 08, 2010 at 04:39:56PM +0200, Tomas Vavrys wrote:
 Does any developer use c.vim plugin? I can't get it working properly
 according to STYLE(9). I would appreciate your settings. What other
 Vim plugins do you use?

I have this in ~/.vim/after/ftplugin/c.vim:

set cinoptions=t0,+4,(4,u4,w1
set shiftwidth=8
set softtabstop=8
let c_space_errors=1

That gets me somewhat close. Anyone want to share other ways or
refinements?

-- 
Darrin Chandler|  Phoenix BSD User Group  |  MetaBUG
dwchand...@stilyagin.com   |  http://phxbug.org/  |  http://metabug.org/
http://www.stilyagin.com/  |  Daemons in the Desert   |  Global BUG Federation



Re: developing openbsd?

2010-08-08 Thread Tomas Vavrys
It would be great if anybody could share whole .vim/  .vimrc. I
could write OpenBSD Vim C Programming manual once and for all.

2010/8/8 Darrin Chandler dwchand...@stilyagin.com:
 On Sun, Aug 08, 2010 at 04:39:56PM +0200, Tomas Vavrys wrote:
 Does any developer use c.vim plugin? I can't get it working properly
 according to STYLE(9). I would appreciate your settings. What other
 Vim plugins do you use?

 I have this in ~/.vim/after/ftplugin/c.vim:

 set cinoptions=t0,+4,(4,u4,w1
 set shiftwidth=8
 set softtabstop=8
 let c_space_errors=1

 That gets me somewhat close. Anyone want to share other ways or
 refinements?

 --
 Darrin Chandler B  B  B  B  B  B | B Phoenix BSD User Group B | B MetaBUG
 dwchand...@stilyagin.com B  | B http://phxbug.org/ B  B  B |
B http://metabug.org/
 http://www.stilyagin.com/ B | B Daemons in the Desert B  | B Global BUG
Federation



scsi_done() called twice with gdt driver in 4.7

2010-08-08 Thread Federico Giannici

Hi.
We are upgrading all our PCs from 4.4 or 4.5 to 4.7.
No problem at all with the first PCs, but we found a problem with a PC 
which have a gdt SCSI driver: every time we shutdown the machine, just 
after the usual syncing disks... done, it crashes because scsi_done() 
called twice!


No crash data is saved on the disk so here are the photos of the crash 
and the trace and ps output:


http://www.neomedia.it/tmp/crash-47-a.jpg
http://www.neomedia.it/tmp/crash-47-b.jpg

Below is the dmesg of that machine.
As you can see it's an amd64 with the official 4.7 GENERIC kernel.
Tried a MP GENERIC kernel too, but with the same results.
Previously there was no problem with the 4.4 version of the OS.

Is it a known problem?
Is there something I can do to fix it?

Thanks.


OpenBSD 4.7 (GENERIC) #112: Wed Mar 17 20:43:49 MDT 2010
dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC
real mem = 1072365568 (1022MB)
avail mem = 1032409088 (984MB)
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.3 @ 0xf0530 (68 entries)
bios0: vendor American Megatrends Inc. version 1017.002 date 11/14/2005
bios0: ASUSTeK Computer Inc. A8V Deluxe
acpi0 at bios0: rev 0
acpi0: tables DSDT FACP APIC OEMB
acpi0: wakeup devices PCI0(S4) PS2K(S4) PS2M(S4) UAR2(S4) UAR1(S4) 
AC97(S4) USB1(S4) USB2(S4) USB3(S4) USB4(S4) EHCI(S4) PWRB(S4) SLPB(S4)

acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: AMD Athlon(tm) 64 Processor 3500+, 2203.24 MHz
cpu0: 
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,SSE3,NXE,MMXX,FFXSR,LONG,3DNOW2,3DNOW
cpu0: 64KB 64b/line 2-way I-cache, 64KB 64b/line 2-way D-cache, 512KB 
64b/line 16-way L2 cache

cpu0: ITLB 32 4KB entries fully associative, 8 4MB entries fully associative
cpu0: DTLB 32 4KB entries fully associative, 8 4MB entries fully associative
cpu0: AMD erratum 113 detected and fixed
cpu0: AMD erratum 89 present, BIOS upgrade may be required
cpu0: apic clock running at 200MHz
ioapic0 at mainbus0: apid 1 pa 0xfec0, version 3, 24 pins
acpiprt0 at acpi0: bus 0 (PCI0)
acpicpu0 at acpi0
acpibtn0 at acpi0: PWRB
acpibtn1 at acpi0: SLPB
pci0 at mainbus0 bus 0
pchb0 at pci0 dev 0 function 0 VIA K8HTB Host rev 0x00
agp at pchb0 not configured
pchb1 at pci0 dev 0 function 1 VIA K8HTB Host rev 0x00
pchb2 at pci0 dev 0 function 2 VIA K8HTB Host rev 0x00
pchb3 at pci0 dev 0 function 3 VIA K8HTB Host rev 0x00
pchb4 at pci0 dev 0 function 4 VIA K8HTB Host rev 0x00
pchb5 at pci0 dev 0 function 7 VIA K8HTB Host rev 0x00
ppb0 at pci0 dev 1 function 0 VIA K8HTB AGP rev 0x00
pci1 at ppb0 bus 1
vga1 at pci1 dev 0 function 0 ATI Radeon VE rev 0x00
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
radeondrm0 at vga1: apic 1 int 16 (irq 11)
drm0 at radeondrm0
VIA VT6306 FireWire rev 0x80 at pci0 dev 7 function 0 not configured
skc0 at pci0 dev 10 function 0 Marvell Yukon 88E8001/8003/8010 rev 
0x13, Yukon Lite (0x9): apic 1 int 17 (irq 10)

sk0 at skc0 port A: address 00:11:d8:8d:9f:c8
eephy0 at sk0 phy 0: 88E1011 Gigabit PHY, rev. 5
gdt0 at pci0 dev 13 function 0 Intel GDT RAID rev 0x00: apic 1 int 18 
(irq 5) dpmem eff0 2-bus 1 cache device

gdt0: ver 222, cache on, strategy 2, writeback on, blksz 32
gdt0: raw feat 1 cache feat 101
scsibus0 at gdt0: 35 targets
sd0 at scsibus0 targ 0 lun 0: ICP, Host drive #00,  SCSI2 0/direct fixed
sd0: 139941MB, 512 bytes/sec, 286599600 sec total
scsibus1 at gdt0: 16 targets, initiator 7
scsibus2 at gdt0: 16 targets, initiator 7
pciide0 at pci0 dev 15 function 0 VIA VT6420 SATA rev 0x80: DMA
pciide0: using apic 1 int 20 (irq 10) for native-PCI interrupt
pciide1 at pci0 dev 15 function 1 VIA VT82C571 IDE rev 0x06: ATA133, 
channel 0 configured to compatibility, channel 1 configured to compatibility

pciide1: channel 0 disabled (no drives)
atapiscsi0 at pciide1 channel 1 drive 1
scsibus3 at atapiscsi0: 2 targets
cd0 at scsibus3 targ 0 lun 0: HL-DT-ST, DVD-ROM GDR8163B, 0L23 ATAPI 
5/cdrom removable

cd0(pciide1:1:1): using PIO mode 4, Ultra-DMA mode 2
uhci0 at pci0 dev 16 function 0 VIA VT83C572 USB rev 0x81: apic 1 int 
21 (irq 11)
uhci1 at pci0 dev 16 function 1 VIA VT83C572 USB rev 0x81: apic 1 int 
21 (irq 11)
uhci2 at pci0 dev 16 function 2 VIA VT83C572 USB rev 0x81: apic 1 int 
21 (irq 10)
uhci3 at pci0 dev 16 function 3 VIA VT83C572 USB rev 0x81: apic 1 int 
21 (irq 10)
ehci0 at pci0 dev 16 function 4 VIA VT6202 USB rev 0x86: apic 1 int 21 
(irq 5)

usb0 at ehci0: USB revision 2.0
uhub0 at usb0 VIA EHCI root hub rev 2.00/1.00 addr 1
viapm0 at pci0 dev 17 function 0 VIA VT8237 ISA rev 0x00
iic0 at viapm0
lm1 at iic0 addr 0x2f: W83791SD
spdmem0 at iic0 addr 0x50: 512MB DDR SDRAM ECC PC3200CL3.0
spdmem1 at iic0 addr 0x51: 512MB DDR SDRAM ECC PC3200CL3.0
auvia0 at pci0 dev 17 function 5 VIA VT8233 AC97 rev 0x60: apic 1 int 
22 (irq 5)

ac97: codec id 0x414c4790 (Avance 

Re: developing openbsd?

2010-08-08 Thread Marco Peereboom
I'd hug you!

On Sun, Aug 08, 2010 at 05:06:19PM +0200, Tomas Vavrys wrote:
 It would be great if anybody could share whole .vim/  .vimrc. I
 could write OpenBSD Vim C Programming manual once and for all.
 
 2010/8/8 Darrin Chandler dwchand...@stilyagin.com:
  On Sun, Aug 08, 2010 at 04:39:56PM +0200, Tomas Vavrys wrote:
  Does any developer use c.vim plugin? I can't get it working properly
  according to STYLE(9). I would appreciate your settings. What other
  Vim plugins do you use?
 
  I have this in ~/.vim/after/ftplugin/c.vim:
 
  set cinoptions=t0,+4,(4,u4,w1
  set shiftwidth=8
  set softtabstop=8
  let c_space_errors=1
 
  That gets me somewhat close. Anyone want to share other ways or
  refinements?
 
  --
  Darrin Chandler B  B  B  B  B  B | B Phoenix BSD User Group B | B MetaBUG
  dwchand...@stilyagin.com B  | B http://phxbug.org/ B  B  B |
 B http://metabug.org/
  http://www.stilyagin.com/ B | B Daemons in the Desert B  | B Global BUG
 Federation



Re: developing openbsd?

2010-08-08 Thread Iñigo Ortiz de Urbina
I'd love to see such a document available. Depending on the scope of
this documentation effort, it could even be bundled as a package.

On 8/8/10, Tomas Vavrys vav...@cleancode.cz wrote:
 It would be great if anybody could share whole .vim/  .vimrc. I
 could write OpenBSD Vim C Programming manual once and for all.

 2010/8/8 Darrin Chandler dwchand...@stilyagin.com:
 On Sun, Aug 08, 2010 at 04:39:56PM +0200, Tomas Vavrys wrote:
 Does any developer use c.vim plugin? I can't get it working properly
 according to STYLE(9). I would appreciate your settings. What other
 Vim plugins do you use?

 I have this in ~/.vim/after/ftplugin/c.vim:

 set cinoptions=t0,+4,(4,u4,w1
 set shiftwidth=8
 set softtabstop=8
 let c_space_errors=1

 That gets me somewhat close. Anyone want to share other ways or
 refinements?

 --
 Darrin Chandler B  B  B  B  B  B | B Phoenix BSD User Group B | B MetaBUG
 dwchand...@stilyagin.com B  | B http://phxbug.org/ B  B  B |
 B http://metabug.org/
 http://www.stilyagin.com/ B | B Daemons in the Desert B  | B Global BUG
 Federation



Re: How to Downgrade from 4.7 to 4.6

2010-08-08 Thread Peter Merritt
Actually your right about troubleshooting info, the owner is out of
country and must have vpn access, so I can't hook it up the the
connection right now.  I don't' nessecary thinks it's a bug, I really
don't know what the problem is.

Peter



-Original Message-
From: owner-m...@openbsd.org [mailto:owner-m...@openbsd.org] On Behalf
Of Henning Brauer
Sent: Saturday, August 07, 2010 1:03 PM
To: misc@openbsd.org
Subject: Re: How to Downgrade from 4.7 to 4.6

there is zero information in this thread which would allow me (or any
other pf developer, heck, anybody else) to even guess if there is a
problem in pf or in your setup or on your link or whereever.

i know of a few bugs in pf, but apparently nobody else found them yet.
which is puzzling, especially for one. none of the things I am aware of
could be the reason for behaviour like the one described here. in
general, i am not aware of any real problems with pf after 4.7.

--
Henning Brauer, h...@bsws.de, henn...@openbsd.org BS Web Services,
http://bsws.de Full-Service ISP - Secure Hosting, Mail and DNS Services
Dedicated Servers, Rootservers, Application Hosting



Re: developing openbsd?

2010-08-08 Thread Tomas Vavrys
I can imagine universal OpenBSD VIM settings for programming as a
standard for local Vim programmers. It will make easier so many
things. We should write down all ideas. Key task is to share
experiences during programming with Vim.

It looks like that many developers use cscope, ctags, taglist during
programming.
I use SnipMate for code completion at the moment, because c.vim is
quite complex for me. You need to put big effort to get things work
like you want to if you're not vim expert. I suggest to stick to the
minimalism. We can collect most favourite code snippets and put them
together in universal snipmate config with practical documentation for
other useful settings. There is no need to read 100pages of manual to
become efficient. From a practical point of view you always forget
many things and use only a few key features because you don't have
time to read the whole manual and test all things. I don't want this.
We should put some effort to make it practical and easy from
beginning.

What do think about my suggestion?

2010/8/8 IC1igo Ortiz de Urbina inigoortizdeurb...@gmail.com:
 I'd love to see such a document available. Depending on the scope of
 this documentation effort, it could even be bundled as a package.

 On 8/8/10, Tomas Vavrys vav...@cleancode.cz wrote:
 It would be great if anybody could share whole .vim/  .vimrc. I
 could write OpenBSD Vim C Programming manual once and for all.

 2010/8/8 Darrin Chandler dwchand...@stilyagin.com:
 On Sun, Aug 08, 2010 at 04:39:56PM +0200, Tomas Vavrys wrote:
 Does any developer use c.vim plugin? I can't get it working properly
 according to STYLE(9). I would appreciate your settings. What other
 Vim plugins do you use?

 I have this in ~/.vim/after/ftplugin/c.vim:

 set cinoptions=t0,+4,(4,u4,w1
 set shiftwidth=8
 set softtabstop=8
 let c_space_errors=1

 That gets me somewhat close. Anyone want to share other ways or
 refinements?

 --
 Darrin Chandler B B B B B B B B B B B | B Phoenix BSD User Group B | B
MetaBUG
 dwchand...@stilyagin.com B B | B http://phxbug.org/ B B B B B |
 B http://metabug.org/
 http://www.stilyagin.com/ B | B Daemons in the Desert B B | B Global BUG
 Federation



Re: OBSD 4.7 and Via C7 motherboards problem

2010-08-08 Thread Geoff Steckel

I've got a C7 board running 4.7 as my firewall.
The configuration is a lot more baroque than yours...

A couple of thoughts:

Your pf.conf should only hold state on one side. Multiple conflicting
state table entries for the same connection ensure flaky failures.

I use quick wherever possible to eliminate hidden dependencies

label entries on pf.conf rules can help show unexpected paths

when testing, do before and after runs of
   netstat -ss
   pfctl -s labels
   pfctl -s state
  and diff them to check where packets are going
Also tcpdump of pflog

I.E.

pass out quick log on $ext_if from ! ($ext_if) to any nat-to \
 ($ext_if:0) label nat-rule
pass out quick log on $ext_if all label ext-out
pass out quick log on $int_if all flags any no-state label int-out

pass in quick log on $ext_if all label ext-in
pass in quick log on $int_if all flags any no-state label int-in

This should show where things go.

Geoff Steckel
curmudgeon for hire

My system:


$ dmesg
OpenBSD 4.7 (GENERIC) #558: Wed Mar 17 20:46:15 MDT 2010
dera...@i386.openbsd.org:/usr/src/sys/arch/i386/compile/GENERIC
cpu0: VIA Esther processor 1500MHz (CentaurHauls 686-class) 1.51 GHz
cpu0: 
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,APIC,SEP,MTRR,PGE,CMOV,PAT,CFLUSH,ACPI,MMX,FXSR,SSE,SSE2,TM,SBF,SSE3,EST,TM2
real mem  = 1005023232 (958MB)
avail mem = 965070848 (920MB)
mainbus0 at root
bios0 at mainbus0: AT/286+ BIOS, date 05/16/06, BIOS32 rev. 0 @ 0xfb570, SMBIOS 
rev. 2.3 @ 0xf (34 entries)
bios0: vendor Phoenix Technologies, LTD version 6.00 PG date 05/16/2006
apm0 at bios0: Power Management spec V1.2 (slowidle)
apm0: AC on, battery charge unknown
acpi at bios0 function 0x0 not configured
pcibios0 at bios0: rev 2.1 @ 0xf/0xdc84
pcibios0: PCI IRQ Routing Table rev 1.0 @ 0xfdbb0/208 (11 entries)
pcibios0: bad IRQ table checksum
pcibios0: PCI BIOS has 11 Interrupt Routing table entries
pcibios0: PCI Exclusive IRQs: 5 10 11
pcibios0: PCI Interrupt Router at 000:17:0 (VIA VT8237 ISA rev 0x00)
pcibios0: PCI bus #1 is the last bus
bios0: ROM list: 0xc/0xfe00 0xd/0x5000!
cpu0 at mainbus0: (uniprocessor)
cpu0: RNG AES AES-CTR SHA1 SHA256 RSA
cpu0: unknown Enhanced SpeedStep CPU, msr 0x08100f1308000f13
cpu0: using only highest and lowest power states
cpu0: Enhanced SpeedStep 1501 MHz: speeds: 1500, 800 MHz
pci0 at mainbus0 bus 0: configuration mode 1 (bios)
pchb0 at pci0 dev 0 function 0 VIA CN700 Host rev 0x00
viaagp0 at pchb0: v3
agp0 at viaagp0: aperture at 0xe800, size 0x1000
pchb1 at pci0 dev 0 function 1 VIA CN700 Host rev 0x00
pchb2 at pci0 dev 0 function 2 VIA CN700 Host rev 0x00
pchb3 at pci0 dev 0 function 3 VIA PT890 Host rev 0x00
pchb4 at pci0 dev 0 function 4 VIA CN700 Host rev 0x00
pchb5 at pci0 dev 0 function 7 VIA CN700 Host rev 0x00
ppb0 at pci0 dev 1 function 0 VIA VT8377 AGP rev 0x00
pci1 at ppb0 bus 1
vga1 at pci1 dev 0 function 0 VIA S3 Unichrome PRO IGP rev 0x01
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
skc0 at pci0 dev 8 function 0 D-Link Systems DGE-530T A1 rev 0x11, Yukon 
(0x1): irq 11
sk0 at skc0 port A: address 00:0d:88:c8:2b:c8
eephy0 at sk0 phy 0: 88E1011 Gigabit PHY, rev. 3
VIA VT6306 FireWire rev 0x80 at pci0 dev 10 function 0 not configured
re0 at pci0 dev 11 function 0 Realtek 8169 rev 0x10: RTL8169/8110SCd 
(0x1800), irq 5, address 00:30:18:a8:10:76
rgephy0 at re0 phy 7: RTL8169S/8110S PHY, rev. 2
pciide0 at pci0 dev 15 function 0 VIA VT6420 SATA rev 0x80: DMA
pciide0: using irq 11 for native-PCI interrupt
wd0 at pciide0 channel 1 drive 0: HTS541080G9SA00
wd0: 16-sector PIO, LBA48, 76319MB, 156301488 sectors
wd0(pciide0:1:0): using PIO mode 4, Ultra-DMA mode 5
pciide1 at pci0 dev 15 function 1 VIA VT82C571 IDE rev 0x06: ATA133, channel 
0 configured to compatibility, channel 1 configured to compatibility
pciide1: channel 0 ignored (disabled)
atapiscsi0 at pciide1 channel 1 drive 0
scsibus0 at atapiscsi0: 2 targets
cd0 at scsibus0 targ 0 lun 0: TSSTcorp, CDW/DVD SH-M522C, TS01 ATAPI 5/cdrom 
removable
cd0(pciide1:1:0): using PIO mode 4, Ultra-DMA mode 2
uhci0 at pci0 dev 16 function 0 VIA VT83C572 USB rev 0x81: irq 10
uhci1 at pci0 dev 16 function 1 VIA VT83C572 USB rev 0x81: irq 10
uhci2 at pci0 dev 16 function 2 VIA VT83C572 USB rev 0x81: irq 11
uhci3 at pci0 dev 16 function 3 VIA VT83C572 USB rev 0x81: irq 11
ehci0 at pci0 dev 16 function 4 VIA VT6202 USB rev 0x86: irq 11
ehci0: timed out waiting for BIOS
usb0 at ehci0: USB revision 2.0
uhub0 at usb0 VIA EHCI root hub rev 2.00/1.00 addr 1
viapm0 at pci0 dev 17 function 0 VIA VT8237 ISA rev 0x00
iic0 at viapm0
spdmem0 at iic0 addr 0x50: 1GB DDR2 SDRAM non-parity PC2-6400CL5
auvia0 at pci0 dev 17 function 5 VIA VT8233 AC97 rev 0x60: irq 11
ac97: codec id 0x56494170 (VIA Technologies VT1617)
ac97: codec features headphone, 18 bit DAC, 18 bit ADC, KS Waves 3D
audio0 at auvia0
vr0 at pci0 dev 18 function 0 VIA RhineII-2 rev 0x78: irq 10, address 
00:30:18:a2:dd:0f
ukphy0 at vr0 

Re: developing openbsd?

2010-08-08 Thread Ted Unangst
On Sun, Aug 8, 2010 at 11:06 AM, Tomas Vavrys vav...@cleancode.cz wrote:
 It would be great if anybody could share whole .vim/  .vimrc. I
 could write OpenBSD Vim C Programming manual once and for all.

cp /usr/local/share/vim/vim72/vimrc_example.vim .vimrc



Re: OBSD 4.7 and Via C7 motherboards problem

2010-08-08 Thread Henning Brauer
* Geoff Steckel g...@oat.com [2010-08-08 20:29]:
 Your pf.conf should only hold state on one side. Multiple conflicting
 state table entries for the same connection ensure flaky failures.

that is wrong in so many ways.

first, should only hold state on one side is bullshit advice.
holding state on both sides is absolutely fine. wether it is a good
idea depends on a number of factors. it never really hurts.

second, these state table entries will never ever collide.
i may recommend a read here:
http://bulabula.org/papers/2009/eurobsdcon-faster_packets/
especially slides 40 to 50

-- 
Henning Brauer, h...@bsws.de, henn...@openbsd.org
BS Web Services, http://bsws.de
Full-Service ISP - Secure Hosting, Mail and DNS Services
Dedicated Servers, Rootservers, Application Hosting



Re: OBSD 4.7 and Via C7 motherboards problem

2010-08-08 Thread Geoff Steckel

On 08/08/2010 03:28 PM, Henning Brauer wrote:

* Geoff Steckelg...@oat.com  [2010-08-08 20:29]:

Your pf.conf should only hold state on one side. Multiple conflicting
state table entries for the same connection ensure flaky failures.


that is wrong in so many ways.

first, should only hold state on one side is bullshit advice.
holding state on both sides is absolutely fine. wether it is a good
idea depends on a number of factors. it never really hurts.

second, these state table entries will never ever collide.
i may recommend a read here:
http://bulabula.org/papers/2009/eurobsdcon-faster_packets/
especially slides 40 to 50


I'm saying what has worked for me.

The state code has changed a lot since I did my last big
set of tests. If states are truly unified between input
and output interfaces, then the correct objection is:

States found on any interface are reused quickly on
  all interfaces

The documentation is not terribly clear about that.
.
I'm still a bit dubious about handling late FINs and other
legal packets which the older PF code needed extra help
to dispose correctly.


Getting back to the original question, perhaps

skip on $int

would simplify debugging even further?

geoff steckel
curmudgeon for hire



Cardbus laptop wanted in the Netherlands

2010-08-08 Thread Mark Kettenis
So the biggest thing that's still missing in in the acpi
suspend/resume code is CardBus (and to a lesser extent PCMCIA)
support.  My CardBus laptop died two years ago, so I don't really have
something to hack on, and makes this work.

If somebody in the EU has an old ACPI laptop with CardBus (preferably
two slots) that they're willing to donate to the project, please
contact me off-list (kettenis@).

Thanks,

Mark



Владимир интересуется вами на МирТесен!

2010-08-08 Thread mirtesen.ru
PP;P0P4P8PP8Q P8P=QP5QP5QQP5QQQ PP0PP8 P=P0 MirTesen.ru!


[IMAGE]
PP;P0P4P8PP8Q
P# PP5P=Q:

P$PQPP3QP0QP8P9: 1314
P!PPP1Q   P5P=P8P9 P=P0 QQP5P=P5: 451

PP4QP0P2QQP2QP9QP5!

PQP8P3P;P0QP0Q PP0Q P?PQPPQQP5QQ PPQ P;P8QP=QQ
QQQP0P=P8QQ P=P0 PP8QPP5QP5P=.
PP0P PPP6P=P QP2P8P4P5QQ PPP8 QPQPP3QP0QP8P8 P8
P2P8P4P5P, QP7P=P0QQ, QP5P Q P8P=QP5QP5QQQQQ P8 QP5P
P7P0P=P8PP0QQQ P2 QP2PP1PP4P=PP5 P2QP5PQ.

P! QP2P0P6P5P=P8P5P,
PP;P0P4P8PP8Q

P'QPP1Q P?PQPPQQP5QQ PPQ QQQP0P=P8QQ,
P?P5QP5P9P4P8QP5 P?P QQQP;P:P5:

PPQPPQQP5QQ QQQP0P=P8QQ...

PQP;P8 QQQP;P:P0 P=P5 PQP:QQP2P0P5QQQ, QP:PP?P8QQP9QP5
Q
QQ QQQP;P:Q P2 P0P4QP5QP=QQ QQQPP:Q P1QP0QP7P5QP0 P8
P?PP?QPP1QP9QP5 P5Q Q QP0P7:
http://mirtesen.ru/action/accept/11410301285971973238510856?from
=mailnvf=20100705

PQP8 P;QP4P8 P=P0 PP8QPP5QP5P= QP:P0P7P0P;P8, QQP P7P=P0QQ
PP0Q:

[IMAGE]

P.QP8P9 PPQQP:PP2
PQQP7P5P9: 3
P PQQP8Q, P'P5P1PP:QP0QQ

[IMAGE]

Sergtey Kharlamov
PQQP7P5P9: 3
P!P(P, Yonkers

[IMAGE]

PP;P5P:QP5P9 PP;P0P3PP2
PQQP7P5P9: 3
P#P7P1P5P:P8QQP0P=, Tashkent

[IMAGE]

P.P;P8Q PP0P3QP;P
PQQP7P5P9: 3
PPP;P4PP2P0, PP=P5QQQPP2QP:



PQP;P8 PQ P?PP;QQP8P;P8 Q
QP P?P8QQPP P?P PQP8P1P:P5,
P?QPQQP P?QPP8P3P=PQP8QQP9QP5 P5P3P. PQ PPP6P5QP5
PQP:P0P7P0QQQQ PQ P?PP;QQP5P=P8Q P?PP4PP1P=QQ
QPPP1Q   P5P=P8P9 P?P QQQP;P:P5.

PP0P9P4P8 P8 QP1P5P4P8QQ [IMAGE]



Re: installing symux, can't load libraries

2010-08-08 Thread David Hardy
OK, I figured this out: I must have accidentally gotten the wrong
xbase47.tgz fileset. problem solved.
Thanks for all the help though.

David

On Sun, Aug 8, 2010 at 7:26 PM, David Hardy planetm...@gmail.com wrote:

 I just tried to compile symon from  source and got:

 cc -o symux symux.o readconf.o symuxnet.o share.o -L/usr/X11R6/lib
 -lfontconfig -L../lib -L/usr/local/lib -lsym -lrrd
 /usr/X11R6/lib/libfontconfig.so.6.0: file not recognized: File format not
 recognized
 collect2: ld returned 1 exit status
 *** Error code 1

 I just re-untarred xbase47.tgz, too, so that's a little odd.

 David


 On Sun, Aug 8, 2010 at 7:22 PM, David Hardy planetm...@gmail.com wrote:

 # more .systrace/usr_local_libexec_symux

 Policy: /usr/local/libexec/symux, Emulation: native
 native-issetugid: permit
 native-mprotect: prot eq PROT_READ then permit
 native-mmap: prot eq PROT_READ|PROT_WRITE then permit
 native-__sysctl: permit
 native-fsread: filename eq /var/run/ld.so.hints then permit
 native-fstat: permit
 native-mmap: prot eq PROT_READ then permit
 native-close: permit
 native-fsread: filename eq /usr/lib/libc.so.53.1 then permit
 native-read: permit
 native-mquery: permit
 native-mmap: prot eq PROT_READ|PROT_EXEC then permit
 native-fsread: filename eq /usr/lib/libfontconfig.so.6.0 then
 permit
 native-write: permit
 native-exit: permit
 native-fsread: filename eq /usr/local/lib/librrd.so.3.0 then
 permit

 Not sure how to decode that, but I still get the same error, even after
 removing /usr/X11R6/lib from shlib_dirs, and running 'ldconfig -m
 /usr/X11R6/lib '.

 I'm pretty stumped here.

 -David







 On Sat, Aug 7, 2010 at 10:00 AM, Kevin Chadwick ma1l1i...@yahoo.co.ukwrote:

 On Fri, 6 Aug 2010 15:21:31 -0600
 David Hardy planetm...@gmail.com wrote:

  #systrace -A /usr/local/libexec/symux
  /usr/local/libexec/symux: can't load library 'libfontconfig.so.6.0'
 
  not sure that helps us.
 
  thanks, bTW.
 
  -David
 

 I presume you also did

 /bin/cat .systrace/usr_local_libexec_symux