Re: Screen,colorls,xterms issue. 4.2

2008-05-11 Thread Joachim Schipper
On Sun, May 11, 2008 at 03:59:17AM +0200, Jesus Sanchez wrote:
 Stuart Henderson escribis:
 On 2008-05-10, Jesus Sanchez [EMAIL PROTECTED] wrote:
 I have set an alias for ls='colorls -GF' (color output) and this causes
 the problems on a screen session. I have set the TERM=xterm-color on
 my /etc/profile.

 Why do that? That will override the correct terminal configuration
 and send control codes suitable for an xterm to terminals that can't
 handle it, like screen.
   
 So, what TERM variable should I use?

You should (almost) never set TERM manually. (You should probably also
restrict personal changes to ~/.profile, not /etc/profile.)

If you want to have color on the console, change ttyC* from vt220 to
wsvt25 in /etc/ttys. If you want to have color in an xterm, add the
following to ~/.Xdefaults:

XTerm.termName: xterm-free86

Or, if you use the rxvt port,

Rxvt.termName:  rxvt

Other terminal emulators have their own options. See their documentation
for details.

Once TERM is set properly (you will need to log out/restart X), you can
start screen. screen will use the TERM it finds, and set TERM=screen
(and TERMCAP to some value depending on the TERM it found). You should
now have color, both on the console and in an xterm.

Note that using wsvt25 and xterm-xfree86 is documented in the
description for the colorls package. (The rest is, admittedly, a
little harder to find.)

Joachim

-- 
TFMotD: mailwrapper (8) - invoke appropriate MTA software based on
configuration file



Re: Screen,colorls,xterms issue. 4.2

2008-05-11 Thread Girish Venkatachalam
On 07:45:06 May 11, Jesus Sanchez wrote:
 I tried to set the TERM variable to rxvt value export TERM=rxvt
 on the /etc/profile and I have problems with the virtual terminals now.
 (the ones invoked by Ctrl+Alt+F1 to F4). I get weird color
 when doing colorls -G in screen session, so your solution it's
 not valid to me, but thanks for the info.

Your question was for X and my answer was also for X sessions.

For the console you have to stick to wsvt25.

It is so simple.

Before starting screen from X, 

$ export TERM=rxvt

Before starting screen from the console,

$ export TERM=wsvt25

Is there any confusion now?

-Girish



Re: WPA in -current

2008-05-11 Thread Paul de Weerd
Just yesterday I tried setting up a WPA access point (with rum(4)) and
my ifconfig output looks stunningly similar. There's two things
though... Are you sure you're not running a non-GENERIC kernel ?
Either you are, or you're not showing us the full ifconfig output
since the link local address for IPv6 is missing. You should have a
line reading

inet6 fe80::20e:2eff:fexx:xx:xx%ral0 prefixlen 64 scopeid 0xX

Other than that, I configured 'wpaakms psk', you might want to try
this. This shouldn't change things (since you have psk too), but maybe
the 802.1x confuses things.

After I configured my Host AP, I was able to connect my Mac OSX (also
Leopard) machine to the newly created network. It's not very stable,
but this is probably caused by the rum(4) I'm using :

CAVEATS
 The rum driver supports automatic control of the transmit speed in BSS
 mode only.  Therefore the use of a rum adapter in Host AP mode is dis-
 couraged.

Unfortunately, it is currently the only wireless NIC I have to test
WPA, so I'm kind of stuck with it ;)

So, make sure you're using GENERIC (the `sysctl -n kern.version`
output from your mail seems to indicate you are, but the ifconfig
output contradicts it). Next is to try adding 'wpaakms psk' to your
hostname.ral0. Then, maybe try another card, rebooting the Mac, etc.

Cheers,

Paul 'WEiRD' de Weerd

On Sat, May 10, 2008 at 11:04:04PM -0500, Jonathan wrote:
| OpenBSD 4.3-current (GENERIC) #853: Fri May  2 04:37:23 MDT 2008
| [EMAIL PROTECTED]:/usr/src/sys/arch/i386/compile/GENERIC
| 
| Hardware Info:
| 
| ral0 at pci0 dev 9 function 0 Ralink RT2561S rev 0x00: irq 5,
| address 00:0e:2e:xx:xx:xx
| ral0: MAC/BBP RT2561C, RF RT2527
| 
| # ifconfig ral0
| ral0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST mtu 1500
| lladdr 00:0e:2e:xx:xx:xx
| groups: wlan egress
| media: IEEE802.11 autoselect hostap (autoselect mode 11b hostap)
| status: active
| ieee80211: nwid obsd_wpa chan 8 bssid 00:0e:2e:xx:xx:xx wpapsk
| not displayed wpaprotos wpa1,wpa2 wpaakms psk,802.1x wpaciphers
| tkip,ccmp wpagroupcipher tkip 100dBm
| inet 192.168.1.1 netmask 0xff00 broadcast 192.168.1.255
| 
| /etc/hostname.ral0
| inet 192.168.1.1 255.255.255.0 NONE media autoselect \
| mediaopt hostap nwid obsd_wpa chan 8\
| wpa wpapsk not displayed
| 
| I have tried connect from a Mac running Leopard, but it is always
| saying Connection Timeout after input of the pass-phrase. I have
| tried to connect from a Windows XP box manually selecting WPA-PSK and
| tried both (TKIP and AES), but was still unable to connect. It does
| seem like it is getting connected, since it is saying acquiring
| network address, but it just cycles through acquiring network and not
| connected. I tried to look at the tcpdump but the packets it prints
| are all in hexadecimal.
| 
| Jonathan
| 

-- 
[++-]+++.+++[---].+++[+
+++-].++[-]+.--.[-]
 http://www.weirdnet.nl/ 



mac filter for host ap mode?

2008-05-11 Thread Didier Wiroth
hello,
I'm using a ral wireless interface in host ap with wpa:
$ ifconfig ral0
ral0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST mtu 1500
lladdr 00:
groups: wlan
media: IEEE802.11 autoselect mode 11g hostap
status: active
ieee80211: nwid wifi2 chan 2 bssid 00:12:0e:61:80:6c wpapsk
not displayed wpaprotos wpa2 wpaakms psk,802.1x wpaciphers tkip,ccmp
wpagroupcipher tkip 100dBm
inet6 fe80::212:eff:fe61:806c%ral0 prefixlen 64 scopeid 0x5
inet 192.168.0.1 netmask 0xff00 broadcast 192.168.0.255

Is it possible to use a MAC filter in this mode?
What is the easiest way to implement a MAC filter in host ap mode?

thank you very much
- -
Didier



Re: Screen,colorls,xterms issue. 4.2

2008-05-11 Thread Marc Espie
On Sun, May 11, 2008 at 07:45:06AM +0200, Jesus Sanchez wrote:
 Girish Venkatachalam escribis:
 On 22:20:18 May 10, Jesus Sanchez wrote:
   
 Hi, I'm using OpenBSD 4.2, a clean install.

 I have experienced some problems using screen and X with colorsls. The
 issue is that when I launch 'screen' on virtual terminals (C0,C1...) I
 don't have any problem but when launch X, on the xterm/rxvt I have
 open I can't launch a screen because the colors goes mad and shows
 white on black combinations I have not set on my rxvt (I use some grey
 tones combinations).

 I have set an alias for ls='colorls -GF' (color output) and this causes
 the problems on a screen session. I have set the TERM=xterm-color on
 my /etc/profile.
 

 As Stuart pointed out you should not do this.

 I used to experience hell since I used to make the same mistake. ;)

 Later life got simple after doing a code walk through of screen's source
 and figured that the problem is fixed by setting

 $ export TERM=rxvt 
 ;)

 Funny we arrive at simple solutions through circuitous routes. ;)

 -Girish


   
 I tried to set the TERM variable to rxvt value export TERM=rxvt
 on the /etc/profile and I have problems with the virtual terminals now.
 (the ones invoked by Ctrl+Alt+F1 to F4). I get weird color
 when doing colorls -G in screen session, so your solution it's
 not valid to me, but thanks for the info.

Don't do that.

You really need to learn a bit more of Unix before you start making changes
in system-wide files.

Unix administration is relatively easy, but this is still stuff you need
to learn.

Putting personal choices in system-wide files is a really bad habit,
even if you are on your personal machine.
Especially when your personal choices are bogus in the first place.

Sooner or later, you'll manage to break the machine config, and then you'll
figure out you can no longer login normally, and end up needing to take
down the machine violently. With luck, fsck and single-user will get you
out. With no luck, fsck will fail and you will have to reinstall partly.

Stuart explained this specific case in a sibling message.
TERM only reflects your current terminal. There is no way you can put
settings that work for everything, you have to use some kind of judo.
Specifically, don't change TERM yourself, convince your subsystems to
set it correctly for you, either through the use of /etc/ttys for the
console, or through the use of resources for X windows emulators.

Do this carefully: first test manually on a specific session, then do
the changes in *your* config files, and then decide whether you really
want to do this on a system basis.

In the end, you'll end up with a sane configuration at the system level,
and your personal config files set up carefully.

A big advantage of doing this on your config files is that, over the years,
you'll end up with a configuration you can transport from machine to machine
as you gain user accounts on other people's machines, where you usually
cannot change system-wide files...



ACPI issue

2008-05-11 Thread Cesare Gargano
Hi all.
I'm playing with acpi to get it working on my T23 thinkpad.
Thermal zone and battery status are working ok. But when I play with hotkey
buttons, open/close lid, unplug AC cable, nothing happens. After reading acpi.c
I've noted that this line is not correct for me (from [EMAIL PROTECTED]):

...
sc-sc_lastgpe = sc-sc_fadt-gpe0_blk_len  2;
...

because I've a GPE on 0x18 and another on 0x1c, but sc_lastgpe value is 0x10.
Reading my acpidump output, I find:

...
Device(EC__) {
Name(_HID, 0x090cd041)
Name(_UID, 0x0)
Name(_GPE, 0x1c)
   
...
...
Scope(\_GPE) {
Method(_L18) {
 ^^
Store(\_SB_.PCI0.LPC_.EC__.HWAK, Local0)
...

If I change that line to:

...
sc-sc_lastgpe = ((sc-sc_fadt-gpe0_blk_len  2) * 8) - 1;
...

(from acpica-unix version, found on netbsd source code), I don't know what I'm
doing, but it works. I can see these lines in dmesg:
 
...
Adding GPE handler 18 (level)
...
Adding GPE handler 1c (acpiec)
...
enabling GPE 18 (current: disabled) 00
enabling GPE 1c (current: disabled) 00
...

In that way when an acpi interrupt arrives, our right handler is called from
[EMAIL PROTECTED] But it is *not* true. On my T23 the only interrupt I
receive from acpi is from the power button, when I press it for more then 4
seconds.

Am I wrong about acpi interrupt mechanism? Should the right gpe handler be
called *after* an acpi interrupt? What is the right value for sc_lastgpe, if my
DSDT is not wrong?

If I *experimentally* call on each kthread wakeup my 0x1c gpe handler, EC works
fine, I can get all hotkey buttons, lid switches, hotplug and video events.
Could we find a solution?

Thanks to all.

This is dmesg with *old* sc_lastgpe:

OpenBSD 4.3-current (GENERIC) #118: Sun May 11 15:16:00 CEST 2008
[EMAIL PROTECTED]:/usr/src/sys/arch/i386/compile/GENERIC
cpu0: Intel(R) Pentium(R) III Mobile CPU 1133MHz (GenuineIntel 686-class) 
1.14 GHz
cpu0: 
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR,SSE
real mem  = 1072721920 (1023MB)
avail mem = 1029079040 (981MB)
User Kernel Config
UKC disable apm
324 apm0 disabled
UKC quit
Continuing...
mainbus0 at root
bios0 at mainbus0: AT/286+ BIOS, date 10/18/06, BIOS32 rev. 0 @ 0xfd7e0, SMBIOS 
rev. 2.31 @ 0xe0010 (49 entries)
bios0: vendor IBM version 1AET64WW (1.20 ) date 10/18/2006
bios0: IBM 26474U2
bios0: IBM ThinkPad Embedded Controller -[1AHT23WW-1.06a   ]-
apm at bios0 function 0x15 not configured
acpi0 at bios0: rev 2
acpi0: tables DSDT FACP SSDT ECDT BOOT
acpi0: wakeup devices LID_(S3) SLPB(S3) UART(S3) PCI0(S4) PCI1(S4) DOCK(S4) 
USB0(S3) USB1(S3) USB2(S3) AC97(S4)
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpi device at acpi0 from table DSDT not configured
acpi device at acpi0 from table FACP not configured
acpi device at acpi0 from table SSDT not configured
acpi device at acpi0 from table ECDT not configured
acpi device at acpi0 from table BOOT not configured
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus 1 (AGP_)
acpiprt2 at acpi0: bus 2 (PCI1)
acpiec0 at acpi0
acpicpu0 at acpi0: C3, C2, FVS, 1133, 733 MHz
acpitz0 at acpi0: critical temperature 96 degC
acpibtn0 at acpi0: LID_
acpibtn1 at acpi0: SLPB
acpibat0 at acpi0: BAT0 model IBM-02K7072 serial   434 type LION oem SANYO
acpibat1 at acpi0: BAT1 not present
acpiac0 at acpi0: AC unit online
acpithinkpad0 at acpi0
acpidock at acpi0 not configured
bios0: ROM list: 0xc/0xe000 0xce000/0x1000 0xcf000/0x1000 0xdc000/0x4000! 
0xe/0x1
cpu0 at mainbus0
pci0 at mainbus0 bus 0: configuration mode 1 (no bios)
pchb0 at pci0 dev 0 function 0 Intel 82830M Host rev 0x04
ppb0 at pci0 dev 1 function 0 Intel 82830M AGP rev 0x04
pci1 at ppb0 bus 1
vga1 at pci1 dev 0 function 0 S3 SuperSavage rev 0x05
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
agp0 at vga1: no integrated graphics
uhci0 at pci0 dev 29 function 0 Intel 82801CA/CAM USB rev 0x02: irq 11
uhci1 at pci0 dev 29 function 1 Intel 82801CA/CAM USB rev 0x02: irq 11
uhci2 at pci0 dev 29 function 2 Intel 82801CA/CAM USB rev 0x02: irq 11
ppb1 at pci0 dev 30 function 0 Intel 82801BAM Hub-to-PCI rev 0x42
pci2 at ppb1 bus 2
cbb0 at pci2 dev 0 function 0 TI PCI1420 CardBus rev 0x00: irq 11
cbb1 at pci2 dev 0 function 1 TI PCI1420 CardBus rev 0x00: irq 11
ATT/Lucent LTMODEM rev 0x01 at pci2 dev 2 function 0 not configured
fxp0 at pci2 dev 8 function 0 Intel PRO/100 VE rev 0x42, i82562: irq 11, 
address 00:d0:59:d8:07:09
inphy0 at fxp0 phy 1: i82562ET 10/100 PHY, rev. 0
cardslot0 at cbb0 slot 0 flags 0
cardbus0 at cardslot0: bus 3 device 0 cacheline 0x8, lattimer 0xb0
pcmcia0 at cardslot0
cardslot1 at cbb1 slot 1 flags 0
cardbus1 at cardslot1: bus 6 device 0 cacheline 0x8, 

ath freezes system

2008-05-11 Thread comfooc
Hi,
I'm using OpenBSD-current and I have Atheros AR2413 MiniPCI card.
If I use twice command: ifconfig -M athN system freeze-up (only hard
reboot helps).

Cheers.

pcidump:
0:12:0: Atheros AR2413
0x: 001a168c 02900016 0201 5008
0x0010: fc01   
0x0020:   5001 2052168c
0x0030:  0044  1c0a0103
0x0040:  01c20001 c6004000 
0x0050:    
0x0060:    
0x0070:    
0x0080:    
0x0090:    
0x00a0:    
0x00b0:    
0x00c0:    
0x00d0:    
0x00e0:    
0x00f0:    

Dmesg:
OpenBSD 4.3-current (GENERIC) #853: Fri May  2 04:37:23 MDT 2008
[EMAIL PROTECTED]:/usr/src/sys/arch/i386/compile/GENERIC
cpu0: Intel Pentium III (GenuineIntel 686-class) 498 MHz
cpu0: 
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,SER,MMX,FXSR,SSE
real mem  = 200830976 (191MB)
avail mem = 185974784 (177MB)
mainbus0 at root
bios0 at mainbus0: AT/286+ BIOS, date 12/21/99, BIOS32 rev. 0 @
0xfd8b0, SMBIOS rev. 2.3 @ 0xec660 (31 entries)
bios0: vendor IBM version 1.03.23 date 12/21/1999
bios0: IBM 260961G
apm0 at bios0: Power Management spec V1.2
apm0: battery life expectancy 98%
apm0: AC on, battery charge high, charging
acpi at bios0 function 0x0 not configured
pcibios0 at bios0: rev 2.1 @ 0xfd8b0/0x750
pcibios0: PCI IRQ Routing Table rev 1.0 @ 0xfdf60/128 (6 entries)
pcibios0: PCI Interrupt Router at 000:07:0 (Intel 82371FB ISA rev 0x00)
pcibios0: PCI bus #1 is the last bus
bios0: ROM list: 0xc/0xc000
cpu0 at mainbus0
pci0 at mainbus0 bus 0: configuration mode 1 (no bios)
pchb0 at pci0 dev 0 function 0 Intel 82440MX Host rev 0x01
pcib0 at pci0 dev 7 function 0 Intel 82440MX ISA rev 0x01
pciide0 at pci0 dev 7 function 1 Intel 82440MX IDE rev 0x00: DMA,
channel 0 wired to compatibility, channel 1 wired to compatibility
wd0 at pciide0 channel 0 drive 0: IBM-DARA-212000
wd0: 16-sector PIO, LBA, 11508MB, 23569967 sectors
wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 2
pciide0: channel 1 disabled (no drives)
uhci0 at pci0 dev 7 function 2 Intel 82440MX USB rev 0x00: irq 3
piixpcib0 at pci0 dev 7 function 3 Intel 82440MX Power rev 0x00
vga1 at pci0 dev 9 function 0 Silicon Motion LynxEM+ rev 0xa0
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
cbb0 at pci0 dev 10 function 0 TI PCI1211 CardBus rev 0x00: irq 5
clct0 at pci0 dev 11 function 0 Cirrus Logic CS4281 CrystalClear rev
0x01 irq 4
ac97: codec id 0x43525914 (Cirrus Logic CS4297A rev 4)
ac97: codec features headphone, 20 bit DAC, 18 bit ADC, Crystal Semi 3D
audio0 at clct0
ath0 at pci0 dev 12 function 0 Atheros AR2413 rev 0x01: irq 3
ath0: AR2413 7.8 phy 4.5 rf 5.6, FCC2A*, address 00:1d:0f:af:98:b7
isa0 at pcib0
isadma0 at isa0
pckbc0 at isa0 port 0x60/5
pckbd0 at pckbc0 (kbd slot)
pckbc0: using irq 1 for kbd slot
wskbd0 at pckbd0: console keyboard, using wsdisplay0
pms0 at pckbc0 (aux slot)
pckbc0: using irq 12 for aux slot
wsmouse0 at pms0 mux 0
pcppi0 at isa0 port 0x61
midi0 at pcppi0: PC speaker
spkr0 at pcppi0
lpt0 at isa0 port 0x378/4 irq 7
npx0 at isa0 port 0xf0/16: reported by CPUID; using exception 16
fdc0 at isa0 port 0x3f0/6 irq 6 drq 2
usb0 at uhci0: USB revision 1.0
uhub0 at usb0 Intel UHCI root hub rev 1.00/1.00 addr 1
isa at piixpcib0 not configured
cardslot0 at cbb0 slot 0 flags 0
cardbus0 at cardslot0: bus 1 device 0 cacheline 0x0, lattimer 0x20
pcmcia0 at cardslot0
biomask ef6d netmask ef6d ttymask ffef
mtrr: Pentium Pro MTRR support
ep1 at pcmcia0 function 0 3Com, Megahertz 574B, B port 0xa000/32:
address 00:50:da:e5:42:e7
tqphy0 at ep1 phy 0: 78Q2120 10/100 PHY, rev. 10
umass0 at uhub0 port 1 configuration 1 interface 0 Kingston
DataTraveler 2.0 rev 2.00/2.00 addr 2
umass0: using SCSI over Bulk-Only
scsibus0 at umass0: 2 targets
sd0 at scsibus0 targ 1 lun 0: Kingston, DataTraveler 2.0, 1.00 SCSI2
0/direct removable
sd0: 3832MB, 488 cyl, 255 head, 63 sec, 512 bytes/sec, 7847936 sec total
softraid0 at root
root on wd0a swap on wd0b dump on wd0b



Re: mac filter for host ap mode?

2008-05-11 Thread Jonathan
On Sun, May 11, 2008 at 7:28 AM, Didier Wiroth [EMAIL PROTECTED] wrote:
 hello,
 I'm using a ral wireless interface in host ap with wpa:
 $ ifconfig ral0
 ral0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST mtu 1500
lladdr 00:
groups: wlan
media: IEEE802.11 autoselect mode 11g hostap
status: active
ieee80211: nwid wifi2 chan 2 bssid 00:12:0e:61:80:6c wpapsk
 not displayed wpaprotos wpa2 wpaakms psk,802.1x wpaciphers tkip,ccmp
 wpagroupcipher tkip 100dBm
inet6 fe80::212:eff:fe61:806c%ral0 prefixlen 64 scopeid 0x5
inet 192.168.0.1 netmask 0xff00 broadcast 192.168.0.255

 Is it possible to use a MAC filter in this mode?
 What is the easiest way to implement a MAC filter in host ap mode?

If you are using DHCPD to serve address you can manually add mac
address and IP served. And then don't have a range of IPs for set for
the shared-network since you are manually adding them.

man dhcpd

host haagen {
 hardware ethernet 08:00:2b:4c:59:23;
 fixed-address 239.252.197.9;
 filename haagen.boot;
 option domain-name-servers 192.5.5.1;
 option domain-name vix.com;
}

You will be doing something very similar to this.

Jonathan



gem0 device timeout

2008-05-11 Thread Markus Lude
Hello,
when I tried to send a mail today I get

  gem0: device timeout

This happens on every try to send that special mail. Sending other
mails works well. I send mails from mutt with the msmtp port. The
machine is running the sparc64 snapshot from May 2nd (dmesg below).

Any hints what is going on here?

Regards,
Markus


console is keyboard/display
Copyright (c) 1982, 1986, 1989, 1991, 1993
The Regents of the University of California.  All rights reserved.
Copyright (c) 1995-2008 OpenBSD. All rights reserved.  http://www.OpenBSD.org

OpenBSD 4.3-current (GENERIC) #1616: Fri May  2 06:31:00 MDT 2008
[EMAIL PROTECTED]:/usr/src/sys/arch/sparc64/compile/GENERIC
real mem = 1207959552 (1152MB)
avail mem = 1154973696 (1101MB)
mainbus0 at root: Sun Blade 100 (UltraSPARC-IIe)
cpu0 at mainbus0: SUNW,UltraSPARC-IIe (rev 1.4) @ 502 MHz
cpu0: physical 16K instruction (32 b/l), 16K data (32 b/l), 256K external (64 
b/l)
psycho0 at mainbus0: pci108e,a001, impl 0, version 0, ign 7c0
psycho0: bus range 0-1, PCI bus 0
psycho0: dvma map c000-dfff, iotdb 167a000-16fa000
pci0 at psycho0
ebus0 at pci0 dev 12 function 0 Sun RIO EBus rev 0x01
flashprom at ebus0 addr 0-f not configured
clock1 at ebus0 addr 0-1fff: mk48t59
ebus1 at pci0 dev 7 function 0 Acer Labs M1533 ISA rev 0x00
dma at ebus1 addr 0- ivec 0x2a not configured
power0 at ebus1 addr 800-82f ivec 0x20
com0 at ebus1 addr 3f8-3ff ivec 0x2b: ns16550a, 16 byte fifo
com1 at ebus1 addr 2e8-2ef ivec 0x2b: ns16550a, 16 byte fifo
gem0 at pci0 dev 12 function 1 Sun ERI Ether rev 0x01: ivec 0x7c6, address 
00:03:ba:18:3a:e9
ukphy0 at gem0 phy 1: Generic IEEE 802.3u media interface, rev. 1: OUI 
0x0010dd, model 0x0002
Sun FireWire rev 0x01 at pci0 dev 12 function 2 not configured
ohci0 at pci0 dev 12 function 3 Sun USB rev 0x01: ivec 0x7e4, version 1.0, 
legacy support
alipm0 at pci0 dev 3 function 0 Acer Labs M7101 Power rev 0x00: 223KHz clock
iic0 at alipm0
max1617 at alipm0 addr 0x18 skipped due to alipm0 bugs
scm001 at alipm0 addr 0x20 skipped due to alipm0 bugs
spdmem0 at iic0 addr 0x50: 512MB SDRAM ECC PC133CL2
spdmem1 at iic0 addr 0x51: 128MB SDRAM ECC PC133CL2
spdmem2 at iic0 addr 0x52: 256MB SDRAM ECC PC133CL3
spdmem3 at iic0 addr 0x53: 256MB SDRAM ECC PC133CL3
autri0 at pci0 dev 8 function 0 Acer Labs M5451 Audio rev 0x01: ivec 0x7e3
ac97: codec id 0x41445348 (Analog Devices AD1881A)
ac97: codec features headphone, Analog Devices Phat Stereo
audio0 at autri0
midi0 at autri0: 4DWAVE MIDI UART
pciide0 at pci0 dev 13 function 0 Acer Labs M5229 UDMA IDE rev 0xc3: DMA, 
channel 0 configured to native-PCI, channel 1 configured to native-PCI
pciide0: using ivec 0x7cc for native-PCI interrupt
wd0 at pciide0 channel 0 drive 0: ST3120213A
wd0: 16-sector PIO, LBA48, 114473MB, 234441648 sectors
atapiscsi0 at pciide0 channel 0 drive 1
scsibus0 at atapiscsi0: 2 targets
cd0 at scsibus0 targ 0 lun 0: LITEON, CD-ROM LTN486S, Y3S2 ATAPI 5/cdrom 
removable
wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 2
cd0(pciide0:0:1): using PIO mode 4, Ultra-DMA mode 2
wd1 at pciide0 channel 1 drive 0: SAMSUNG SP0842N
wd1: 16-sector PIO, LBA48, 76319MB, 156301488 sectors
wd1(pciide0:1:0): using PIO mode 4, Ultra-DMA mode 2
ppb0 at pci0 dev 5 function 0 Intel S21152BB PCI-PCI rev 0x00
pci1 at ppb0 bus 1
vgafb0 at pci0 dev 19 function 0 ATI Rage XL rev 0x27
wsdisplay0 at vgafb0: console (std, sun emulation)
usb0 at ohci0: USB revision 1.0
uhub0 at usb0 Sun OHCI root hub rev 1.00/1.00 addr 1
uhidev0 at uhub0 port 1 configuration 1 interface 0 Sun Microsystems Type 6 
Keyboard rev 1.00/1.02 addr 2
uhidev0: iclass 3/1
ukbd0 at uhidev0: 8 modifier keys, 6 key codes, layout 33
wskbd0 at ukbd0: console keyboard, using wsdisplay0
uhidev1 at uhub0 port 2 configuration 1 interface 0 Logitech USB-PS/2 Optical 
Mouse rev 2.00/20.00 addr 3
uhidev1: iclass 3/1
ums0 at uhidev1: 3 buttons and Z dir.
wsmouse0 at ums0
softraid0 at root
bootpath: /[EMAIL PROTECTED],0/[EMAIL PROTECTED],0/[EMAIL PROTECTED],0
root on wd0a swap on wd0b dump on wd0b



Re: WPA in -current

2008-05-11 Thread Jonathan
On Sun, May 11, 2008 at 5:28 AM, Paul de Weerd [EMAIL PROTECTED] wrote:
 Just yesterday I tried setting up a WPA access point (with rum(4)) and
 my ifconfig output looks stunningly similar. There's two things
 though... Are you sure you're not running a non-GENERIC kernel ?
 Either you are, or you're not showing us the full ifconfig output
 since the link local address for IPv6 is missing. You should have a
 line reading

inet6 fe80::20e:2eff:fexx:xx:xx%ral0 prefixlen 64 scopeid 0xX

Yes I removed this line sorry. I am using a GENERIC kernel too, I
followed the DOCs to get the latest -current (CVS) recompiled kernel,
then userland.

When using wpaakms psk how do I use it? I tried:

/etc/hostname.ral0
inet 192.168.1.1 255.255.255.0 NONE media autoselect \
   mediaopt hostap nwid obsd_wpa chan 8\
   wpa wpaakms psk not displayed

But when I did this no psk 0xA would show up in ifconfig.

 Other than that, I configured 'wpaakms psk', you might want to try
 this. This shouldn't change things (since you have psk too), but maybe
 the 802.1x confuses things.

 After I configured my Host AP, I was able to connect my Mac OSX (also
 Leopard) machine to the newly created network. It's not very stable,
 but this is probably caused by the rum(4) I'm using :

 CAVEATS
 The rum driver supports automatic control of the transmit speed in BSS
 mode only.  Therefore the use of a rum adapter in Host AP mode is dis-
 couraged.

 Unfortunately, it is currently the only wireless NIC I have to test
 WPA, so I'm kind of stuck with it ;)

 So, make sure you're using GENERIC (the `sysctl -n kern.version`
 output from your mail seems to indicate you are, but the ifconfig
 output contradicts it). Next is to try adding 'wpaakms psk' to your
 hostname.ral0. Then, maybe try another card, rebooting the Mac, etc.



Re: ath freezes system

2008-05-11 Thread Richard Daemon
On Sun, May 11, 2008 at 11:24 AM, comfooc [EMAIL PROTECTED] wrote:
 Hi,
  I'm using OpenBSD-current and I have Atheros AR2413 MiniPCI card.
  If I use twice command: ifconfig -M athN system freeze-up (only hard
  reboot helps).

  Cheers.

  pcidump:
  0:12:0: Atheros AR2413
 0x: 001a168c 02900016 0201 5008
 0x0010: fc01   
 0x0020:   5001 2052168c
 0x0030:  0044  1c0a0103
 0x0040:  01c20001 c6004000 
 0x0050:    
 0x0060:    
 0x0070:    
 0x0080:    
 0x0090:    
 0x00a0:    
 0x00b0:    
 0x00c0:    
 0x00d0:    
 0x00e0:    
 0x00f0:    

  Dmesg:
  OpenBSD 4.3-current (GENERIC) #853: Fri May  2 04:37:23 MDT 2008
 [EMAIL PROTECTED]:/usr/src/sys/arch/i386/compile/GENERIC
  cpu0: Intel Pentium III (GenuineIntel 686-class) 498 MHz
  cpu0: 
 FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,SER,MMX,FXSR,SSE
  real mem  = 200830976 (191MB)
  avail mem = 185974784 (177MB)
  mainbus0 at root
  bios0 at mainbus0: AT/286+ BIOS, date 12/21/99, BIOS32 rev. 0 @
  0xfd8b0, SMBIOS rev. 2.3 @ 0xec660 (31 entries)
  bios0: vendor IBM version 1.03.23 date 12/21/1999
  bios0: IBM 260961G
  apm0 at bios0: Power Management spec V1.2
  apm0: battery life expectancy 98%
  apm0: AC on, battery charge high, charging
  acpi at bios0 function 0x0 not configured
  pcibios0 at bios0: rev 2.1 @ 0xfd8b0/0x750
  pcibios0: PCI IRQ Routing Table rev 1.0 @ 0xfdf60/128 (6 entries)
  pcibios0: PCI Interrupt Router at 000:07:0 (Intel 82371FB ISA rev 0x00)
  pcibios0: PCI bus #1 is the last bus
  bios0: ROM list: 0xc/0xc000
  cpu0 at mainbus0
  pci0 at mainbus0 bus 0: configuration mode 1 (no bios)
  pchb0 at pci0 dev 0 function 0 Intel 82440MX Host rev 0x01
  pcib0 at pci0 dev 7 function 0 Intel 82440MX ISA rev 0x01
  pciide0 at pci0 dev 7 function 1 Intel 82440MX IDE rev 0x00: DMA,
  channel 0 wired to compatibility, channel 1 wired to compatibility
  wd0 at pciide0 channel 0 drive 0: IBM-DARA-212000
  wd0: 16-sector PIO, LBA, 11508MB, 23569967 sectors
  wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 2
  pciide0: channel 1 disabled (no drives)
  uhci0 at pci0 dev 7 function 2 Intel 82440MX USB rev 0x00: irq 3
  piixpcib0 at pci0 dev 7 function 3 Intel 82440MX Power rev 0x00
  vga1 at pci0 dev 9 function 0 Silicon Motion LynxEM+ rev 0xa0
  wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
  wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
  cbb0 at pci0 dev 10 function 0 TI PCI1211 CardBus rev 0x00: irq 5
  clct0 at pci0 dev 11 function 0 Cirrus Logic CS4281 CrystalClear rev
  0x01 irq 4
  ac97: codec id 0x43525914 (Cirrus Logic CS4297A rev 4)
  ac97: codec features headphone, 20 bit DAC, 18 bit ADC, Crystal Semi 3D
  audio0 at clct0
  ath0 at pci0 dev 12 function 0 Atheros AR2413 rev 0x01: irq 3
  ath0: AR2413 7.8 phy 4.5 rf 5.6, FCC2A*, address 00:1d:0f:af:98:b7
  isa0 at pcib0
  isadma0 at isa0
  pckbc0 at isa0 port 0x60/5
  pckbd0 at pckbc0 (kbd slot)
  pckbc0: using irq 1 for kbd slot
  wskbd0 at pckbd0: console keyboard, using wsdisplay0
  pms0 at pckbc0 (aux slot)
  pckbc0: using irq 12 for aux slot
  wsmouse0 at pms0 mux 0
  pcppi0 at isa0 port 0x61
  midi0 at pcppi0: PC speaker
  spkr0 at pcppi0
  lpt0 at isa0 port 0x378/4 irq 7
  npx0 at isa0 port 0xf0/16: reported by CPUID; using exception 16
  fdc0 at isa0 port 0x3f0/6 irq 6 drq 2
  usb0 at uhci0: USB revision 1.0
  uhub0 at usb0 Intel UHCI root hub rev 1.00/1.00 addr 1
  isa at piixpcib0 not configured
  cardslot0 at cbb0 slot 0 flags 0
  cardbus0 at cardslot0: bus 1 device 0 cacheline 0x0, lattimer 0x20
  pcmcia0 at cardslot0
  biomask ef6d netmask ef6d ttymask ffef
  mtrr: Pentium Pro MTRR support
  ep1 at pcmcia0 function 0 3Com, Megahertz 574B, B port 0xa000/32:
  address 00:50:da:e5:42:e7
  tqphy0 at ep1 phy 0: 78Q2120 10/100 PHY, rev. 10
  umass0 at uhub0 port 1 configuration 1 interface 0 Kingston
  DataTraveler 2.0 rev 2.00/2.00 addr 2
  umass0: using SCSI over Bulk-Only
  scsibus0 at umass0: 2 targets
  sd0 at scsibus0 targ 1 lun 0: Kingston, DataTraveler 2.0, 1.00 SCSI2
  0/direct removable
  sd0: 3832MB, 488 cyl, 255 head, 63 sec, 512 bytes/sec, 7847936 sec total
  softraid0 at root
  root on wd0a swap on wd0b dump on wd0b



Same problem here, same NIC too.



Re: [4.3]: ThinkPad X61s cannot boot i386 or amd64 ISO's with AHCI

2008-05-11 Thread Brad Walker
Off list someone advised me that r1.62 of src/sys/dev/ata/atascsi.c
might have fixed this. I built an i386 RAMDISK_CD kernel from freshly
updated CVS HEAD with that updated file and recreated cd43.iso with the
new bsd.rd. The problem persisted on the new boot cd. I've attached a
console log obtained through kermit. I'll try amd64 again when
ftp.openbsd.org has post-2008-05-05 snapshots.

Brad Walker
 OpenBSD/i386 CDBOOT 2.02

boot 

booting cd0a:/4.3/i386/bsd.rd: 
|/-\|/-5398068\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\!
 
|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/!
 
-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-!
 
\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|!
 

geom network driver times out on sparc 4.2?

2008-05-11 Thread Jay
ANECDOTALLY, network driver geom times out under
moderate steady load on a Sun Blade 150 within an hour of use.
(as in network stops working, everything else is ok, and
dmesg says geom0: device timeout about every 30 seconds; and
reboot fixes it)

Haven't seen the problem yet under Linux.
Have seen it multiple times under OpenBSD 4.2.

The machine was able to be up for days no problem busy with cd
/usr/ports/x11/kde
 sudo make, so generally all else is well.

I will try 4.3 soon.

I know this is poor problem report. It's about all I have.
I can do my work equally well for now under any BSD or Linux so punting is ok
for me.
(I'm porting some stuff to all of OpenBSD, NetBSD, FreeBSD, Linux.)

lspci from Linux:

s00:00.0 Host bridge: Sun Microsystems Computer Corp. Psycho UPA-PCI Bus
Module [pcipsy]
00:03.0 Non-VGA unclassified device: ALi Corporation M7101 Power Management
Controller [PMU]
00:05.0 PCI bridge: Intel Corporation 21152 PCI-to-PCI Bridge
00:07.0 ISA bridge: ALi Corporation M1533/M1535 PCI to ISA Bridge [Aladdin
IV/V/V+]
00:08.0 Multimedia audio controller: ALi Corporation M5451 PCI AC-Link
Controller Audio Device (rev 01)
00:0c.0 Bridge: Sun Microsystems Computer Corp. RIO EBUS (rev 01)
00:0c.1 Ethernet controller: Sun Microsystems Computer Corp. RIO 10/100
Ethernet [eri] (rev 01)
00:0c.2 FireWire (IEEE 1394): Sun Microsystems Computer Corp. RIO 1394 (rev
01)
00:0c.3 USB Controller: Sun Microsystems Computer Corp. RIO USB (rev 01)
00:0d.0 IDE interface: ALi Corporation M5229 IDE (rev c3)
00:13.0 VGA compatible controller: ATI Technologies Inc Rage XL (rev 27)
01:00.0 PCI bridge: Intel Corporation 21152 PCI-to-PCI Bridge
02:01.0 Bridge: Xerox Corporation Unknown device 0017
02:04.0 FireWire (IEEE 1394): Texas Instruments PCILynx/PCILynx2 IEEE 1394
Link Layer Controller (rev 04)

I assume Linux dmesg isn't interesting, and I can send OpenBSD dmesg if it
matters.

Fuller disclosure: The first install I saw this on I had partly done cd
/usr/src  make, it failed eventually not knowing some size,
I didn't know you had to build the kernel first. Anyway, I reinstalled, didn't
rebuild any of OpenBSD that time,
same behavior.

Fuller disclosure: hardware bought used on eBay, can't really be vouched for.
But Linux isn't having the problem.

Sound at all familiar?

Thanks,
 - Jay



Can't build 4.3-stable binaries: don't know how to make mkmakefile.c

2008-05-11 Thread Andrés
While rebuilding the binaries for 4.3-stable, I get this error:

=== usr.sbin/config
make: don't know how to make mkmakefile.c. Stop in /usr/src/usr.sbin/config.
*** Error code 2

Stop in /usr/src/usr.sbin (line 48 of /usr/share/mk/bsd.subdir.mk).
*** Error code 1

Stop in /usr/src (line 48 of /usr/share/mk/bsd.subdir.mk).
*** Error code 1

Stop in /usr/src (line 73 of Makefile)


After:
rm -rf /usr/obj/*
cd /usr/src
make obj
cd /usr/src/etc  env DESTDIR=/ make distrib-dirs
cd /usr/src
make build

I could rebuild the kernel without problems.

I'm running 4.3-release (i386), installed from scratch.

Any idea?

Greetings.



Re: geom network driver times out on sparc 4.2?

2008-05-11 Thread Sevan / Venture37
Are you running the latest version of OBP on the system?
_

All new Live Search at Live.com

http://clk.atdmt.com/UKM/go/msnnkmgl001006ukm/direct/01/



Re: Can't build 4.3-stable binaries: don't know how to make mkmakefile.c

2008-05-11 Thread Steven Surdock
 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of
..
 While rebuilding the binaries for 4.3-stable, I get this error:

 === usr.sbin/config
 make: don't know how to make mkmakefile.c. Stop in
/usr/src/usr.sbin/config.
 *** Error code 2

Same here.  I appears that the CVS from rt.fm is off as well (missing relayd.h
and others.)  I then grabbed the OPENBSD_4_3 tag from anoncvs6.usa.openbsd.org
which fixed relayd.h but it removed something related to mkmakefile (sorry,
I'll try to get more detail in a bit.)

Also it appears that the -stable version didn't get updated (yet) in source.
The following kernel is from a -stable source build (unless I screwed
something up...)

OpenBSD 4.3 (GENERIC) #0: Sun May 11 15:13:13 EDT 2008

-Steve S.



Re: Can't build 4.3-stable binaries: don't know how to make mkmakefile.c

2008-05-11 Thread Michael
On Sun, May 11, 2008 at 05:32:37PM -0400, Steven Surdock wrote:
  -Original Message-
  From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of
 ..
  While rebuilding the binaries for 4.3-stable, I get this error:
 
  === usr.sbin/config
  make: don't know how to make mkmakefile.c. Stop in
 /usr/src/usr.sbin/config.
  *** Error code 2
 
 Same here.  I appears that the CVS from rt.fm is off as well (missing relayd.h
 and others.)  I then grabbed the OPENBSD_4_3 tag from anoncvs6.usa.openbsd.org
 which fixed relayd.h but it removed something related to mkmakefile (sorry,
 I'll try to get more detail in a bit.)
 
 Also it appears that the -stable version didn't get updated (yet) in source.
 The following kernel is from a -stable source build (unless I screwed
 something up...)
 
 OpenBSD 4.3 (GENERIC) #0: Sun May 11 15:13:13 EDT 2008
 
 -Steve S.

I'm pretty new to this so my command may be wrong, but this is what I got a 
couple of hours ago:

cvs -qd :pserver:[EMAIL PROTECTED]:2401/cvs get -rOPENBSD_4_3 -P src 
? src/xenocara
U src/distrib/sets/lists/base/md.alpha
U src/distrib/sets/lists/base/md.amd64
U src/distrib/sets/lists/base/md.armish
U src/distrib/sets/lists/base/md.hppa
U src/distrib/sets/lists/base/md.hppa64
U src/distrib/sets/lists/base/md.i386
U src/distrib/sets/lists/base/md.macppc
U src/distrib/sets/lists/base/md.sgi
U src/distrib/sets/lists/base/md.sparc64
cvs server: src/distrib/sets/lists/base/md.zaurus is no longer in the repository
U src/lib/libc/gen/readdir.c
U src/lib/libc/gen/telldir.c
cvs server: src/share/man/man4/Makefile is no longer in the repository
cvs server: src/share/man/man4/pci.4 is no longer in the repository
cvs server: src/sys/arch/i386/conf/GENERIC is no longer in the repository
cvs server: src/sys/dev/pci/files.pci is no longer in the repository
U src/usr.bin/ssh/channels.c
U src/usr.bin/ssh/session.c
U src/usr.sbin/bgpd/rde_decide.c
cvs server: src/usr.sbin/relayd/parse.y is no longer in the repository
cvs server: src/usr.sbin/relayd/pfe_filter.c is no longer in the repository
cvs server: src/usr.sbin/relayd/relayd.conf.5 is no longer in the repository
cvs server: src/usr.sbin/relayd/relayd.h is no longer in the repository



Re: PF Congestion and state table question

2008-05-11 Thread Henning Brauer
* Steve Johnson [EMAIL PROTECTED] [2008-05-11 19:08]:
 Henning Brauer wrote:

 congestion in what sense? the congestion counter increasing? this isnot 
 necessarily a problem, it just must not grow fast. andof course you want 
 to bump your ipintrq length.
   
 Yes, the congestion counter is what I meant. It's increasing at around 7/s 
 when the traffic we send it now is at peak time, which is about 40% of our 
 total traffic that we will be sending to that box. The 
 net.inet.ip.ifq.drops counter is increasing at a length of 100/s right now, 
 but I'm not at that peak time either. Having those counters at that level 
 seemed pretty high to me, but is it the case? Or out of 35-60K packets per 
 seconds it's a number that I should not worry about?

nothing you HAVE to worry about.

 As for the ipintrq length, I've tried different values between 1000-3000 
 and values between those didn't seem to affect the rate of the PF 
 congestion counter.

I'm not sure how many packets your cards can put into ipintrq in one 
int. 3000 might still be not enough. watch net.inet.ip.ifq.*, 
especially len. teh question is wether you see bursts or constant 
pressure.


-- 
Henning Brauer, [EMAIL PROTECTED], [EMAIL PROTECTED]
BS Web Services, http://bsws.de
Full-Service ISP - Secure Hosting, Mail and DNS Services
Dedicated Servers, Rootservers, Application Hosting - Hamburg  Amsterdam



Re: Spamd table

2008-05-11 Thread Girish Venkatachalam
On 23:45:06 May 11, Pui Edylie wrote:
 Hi

 When i ran pfctl -t spamd-white -T show it shows a list of IP addresses and 
 those IP addresses are mostly from China and etc ... (IE spamming 
 countries)

 I have enabled syslog logging with -v from the log file when tailing it, i 
 did not see any (WHITE) entry only (GREY) and (BLACK)

 I am interested where do i find out the whitelisted IP address?

 This is the rc.local.conf

 spamd_flags=-v -G 2:4:864 -y fxp3 -Y fxp3 -n SolOne SMTP

 OpenBSD 4.1

 table spamd-white persist
 rdr pass inet proto tcp from !spamd-white to any \
 port smtp - $spamvip port spamd

I think it is pretty obvious to anybody reading this e-mail why spamd is
doing the exact opposite of what you want it to do.

Any guesses?

I will take the suspense away.

You really should give a passtime of at least 10 minutes. Ideal values
might be around 30. Default is 25. So either leave the -G flag alone or
use something like -G 10:4:864. In case you want whitelisting to happen
sooner than normal.

Best of luck!

-Girish



Re: Spamd table

2008-05-11 Thread Pui Edylie

Hi,

Those IP addresses in spamd-white table are loaded when i ran the 
spamd-setup command which has ua and nixspam enabled only.


Now i am worried because it is loading spammer IP addresses into the 
would be legitimate table spamd-white


When i look at spamd it is still as empty as ever.

ta
-e

Girish Venkatachalam wrote:

On 23:45:06 May 11, Pui Edylie wrote:
  

Hi

When i ran pfctl -t spamd-white -T show it shows a list of IP addresses and 
those IP addresses are mostly from China and etc ... (IE spamming 
countries)


I have enabled syslog logging with -v from the log file when tailing it, i 
did not see any (WHITE) entry only (GREY) and (BLACK)


I am interested where do i find out the whitelisted IP address?

This is the rc.local.conf

spamd_flags=-v -G 2:4:864 -y fxp3 -Y fxp3 -n SolOne SMTP

OpenBSD 4.1

table spamd-white persist
rdr pass inet proto tcp from !spamd-white to any \
port smtp - $spamvip port spamd



I think it is pretty obvious to anybody reading this e-mail why spamd is
doing the exact opposite of what you want it to do.

Any guesses?

I will take the suspense away.

You really should give a passtime of at least 10 minutes. Ideal values
might be around 30. Default is 25. So either leave the -G flag alone or
use something like -G 10:4:864. In case you want whitelisting to happen
sooner than normal.

Best of luck!

-Girish




Old EmBSD docs

2008-05-11 Thread Steve B
Sometime ago I had run EmBSD on a little P100 and it served me nicely. Since
its disappearance from the landscape I've been using a stock OpenBSD install
on my home machine. However, I recently acquired a nice little Jetway board
with a PicoPSU and the idea of running EmBSD came to mind again. Would
anyone know if the EmBSD developers posted a recipe on how to make such a
stripped down version of OpenBSD? Alternatively is there documentation
elsewhere on how to do it? I was thinking about buying an industrial grade
flash drive from logicsupply.com and loading the OS onto it in place of the
CF method used by EmBSD.



Error in fdisk(8) documentation

2008-05-11 Thread Adam Patterson

In the fdisk(8) manpage you will see the following table.

#: idC   H  S -C   H  S [   start:  size   ]
-
0: 040   1  1 -  170   0 63 [  63: 2570462 ] DOS FAT-16
1: 000   0  0 -0   0  0 [   0:   0 ] unused
2: 000   0  0 -0   0  0 [   0:   0 ] unused
*3: A6  170   1  1 - 5167 239 63 [ 2570463:75569697 ] OpenBSD

For a first timer, reading this manpage during installation I think that this 
partition scheme would confuse them.

The start of #3 should actually be 2570462+63. The size of #0 plus the start 
point.

You can see the proper behavior in the following table from FAQ (14.2).

Starting   Ending   LBA Info:
#: idC   H  S -C   H  S [   start:  size   ]

*0: A63   0  1 -  552 254 63 [   48195: 8835750 ] OpenBSD 
1: 120   1  1 -2 254 63 [  63:   48132 ] Compaq Diag.
2: 000   0  0 -0   0  0 [   0:   0 ] unused  
3: 000   0  0 -0   0  0 [   0:   0 ] unused   



If I'm blatantly missing something please let me know, but I believe this is a 
bug.
Thanks. 
.adam.




Re: Old EmBSD docs

2008-05-11 Thread Jason George
Sometime ago I had run EmBSD on a little P100 and it served me nicely. Since
its disappearance from the landscape I've been using a stock OpenBSD install
on my home machine. However, I recently acquired a nice little Jetway board
with a PicoPSU and the idea of running EmBSD came to mind again. Would
anyone know if the EmBSD developers posted a recipe on how to make such a
stripped down version of OpenBSD? Alternatively is there documentation
elsewhere on how to do it? I was thinking about buying an industrial grade
flash drive from logicsupply.com and loading the OS onto it in place of the
CF method used by EmBSD.



Why don't you just use flashboot as the basis for your new recipe?

http://www.mindrot.org/projects/flashboot/



Re: Old EmBSD docs

2008-05-11 Thread Nick Holland
Jason George wrote:
Sometime ago I had run EmBSD on a little P100 and it served me nicely. Since
its disappearance from the landscape I've been using a stock OpenBSD install
on my home machine. However, I recently acquired a nice little Jetway board
with a PicoPSU and the idea of running EmBSD came to mind again. Would
anyone know if the EmBSD developers posted a recipe on how to make such a
stripped down version of OpenBSD? Alternatively is there documentation
elsewhere on how to do it? I was thinking about buying an industrial grade
flash drive from logicsupply.com and loading the OS onto it in place of the
CF method used by EmBSD.


 
 Why don't you just use flashboot as the basis for your new recipe?
 
 http://www.mindrot.org/projects/flashboot/

here's a better idea:
just use a standard install.  It is very difficult to buy a 1G flash
media anymore that isn't covered in dust, so it is hard (if not nearly
impossible) to justify building a crippled system anymore.

Yes, it is cool to think you have shrunk an OS down to 32M and still
have it do the job, but if you are just following someone else's script,
you get no Geek Points by doing so, other than it proves you can follow
instructions (which in large part indicates other people can WRITE
instructions).

So, you get no functional gain, considerable functional loss, you get
no Geek Macho points and you irritate the rest of us when the
inevitable problems crop up and you come running to us for help.

If you want to prove you are cool in a constructive way, run -current.
You will experience far less down time than you will running wacko
customized stuff you don't understand, and you will help make the next
release of OpenBSD better.

Nick.



Re: Screen,colorls,xterms issue. 4.2

2008-05-11 Thread Denny White
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Quoted from Jesus Sanchez on Sun, May 11, 2008 at 03:59:17AM +0200,:  Stuart 
Henderson escribis:  On 2008-05-10, Jesus Sanchez [EMAIL PROTECTED] wrote: 
   
 I have set an alias for ls='colorls -GF' (color output) and this causes
 the problems on a screen session. I have set the TERM=xterm-color on
 my /etc/profile.
 
 
 Why do that? That will override the correct terminal configuration
 and send control codes suitable for an xterm to terminals that can't
 handle it, like screen.
 
   
 So, what TERM variable should I use ?
 
 -Jesus
 

Somehow I lost the original message, probably with a fat finger,
so replying to this one. Here's the section of my .Xdefaults
pertaining to xterm and rxvt:

rxvt*loginShell:true
rxvt*transparent:true
rxvt*shading:40
rxvt*background:Black
rxvt*foreground:Cyan
rxvt*scrollBar:true
rxvt*scrollBar_right:true
rxvt*transpscrollbar:true
rxvt*saveLines:32767
rxvt*termName:rxvt

include: XTerm
XTerm.termName: nxterm
XTerm*font: -schumacher-clean-medium-*-normal-*-13-*-*-75-*-60-*-*
*VT100*colorMode: on
*VT100*boldColors: on
*VT100*dynamicColors: on
*VT100*foreground: cyan
*VT100*background: gray15
*VT100*colorULMode: on
*VT100*colorUL: yellow
*VT100*underLine: on
*VT100*colorBDMode: on
*VT100*colorBD: yellow3
*VT100*color0: black
*VT100*color1: red3
*VT100*color2: green3
*VT100*color3: yellow3
*VT100*color4: blue2
*VT100*color5: magenta3
*VT100*color6: cyan3
*VT100*color7: gray90
*VT100*color8: gray50
*VT100*color9: red
*VT100*color10: green
*VT100*color11: yellow
*VT100*color12: rgb:5c/5c/ff
*VT100*color13: magenta
*VT100*color14: cyan
*VT100*color15: white
*VT100*color16: gray15

#if PLANES  8
! Color the popup menus and the menubar to match:
*SimpleMenu.*.background: AntiqueWhite
*SimpleMenu.*.foreground: gray15

*VT100.scrollbar.thumb: vlines2
*VT100.scrollbar.width: 14
*VT100.scrollbar.background:gray60
*VT100.scrollbar.foreground:rgb:a/5/5
*VT100.scrollbar.borderWidth:   2
!*VT100.scrollbar.displayList:\
#endif

Set the colors according to your personal taste. I have no problem
with the term value in the env like that, either in xterm or rxvt.
For that matter, there's no conflict either with Eterm. And I can
run screen from all of them without any conflicts.

And, like some of the other messages mentioned, use wsvt25 in ttys.
Also, in my .kshrc file, I have the section commented out like so:

#if [ -x /usr/bin/tset ]; then
#   eval `/usr/bin/tset -sQ \vt220`
#fi

The ttys and .Xdefaults settings takes care of all of that. Hope
this helps you some. Marc Espie made a good point too, in his reply.
Leave the system config files alone as much as possible, especially
while you're learning. If you can't, at least back up the original.
Anytime you can use an 'rc' file in $HOME do it. It's kind of like
leaving /etc/rc.conf alone and putting your stuff in /etc/rc.local
and rc.conf.local.


- -- 

Denny White

All messages scanned by ClamAssassin
http://jameslick.com/clamassassin/
===
GnuPG key  : 0x1644E79A  |  http://wwwkeys.nl.pgp.net
Fingerprint: D0A9 AD44 1F10 E09E 0E67  EC25 CB44 F2E5 1644 E79A
===
iD8DBQFIJ7WCy0Ty5RZE55oRAhhtAJ9HfODUTsPlKJtzQCzUDBx0R+tBtACdEVxZ
KxlLx4WVCAipFIh4EBr1dbw=
=pkNu
-END PGP SIGNATURE-



Re: replacement pix firewall with pf

2008-05-11 Thread sonjaya
i try using binat :

###   interface  ##
## wan interface ( ip public-01 )##
ext_if=fxp0

 LAN Interface ( 192.168.0.0/24) 
prv_if=fxp1

 DMZ Interface ( 192.168.2.0/24) 
dmz_if=xl0

 ip public   LAN ##
ext_ad01=ipublic-01
ext_ad02=ipublic-02
prv_ad=192.168.1.0/24
dmz_ad=192.168.2.0/24


# DMZ server ip 
dmz_www_ad =192.168.0.2/32
dmz_mail_ad =192.168.0.3/32
#
# NAT section 
nat log on $ext_if  from $prv_ad  to any  - $ext_if
nat log on $ext_if  from $dmz_ad  to any  - $ext_if

binat on $ext_if from $dmz_www_ad to any - $ext_ad01
binat on $ext_if from $dmz_mail_ad to any - $ext_ad02

---cut--

I made some test :

1. NAT from ipublic01 to 192.168.0.2/32 succsess .
2. NAT from ipublic02 to 192.168.0.3/32 not succses event no respond ?

so i made change make ip alias( ipublic02) in interface fxp0  and
made tes againt  :

1. NAT from ipublic01 to 192.168.0.2/32 succsess .
2. NAT from ipublic02 to 192.168.0.3/32 succsess.

so i have some question :
- In PIX FW cisco i just make translate ipublic to  ip dmz , so how do
it in pf without ip alias in wan interface?

thank's ...


On Fri, May 9, 2008 at 5:27 PM, Mikel Lindsaar [EMAIL PROTECTED] wrote:
 On Fri, May 9, 2008 at 6:46 PM, sonjaya [EMAIL PROTECTED] wrote:
 i have old pix firewall ( End Of Lifetime ) and now i want replacement
 with openbsd .
 bellow my network layout :
 |---lan[192.168.1.0/24]
 internetpix-fw
 |-DMZ[192.168.0.0/24]

 Bassicly nat from interface ip public  to server (dmz zone)

 what should i use nat,binat or rdr .
 i have 5 ip public for 5 server with 1 obsd server. any exsample and
 good start point .

 The FAQ?

 http://www.openbsd.org/faq/pf/index.html

 Mikel




-- 
sonjaya
http://sicute.blogspot.com



Re: replacement pix firewall with pf

2008-05-11 Thread Almir Karic
On Mon, May 12, 2008 at 6:40 AM, sonjaya [EMAIL PROTECTED] wrote:
 so i have some question :
 - In PIX FW cisco i just make translate ipublic to  ip dmz , so how do
 it in pf without ip alias in wan interface?


AFAIK you can't. why would you want to do that?

-- 
For far too long, power has been concentrated in the hands of root
and his wheel oligarchy. We have instituted a dictatorship of the
users. All system administration functions will be handled by the
People's Committee for Democratically Organizing the System (PC-DOS).