Re: Problem Compiling xenocara

2008-05-12 Thread Matthieu Herrb
On Tue, May 13, 2008 at 4:14 AM, Brian <[EMAIL PROTECTED]> wrote:
> Once I moved xenocara's source to /usr/xenocara.  I have been unable to 
> compile.  It looks like a Makefile still points to /usr/src/xenocara.
>

The fix is obvious: remove your obj dir first and rerun make obj.



Re: geom network driver times out on sparc 4.2?

2008-05-12 Thread Sevan / Venture37
> I have no idea. OBP = "on board PROM"?

nearly
OpenBoot Prom
http://sunsolve.sun.com/search/advsearch.do?collection=PATCH&type=collections
&queryKey5=119235&toDocument=yes
_

Discover and Win with Live Search

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



Problem Compiling xenocara

2008-05-12 Thread Brian
Once I moved xenocara's source to /usr/xenocara.  I have been unable to 
compile.  It looks like a Makefile still points to /usr/src/xenocara.

Here's my error message:

# make build
make distrib-dirs
mtree -qdef /usr/xenocara/etc/mtree/BSD.x11.dist -p / -U
cd /usr/xenocara/share/mk  && exec  make X11BASE=/usr/X11R6 install
install -c -o root -g bin -m 444 automake.dep bsd.xconf.mk bsd.xorg.mk  
/usr/X11R6/share/mk
cd /usr/xenocara/util/macros  && make -f Makefile.bsd-wrapper  && exec  make -f 
Makefile.bsd-wrapper install
exec make 
make: don't know how to make /usr/src/xenocara/util/macros/Makefile.am. Stop in 
/usr/xenocara/util/macros/obj.
*** Error code 2

Stop in /usr/xenocara/util/macros (line 124 of /usr/X11R6/share/mk/bsd.xorg.mk).
*** Error code 1

Stop in /usr/xenocara (line 32 of Makefile).


Looks like the Makefile in /usr/xenocara/util/macros/obj still points to 
/usr/src/xenocara :

srcdir = /usr/src/xenocara/util/macros
top_srcdir = /usr/src/xenocara/util/macros
VPATH = /usr/src/xenocara/util/macros
ACLOCAL = ${SHELL} /usr/src/xenocara/util/macros/missing --run aclocal-1.9
AMTAR = ${SHELL} /usr/src/xenocara/util/macros/missing --run tar
AUTOCONF = ${SHELL} /usr/src/xenocara/util/macros/missing --run autoconf
AUTOHEADER = ${SHELL} /usr/src/xenocara/util/macros/missing --run autoheader
AUTOMAKE = ${SHELL} /usr/src/xenocara/util/macros/missing --run automake-1.9

Any suggestions for what I can do fix this problem?  Do I need to maintain the 
xenocara source both in /usr/src/xenocara and /usr/xenocara?

Thanks,

Brian









  

Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile.  Try it now.  
http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ



Re: SPARC32 == SPARC32on64?

2008-05-12 Thread Nick Holland
Jay wrote:
> I'm porting some oddball software, and trying to get "every" platform, if I
> have hardware, and getting more hardware (but not a lot).
> So, regarding SPARC, my quick understanding is that:
>  OpenBSD has separate "pure" SPARC and SPARC64.
>  On SPARC64, gcc accepts -m32 and -m64 (I think),
>   defaults to -m64, usermode is "all" 64bit.
>  Linux has just SPARC, runs on either hardware, usermode is   mostly 32bit,
> gcc accepts -m32 and -m64, defaults to -m32.
>  So now, I'm going to have roughly the following ports:SPARC32_LINUX
> (already working)SPARC64_LINUX SPARC32_OPENBSD SPARC64_OPENBSD
> (and more NetBSD, OpenBSD, etc.)
> In the Linux case, this is two sets of binaries that run on one OS.Folks might
> chose 32 perhaps for size or speed or interop withcode that hasn't been ported
> to 64, whatever.
> So my question then is...well, you see, I only have SPARC64 hardwareand am
> unlikely to install SPARC32, though maybe.More so, I'm unlikely to acquire
> SPARC32 hardware, unless SPARC64can run SPARC32?
> So my question is, do OpenBSD/sparc binaries run on OpenBSD/sparc64?
...

On OpenBSD, OpenBSD/sparc and OpenBSD/sparc64 are treated as two
totally different platforms, with no processor or binary compatibility.

As for cross compiling..it is completely up to you to test the ability
of the (imperfect) compiler tools to do what you want.

Nick.



fun with ktrace, gdb, usb devices, and umsm(4)

2008-05-12 Thread Aaron Glenn
I'm trying to get my Sierra Wireless MC5720 modem to work and I'm not
having much luck. After editing usbdevs and regenerating (my card has
a product ID of 0x0218 instead of the 0x0018 listed, and too lazy to
ukc it on the fly) I've got it to successfully attach to umsm(4). Now
I'm stuck; mostly because I know next to nil about how this all works.
In a vain attempt to school myself, I've tried to ktrace and gdb my
way into figuring out why I can't get this card to work. Doing a "cu
-l /dev/cuaU0 -s" ends in a hard lock. Hard lock as in
neither the escape signal, ^C, pkill cu, or kill -9 cu works (one
process is in IE+, the other is Z in ps). Even shutting down causes
the box to simply stop at "syncing disks..." and not a damn thing
works (keyboard input, etc). Oddly, though, I can drop in and out just
fine from ppp. The escape character works, but other than that
nothing. ktrace simply outputs 'EMUL "native"', and trying to run cu
from gdb has gdb hang at "Starting program: /usr/bin/cu -l /dev/cuaU0
-s ". I have to kill cu from another terminal and then gdb
will exit cleanly.

---actual question---

How do you guys do it? The device driver writers? How do I debug this?
I've read usb(4), the 4.3-RELEASE and -CURRENT umsm.c code, I
understand a bit about how things attach but I'm at a complete loss as
to how I get more information and start tweaking knobs. I'm sure I'm
using the wrong search terms because I couldn't find anything
interesting on *what* exactly I should be doing to debug device
drivers.

As always, a light tap of the cluebat is greatly appreciated.

Thanks,
aaron.glenn

# dmesg
OpenBSD 4.3 (GENERIC) #0: Mon May 12 10:39:57 PDT 2008
[EMAIL PROTECTED]:/usr/src/sys/arch/i386/compile/GENERIC
cpu0: Genuine Intel(R) CPU T2500 @ 2.00GHz ("GenuineIntel" 686-class) 2 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,TM,SBF,SSE3,MWAIT,VMX,EST,TM2,xTPR
real mem  = 1072132096 (1022MB)
avail mem = 1028657152 (981MB)
mainbus0 at root
bios0 at mainbus0: AT/286+ BIOS, date 05/24/06, BIOS32 rev. 0 @
0xfd6b0, SMBIOS rev. 2.4 @ 0xe0010 (68 entries)
bios0: vendor LENOVO version "79ET61WW (1.06 )" date 05/24/2006
bios0: LENOVO 2623DDU
acpi0 at bios0: rev 2
acpi0: tables DSDT FACP SSDT ECDT TCPA APIC MCFG HPET BOOT SSDT SSDT
SSDT SSDT SSDT
acpi0: wakeup devices LID_(S3) SLPB(S3) LURT(S3) DURT(S3) EXP0(S4)
EXP1(S4) EXP2(S4) EXP3(S4) PCI1(S4) USB0(S3) USB1(S3) USB2(S3)
USB7(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 12 (EXP3)
acpiprt6 at acpi0: bus 21 (PCI1)
acpiec0 at acpi0
acpicpu0 at acpi0: C3, C2, C1, FVS, 2000, 1667, 1333, 1000 MHz
acpitz0 at acpi0: critical temperature 127 degC
acpitz1 at acpi0: critical temperature 99 degC
acpibtn0 at acpi0: LID_
acpibtn1 at acpi0: SLPB
acpibat0 at acpi0: BAT0 model "92P1133" serial  1897 type LION oem "Panasonic"
acpibat1 at acpi0: BAT1 not present
acpiac0 at acpi0: AC unit offline
acpidock at acpi0 not configured
bios0: ROM list: 0xc/0x1 0xd/0x1000 0xd1000/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 82945GM Host" rev 0x03
agp0 at pchb0: no integrated graphics
ppb0 at pci0 dev 1 function 0 "Intel 82945GM PCIE" rev 0x03: irq 11
pci1 at ppb0 bus 1
vga1 at pci1 dev 0 function 0 vendor "ATI", unknown product 0x71c4 rev 0x00
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
azalia0 at pci0 dev 27 function 0 "Intel 82801GB HD Audio" rev 0x02: irq 11
azalia0: codec[s]: Analog Devices/0x1981, Conexant/0x2bfa, using
Analog Devices/0x1981
audio0 at azalia0
ppb1 at pci0 dev 28 function 0 "Intel 82801GB PCIE" rev 0x02: irq 11
pci2 at ppb1 bus 2
em0 at pci2 dev 0 function 0 "Intel PRO/1000MT (82573L)" rev 0x00: irq
11, address 00:16:41:56:8f:37
ppb2 at pci0 dev 28 function 1 "Intel 82801GB PCIE" rev 0x02: irq 11
pci3 at ppb2 bus 3
ath0 at pci3 dev 0 function 0 "Atheros AR5212 (IBM MiniPCI)" rev 0x01: irq 11
ath0: AR 10.3 phy 6.1 rf 10.2, WOR2W, address 00:14:a4:60:fd:ba
ppb3 at pci0 dev 28 function 2 "Intel 82801GB PCIE" rev 0x02: irq 11
pci4 at ppb3 bus 4
ppb4 at pci0 dev 28 function 3 "Intel 82801GB PCIE" rev 0x02: irq 11
pci5 at ppb4 bus 12
uhci0 at pci0 dev 29 function 0 "Intel 82801GB USB" rev 0x02: irq 11
uhci1 at pci0 dev 29 function 1 "Intel 82801GB USB" rev 0x02: irq 11
uhci2 at pci0 dev 29 function 2 "Intel 82801GB USB" rev 0x02: irq 11
uhci3 at pci0 dev 29 function 3 "Intel 82801GB USB" rev 0x02: irq 11
ehci0 at pci0 dev 29 function 7 "Intel 82801GB USB" rev 0x02: irq 11
usb0 at ehci0: USB revision 2.0
uhub0 at usb0 "Intel EHCI root hub" rev 2.00/1.00 addr 1
ppb5 at pci0 dev 30 function 0 "Intel 82801BAM Hub-t

Re: Old EmBSD docs

2008-05-12 Thread Nick Holland
Michael Dexter wrote:
>>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.
> 
> Nonsense. Many "new" embedded boards have limited flash memory soldered on.

Which Jetway product (see OP) would that be?

Yes, there are people with very specialized HW that might benefit from a
system based on OpenBSD code but drastically altered.  Those people
generally know who they are and what they are in for.  They generally
don't show up on OpenBSD mail lists asking for help (though they often
show up offering diffs).  The existence of these people with these
projects does not mean it is an appropriate solution for people with
relatively ordinary PCs capable of doing things in a very simple,
effective and supported way simply by using commonly available low-cost
parts.

I think most of the developers are tired of seeing people shoot
themselves in the foot then show up on the list complaining about blood
loss.  Pointing out that some people might have a justification for
inflicting pain upon themselves only encourages harmful behavior.


Nick.



$30milion business proposal if you are interested reply me or call+22678217398

2008-05-12 Thread Aishatuu Aruba
You are invited to "$30milion business proposal if you are interested reply me 
or call+22678217398".


By your host Aishatuu Aruba:


 Date:  Monday May 12, 2008

 Time:  11:00 pm - 12:00 am (GMT +00:00)

Will you attend? RSVP to this invitation at:

 
http://calendar.yahoo.com/aaishatuu48?v=126&a1=0&iid=ThAjbstdc2uz%40B6kKhBUta%40%40heuDAsSH&igid=Gxao8sh%40o4dlaHa3HhhGEr3aeeeDAF3G5%40%40Exx%40%40

Copyright ) 2008 All Rights Reserved
 www.yahoo.com

Privacy Policy:
 http://privacy.yahoo.com/privacy/us

Terms of Service:
 http://docs.yahoo.com/info/terms/



Re: SPARC32 == SPARC32on64?

2008-05-12 Thread Jay
Sorry, http://archive.openbsd.nu/?ml=openbsd-misc&a=2008-05&m=7350623
shows all the newlines removed...

I'll see if I can edit below to fix

  - Jay




From: [EMAIL PROTECTED]: [EMAIL PROTECTED]: SPARC32 ==
SPARC32on64?Date: Mon, 12 May 2008 22:49:20 +


  I'm porting some oddball software, and trying to  get "every" platform,
if I have hardware,  and getting more hardware (but not a lot).
 So, regarding SPARC, my quick understanding is that:   OpenBSD
has separate "pure" SPARC and SPARC64.On SPARC64, gcc accepts -m32 and
-m64 (I think),defaults to -m64, usermode is "all" 64bit.   Linux
has just SPARC, runs on either hardware, usermode is mostly 32bit, gcc
accepts -m32 and -m64, defaults to -m32.   So now, I'm going to have
roughly the following ports:  SPARC32_LINUX (already working)
SPARC64_LINUX   SPARC32_OPENBSD   SPARC64_OPENBSD
(and more NetBSD, OpenBSD, etc.)   In the Linux case, this is two sets of
binaries that run on one OS.  Folks might chose 32 perhaps for size or
speed or interop with  code that hasn't been ported to 64, whatever.
So my question then is...well, you see, I only have SPARC64 hardware  and
am unlikely to install SPARC32, though maybe.  More so, I'm unlikely to
acquire SPARC32 hardware, unless SPARC64  can run SPARC32? So my
question is, do OpenBSD/sparc binaries run on OpenBSD/sparc64?  Do
binaries built on OpenBSD/sparc64 with -m32 run on OpenBSD/sparc?  And are
they the same?  That is, if I wanted a complete matrix, is:
SPARC32_OPENBSD  SPARC64_OPENBSD   complete, or is there really
SPARC32on32_OPENBSD  SPARC32on64_OPENBSD  SPARC64_OPENBSD
or even more? (64 on 32?)http://www.openbsd.org/sparc.html
http://www.openbsd.org/sparc64.htmlappear to list different machines,
so that answers part of my question.sparc won't run on my sparc64
machine.If SPARC32 == SPARC32on64, I'll just do those two.If
SPARC32 != SPARC32on64, I'll probably just do SPARC64.   Thanks,   -
Jay



SPARC32 == SPARC32on64?

2008-05-12 Thread Jay
I'm porting some oddball software, and trying to get "every" platform, if I
have hardware, and getting more hardware (but not a lot).
So, regarding SPARC, my quick understanding is that:
 OpenBSD has separate "pure" SPARC and SPARC64.
 On SPARC64, gcc accepts -m32 and -m64 (I think),
  defaults to -m64, usermode is "all" 64bit.
 Linux has just SPARC, runs on either hardware, usermode is   mostly 32bit,
gcc accepts -m32 and -m64, defaults to -m32.
 So now, I'm going to have roughly the following ports:SPARC32_LINUX
(already working)SPARC64_LINUX SPARC32_OPENBSD SPARC64_OPENBSD
(and more NetBSD, OpenBSD, etc.)
In the Linux case, this is two sets of binaries that run on one OS.Folks might
chose 32 perhaps for size or speed or interop withcode that hasn't been ported
to 64, whatever.
So my question then is...well, you see, I only have SPARC64 hardwareand am
unlikely to install SPARC32, though maybe.More so, I'm unlikely to acquire
SPARC32 hardware, unless SPARC64can run SPARC32?
So my question is, do OpenBSD/sparc binaries run on OpenBSD/sparc64?Do
binaries built on OpenBSD/sparc64 with -m32 run on OpenBSD/sparc?And are they
the same?
That is, if I wanted a complete matrix, is:   SPARC32_OPENBSD
SPARC64_OPENBSD
complete, or is there reallySPARC32on32_OPENBSDSPARC32on64_OPENBSD
SPARC64_OPENBSD
or even more? (64 on 32?)
  http://www.openbsd.org/sparc.html   http://www.openbsd.org/sparc64.html
 appear to list different machines, so that answers part of my question.
sparc won't run on my sparc64 machine.
 If SPARC32 == SPARC32on64, I'll just do those two.  If SPARC32 !=
SPARC32on64, I'll probably just do SPARC64.
Thanks, - Jay



Re: Originating large numbers of routes with bgpd

2008-05-12 Thread Stuart Henderson
On 2008-05-12, Peter Bristow <[EMAIL PROTECTED]> wrote:
> Thanks for the replies so far. bgpd can handle full tables. This means that
> as of today ~251K prefixes demonstrably work but most of these are from
> peers (iBGP or eBGP) I'm interested in known limitations/expected gotchas on
> locally originating 50k prefixes.50K lines of
>
> network 92.48.111.0/26 set { nexthop 92.48.95.196 community 64667:0 }

I think you should setup a test machine, generate a config and try
parsing it (and also reloading it), looking at how much memory it uses.
15k lines of filter rules (allow...set) was pretty tedious and chewed
through RAM a bit, I don't know if this translates directly to
"network...set" but if it does, you may bump into maximum process
size limits on most arch (1GB on i386).

If it does work out ok though, 29550 would be a nice addition to
http://www.openbgpd.org/users.html ;-)



Re: geom network driver times out on sparc 4.2?

2008-05-12 Thread Jay
I have no idea. OBP = "on board PROM"?

I'll research this, but not right away.

Anecdotally, Linux is running well, been up for a few days, with the same sort
of scenarios I was attempting in OpenBSD, just  a bunch of
ssh/scp/cvs/gcc/ld.

Is it possible OpenBSD is sensitive to having the latest OBP and Linux is
not?
   Yes.

Is it possible for OpenBSD to lose this sensitivity and work as well as Linux,
in this regard?
  (Far be it for me to suggest that OpenBSD does not work better than Linux in
general. I do appreciate the OpenBSD attitude, like the web page with reasons
to build your own kernel, every single reason starts with the same
discouragement. :) )
In this case, Linux == Ubuntu 7.10.

Thanks,
 - Jay



> From: [EMAIL PROTECTED]> To: [EMAIL PROTECTED]; misc@openbsd.org>
Subject: RE: geom network driver times out on sparc 4.2?> Date: Sun, 11 May
2008 17:54:25 +0100> > > 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: Originating large numbers of routes with bgpd

2008-05-12 Thread Peter Bristow
> Well, bgpd has no problem handing out a full route table to many clients.
>
Again I know it can handle lots of sessions, and lots of routes over those
sessions it's getting them into bgp.

>
> If these are co-lo servers, wouldn't you just want to have one 'network
> inet static set { blah }' line and then add the 50K routes as static routes
> in the kernel?
>
They aren't co-lo servers but for the purposes of this discussion assume
they are.
No the traffic won't actually flow over the OpenBSD boxes as they won't
handle the traffic load. They are there to inject routes into bgp and to
give the routers next hop information. OpenBSD also won't let you add routes
where the nexthop is not locally reachable.

Pete



Re: Originating large numbers of routes with bgpd

2008-05-12 Thread Chris Cappuccio
Well, bgpd has no problem handing out a full route table to many clients.

If these are co-lo servers, wouldn't you just want to have one 'network inet 
static set { blah }' line and then add the 50K routes as static routes in the 
kernel?

Peter Bristow [EMAIL PROTECTED] wrote:
> Thanks for the replies so far. bgpd can handle full tables. This means that
> as of today ~251K prefixes demonstrably work but most of these are from
> peers (iBGP or eBGP) I'm interested in known limitations/expected gotchas on
> locally originating 50k prefixes.50K lines of
> 
> network 92.48.111.0/26 set { nexthop 92.48.95.196 community 64667:0 }
> 
> in a bgpd.conf
> 
> Thanks
> 
> Pete

-- 
Too many clocks, not enough time (Al. Einstein)



Re: Originating large numbers of routes with bgpd

2008-05-12 Thread Peter Bristow
Thanks for the replies so far. bgpd can handle full tables. This means that
as of today ~251K prefixes demonstrably work but most of these are from
peers (iBGP or eBGP) I'm interested in known limitations/expected gotchas on
locally originating 50k prefixes.50K lines of

network 92.48.111.0/26 set { nexthop 92.48.95.196 community 64667:0 }

in a bgpd.conf

Thanks

Pete



Re: Originating large numbers of routes with bgpd

2008-05-12 Thread Chris Cappuccio
Plenty of people, including myself, are using bgpd to manage full route tables 
(> 230K routes, or even more these days) from multiple providers and/or to 
multiple customers and have been for years.  Some people are using it at 
exchange points with dozens or hundreds of peers.  At close to 5 years age, 
it's considered a very stable piece of software, and has been for some time.

Peter Bristow [EMAIL PROTECTED] wrote:
> Hi,
> Are there any known limitations or expected gotchas with originating a large
> number of routes with OpenBGPD?
> I'm thinking in the order of tens of thousands of routes. I've done a basic
> 'stress' test with 100,000 routes and nothing
> immediately broke. The idea is to route blocks of IP space to servers in a
> server farm.
> 
> Thanks for your thoughts.
> 
> Pete Bristow

-- 
Too many clocks, not enough time (Al. Einstein)



Re: Originating large numbers of routes with bgpd

2008-05-12 Thread Daniel Ouellet

Peter Bristow wrote:

Hi,
Are there any known limitations or expected gotchas with originating a large
number of routes with OpenBGPD?
I'm thinking in the order of tens of thousands of routes. I've done a basic
'stress' test with 100,000 routes and nothing
immediately broke. The idea is to route blocks of IP space to servers in a
server farm.


Not really any problem. Just make sure you run the latest 4.3 release as 
many improvements was done, but 100K routes is not of any problem.


Many are running it with multiple full feeds and these days one single 
full feed is 250K routes alone.


So, no problem doing what you want with a small 100K routes. (;>

Best,

Daniel



Re: 4.1 to 4.2 disklabel woes

2008-05-12 Thread Otto Moerbeek
On Mon, May 12, 2008 at 01:29:32PM -0700, Darrian Hale wrote:

> Thanks for your help,
> 
> See additional comments below.
> 
> -Darrian

> >
> > Just edit your disklabel, using the 'm' command.
> 
> Thanks, this worked.  After booting from 4.2 ramdisk kernel, i ran
> disklabel -E wd0
> I then modified the a partition and the default offset was a very large 
> number,
> i changed this to 63 and kept the size the same. For the remainder of the
> partitions i just added the previous size and offset for the new offset.
> 
> My real upgrade however needs to be remote, so I cannot boot the ramdisk 
> kernel
> and perform these steps.  For completeness, I did the following to make a 
> remote
> upgrade work.
> 
> 1. login to 4.1 system
> 2. copy 4.2 kernels and disklabel from 4.2 to system.
> 3. run 4.2 disklabel while still running 4.1 kernel and fix disklabel
> as described above.
> 4. reboot, it works and i can still remotely login to system which is
> now running a 4.2
> kernel with 4.1 userland.
> ** unexpectedly at this point, I can now boot either the 4.1 kernel or
> 4.2 kernel with the
> same 4.1 userland.  It seems that after modifying the disk label with
> the 4.2 version of
> disklabel, that the 4.1 version still reads it properly. **
> 5. finish upgrade as described in openbsd upgrade FAQ.


I repeat, if your 4.1 disklabel is OK an never touched by a 4.2
kernel, a regular upgrade should work.  You upgrade procedure above is
non-standard, and I have no idea if it will work in all cases. 

-Otto



Re: 4.1 to 4.2 disklabel woes

2008-05-12 Thread Darrian Hale
Thanks for your help,

See additional comments below.

-Darrian

On Mon, May 12, 2008 at 12:21 PM, Otto Moerbeek <[EMAIL PROTECTED]> wrote:
>
> On Mon, May 12, 2008 at 11:47:48AM -0700, Darrian Hale wrote:
>
> > Hello,
> >
> > First of all I want to thank anyone in advance for any help i receive.  I am
> > having problems upgrading from OpenBSD 4.1 to 4.2.
> >
> > After putting the GENERIC 4.2 kernel in place, i get the following errors
> > for all partitions during boot,
> > followed by a panic:
> >
> > wd0a: id not found reading fsbn 128 of 128-143 (wd0 bn 8796093022399; cn
> > 547531467 tn 80 sn 4), retrying
> > wd0: transfer error, downgrading to Ultra-DMA mode 4
> > wd0(pciide1:1:0): using PIO mode 4, Ultra-DMA mode 4
> > wd0a: id not found reading fsbn 128 of 128-143 (wd0 bn 8796093022399; cn
> > 547531467 tn 80 sn 4), retrying
> > wd0: transfer error, downgrading to Ultra-DMA mode 3
> > wd0(pciide1:1:0): using PIO mode 4, Ultra-DMA mode 3
> > wd0a: id not found reading fsbn 128 of 128-143 (wd0 bn 8796093022399; cn
> > 547531467 tn 80 sn 4), retrying
> > wd0: transfer error, downgrading to Ultra-DMA mode 2
> > wd0(pciide1:1:0): using PIO mode 4, Ultra-DMA mode 2
> > wd0a: id not found reading fsbn 128 of 128-143 (wd0 bn 8796093022399; cn
> > 547531467 tn 80 sn 4), retrying
> > wd0a: id not found reading fsbn 128 of 128-143 (wd0 bn 8796093022399; cn
> > 547531467 tn 80 sn 4), retrying
> > wd0a: id not found reading fsbn 128 of 128-143 (wd0 bn 8796093022399; cn
> > 547531467 tn 80 sn 4)
> >
> > I've searched the archives and found this similar problem:
> > http://archives.neohapsis.com/archives/openbsd/2008-01/0165.html
> >
> > The response was version mismatch and user error due to
> > upgrading/downgrading etc.
> >
> > I however have followed some very simple steps with no downgrading or other
> > tweaking of any kind and have the same results.  In addition I've tried to
> > boot from the 4.2 ramdisk
> > kernel and manually mount the partitions that were previously defined in 4.1
> > and I get the same error.
> >
> > Its very simple to replicate my issue.
> >
> > 1. Install obsd 4.1
> > 2. boot from the GENERIC 4.2 kernel.
> > 3. system wont boot due to disks not mounting.
>
> An upgrade should work just fine, unless you have alreayd written your
> partition table with a 4.2 kernel.

The partition table was not already written with a 4.2 kernel.  Just
to be very sure,
i did the following:

1. Formatted the disk using windows.
2. Booted from 4.1 install CD re-partitioned and installed 4.1.
3. After reboot, copied 4.2 kernels to /bsd and /bsd.rd
4. Reboot again, same error occurs.

>
> > I can do a clean install of 4.2 by wiping the partition table and starting
> > over and the install works fine.
> >
> > Is there a way to convert the old 4.1 label without losing data?  Any help
> > would be greatly appreciated.
>
> Just edit your disklabel, using the 'm' command.

Thanks, this worked.  After booting from 4.2 ramdisk kernel, i ran
disklabel -E wd0
I then modified the a partition and the default offset was a very large number,
i changed this to 63 and kept the size the same. For the remainder of the
partitions i just added the previous size and offset for the new offset.

My real upgrade however needs to be remote, so I cannot boot the ramdisk kernel
and perform these steps.  For completeness, I did the following to make a remote
upgrade work.

1. login to 4.1 system
2. copy 4.2 kernels and disklabel from 4.2 to system.
3. run 4.2 disklabel while still running 4.1 kernel and fix disklabel
as described above.
4. reboot, it works and i can still remotely login to system which is
now running a 4.2
kernel with 4.1 userland.
** unexpectedly at this point, I can now boot either the 4.1 kernel or
4.2 kernel with the
same 4.1 userland.  It seems that after modifying the disk label with
the 4.2 version of
disklabel, that the 4.1 version still reads it properly. **
5. finish upgrade as described in openbsd upgrade FAQ.

>
>-Otto
>
> >
> > I also want to note that this only seems to happen when using a SATA disk as
> > the other poster mentioned.
> > I can upgrade a system with a PATA disk just fine.
> >
> > dmesg from the ramdisk kernel is below.  The last part of the dmesg with the
> > 'id not found reading fsbn'
> > error was after I ran 'mount /dev/wd0a /mnt2'.
> >
> > Thank you,
> > Darrian
> >
> > 
> >
> > OpenBSD 4.2 (RAMDISK_CD) #468: Tue Aug 28 11:02:17 MDT 2007
> > [EMAIL PROTECTED]:/usr/src/sys/arch/i386/compile/RAMDISK_CD
> > cpu0: Intel(R) Core(TM)2 CPU 6700 @ 2.66GHz ("GenuineIntel" 686-class) 2.67
> > 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,VMX,EST,TM2,CX16,xTPR
> > real mem  = 2144825344 (2045MB)
> > avail mem = 2067951616 (1972MB)
> > mainbus0 at root
> > bios0 at mainbus0: AT/286+ BIOS, date 03/07/07, BIOS32 rev. 0 @ 0xf93f0,
> > SMBIOS rev. 2.3 @ 0xf0

Re: pf problem -current

2008-05-12 Thread Rafal Brodewicz
On Sun, May 11, 2008 at 10:11:14PM +0200, Rafal Brodewicz wrote:
> Hi.
> I have problem with pf on -current. It's enabled, but it doesn't work.
> It's behaving like there was an empty pf.conf.

make includes in /usr/src/incluse solved the problem.

Thanks anyway.



Originating large numbers of routes with bgpd

2008-05-12 Thread Peter Bristow
Hi,
Are there any known limitations or expected gotchas with originating a large
number of routes with OpenBGPD?
I'm thinking in the order of tens of thousands of routes. I've done a basic
'stress' test with 100,000 routes and nothing
immediately broke. The idea is to route blocks of IP space to servers in a
server farm.

Thanks for your thoughts.

Pete Bristow



Re: 4.1 to 4.2 disklabel woes

2008-05-12 Thread Otto Moerbeek
On Mon, May 12, 2008 at 11:47:48AM -0700, Darrian Hale wrote:

> Hello,
> 
> First of all I want to thank anyone in advance for any help i receive.  I am
> having problems upgrading from OpenBSD 4.1 to 4.2.
> 
> After putting the GENERIC 4.2 kernel in place, i get the following errors
> for all partitions during boot,
> followed by a panic:
> 
> wd0a: id not found reading fsbn 128 of 128-143 (wd0 bn 8796093022399; cn
> 547531467 tn 80 sn 4), retrying
> wd0: transfer error, downgrading to Ultra-DMA mode 4
> wd0(pciide1:1:0): using PIO mode 4, Ultra-DMA mode 4
> wd0a: id not found reading fsbn 128 of 128-143 (wd0 bn 8796093022399; cn
> 547531467 tn 80 sn 4), retrying
> wd0: transfer error, downgrading to Ultra-DMA mode 3
> wd0(pciide1:1:0): using PIO mode 4, Ultra-DMA mode 3
> wd0a: id not found reading fsbn 128 of 128-143 (wd0 bn 8796093022399; cn
> 547531467 tn 80 sn 4), retrying
> wd0: transfer error, downgrading to Ultra-DMA mode 2
> wd0(pciide1:1:0): using PIO mode 4, Ultra-DMA mode 2
> wd0a: id not found reading fsbn 128 of 128-143 (wd0 bn 8796093022399; cn
> 547531467 tn 80 sn 4), retrying
> wd0a: id not found reading fsbn 128 of 128-143 (wd0 bn 8796093022399; cn
> 547531467 tn 80 sn 4), retrying
> wd0a: id not found reading fsbn 128 of 128-143 (wd0 bn 8796093022399; cn
> 547531467 tn 80 sn 4)
> 
> I've searched the archives and found this similar problem:
> http://archives.neohapsis.com/archives/openbsd/2008-01/0165.html
> 
> The response was version mismatch and user error due to
> upgrading/downgrading etc.
> 
> I however have followed some very simple steps with no downgrading or other
> tweaking of any kind and have the same results.  In addition I've tried to
> boot from the 4.2 ramdisk
> kernel and manually mount the partitions that were previously defined in 4.1
> and I get the same error.
> 
> Its very simple to replicate my issue.
> 
> 1. Install obsd 4.1
> 2. boot from the GENERIC 4.2 kernel.
> 3. system wont boot due to disks not mounting.

An upgrade should work just fine, unless you have alreayd written your
partition table with a 4.2 kernel.


> I can do a clean install of 4.2 by wiping the partition table and starting
> over and the install works fine.
> 
> Is there a way to convert the old 4.1 label without losing data?  Any help
> would be greatly appreciated.

Just edit your disklabel, using the 'm' command.

-Otto

> 
> I also want to note that this only seems to happen when using a SATA disk as
> the other poster mentioned.
> I can upgrade a system with a PATA disk just fine.
> 
> dmesg from the ramdisk kernel is below.  The last part of the dmesg with the
> 'id not found reading fsbn'
> error was after I ran 'mount /dev/wd0a /mnt2'.
> 
> Thank you,
> Darrian
> 
> 
> 
> OpenBSD 4.2 (RAMDISK_CD) #468: Tue Aug 28 11:02:17 MDT 2007
> [EMAIL PROTECTED]:/usr/src/sys/arch/i386/compile/RAMDISK_CD
> cpu0: Intel(R) Core(TM)2 CPU 6700 @ 2.66GHz ("GenuineIntel" 686-class) 2.67
> 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,VMX,EST,TM2,CX16,xTPR
> real mem  = 2144825344 (2045MB)
> avail mem = 2067951616 (1972MB)
> mainbus0 at root
> bios0 at mainbus0: AT/286+ BIOS, date 03/07/07, BIOS32 rev. 0 @ 0xf93f0,
> SMBIOS rev. 2.3 @ 0xf (39 entries)
> bios0: vendor Phoenix Technologies, LTD version "6.00 PG" date 03/07/2007
> bios0: Intel i965-ITE8712
> apm0 at bios0: Power Management spec V1.2
> apm0: flags 70102 dobusy 1 doidle 1
> pcibios0 at bios0: rev 3.0 @ 0xf/0xb934
> pcibios0: PCI IRQ Routing Table rev 1.0 @ 0xfb7d0/304 (17 entries)
> pcibios0: bad IRQ table checksum
> pcibios0: PCI BIOS has 20 Interrupt Routing table entries
> pcibios0: PCI Exclusive IRQs: 5 10 11 14 15
> pcibios0: no compatible PCI ICU found
> pcibios0: Warning, unable to fix up PCI interrupt routing
> pcibios0: PCI bus #10 is the last bus
> bios0: ROM list: 0xc/0xb000! 0xef000/0x1000!
> cpu0 at mainbus0
> pci0 at mainbus0 bus 0: configuration mode 1 (no bios)
> pchb0 at pci0 dev 0 function 0 "Intel 82Q963 Host" rev 0x02
> ppb0 at pci0 dev 1 function 0 "Intel 82Q963 PCIE" rev 0x02
> pci1 at ppb0 bus 1
> ppb1 at pci1 dev 0 function 0 "Intel PCIE-PCIE" rev 0x09
> pci2 at ppb1 bus 2
> ppb2 at pci1 dev 0 function 2 "Intel PCIE-PCIE" rev 0x09
> pci3 at ppb2 bus 3
> vga1 at pci0 dev 2 function 0 "Intel 82Q963 Graphics" rev 0x02
> wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
> ppb3 at pci0 dev 28 function 0 "Intel 82801H PCIE" rev 0x02
> pci4 at ppb3 bus 4
> em0 at pci4 dev 0 function 0 "Intel PRO/1000MT (82573L)" rev 0x00: irq 14,
> address 00:10:f3:0f:12:28
> ppb4 at pci0 dev 28 function 1 "Intel 82801H PCIE" rev 0x02
> pci5 at ppb4 bus 5
> em1 at pci5 dev 0 function 0 "Intel PRO/1000MT (82573L)" rev 0x00: irq 10,
> address 00:10:f3:0f:12:29
> ppb5 at pci0 dev 28 function 2 "Intel 82801H PCIE" rev 0x02
> pci6 at ppb5 bus 6
> em2 at pci6 dev 0 function 0 "Intel PRO/1000

Re: fsck large filesystem, memory limit problem

2008-05-12 Thread Will
Thanks for taking a look.

I will play with larger fragment/block sizes unless anyone suggests otherwise.

-William

On Mon, May 12, 2008 at 11:49 AM, Otto Moerbeek <[EMAIL PROTECTED]> wrote:
> On Fri, May 09, 2008 at 11:16:28AM -0400, Will wrote:
>
>  > Here are the requested outputs.
>
>  OK, your filesystem indeed uses default block and fragment sizes. The
>  # of inodes is about 238M.
>
>  De fsck_ffs code allocates a number of arrays directly depending on
>  the # of indodes in setup(), totalling 4 bytes per inode. Some other
>  data is also needed, so it's not surprise you hit the 1G data space limit.
>
>  I can only conclude that the 2TB number I gave to Nick for the FAQ is
>  wrong, and should be 1TB. There might be some leeway there, but I
>  don't have the time to test now. I'll fix the FAQ.
>
> -Otto
>
>
>
>  >
>  > output of `df -i`:
>  >
>  > Filesystem  512-blocks  Used Avail Capacity iused   ifree  %iused
>  > Mounted on
>  > /dev/sd0a   31448010115219760434%2189   23409 9%
>  > /
>  > /dev/sd0h  826419692   7850896 0%  20  545642 0%
>  > /home
>  > /dev/sd0d   25156420238968 0%   8   20470 0%
>  > /tmp
>  > /dev/sd0g 12391564   3360420   841156829%  193508  61199424%
>  > /usr
>  > /dev/sd0e   172836 1960414459212% 941   13137 7%
>  > /var
>  > /dev/sd0i   3758267452 1935577136 163477694454%   25270 242482248
>  > 0%   /mnt/share
>  >
>  > output of `disklabel /dev/sd0`:
>  >
>  > # /dev/rsd0c:
>  > type: SCSI
>  > disk: SCSI disk
>  > label: Host drive
>  > flags:
>  > bytes/sector: 512
>  > sectors/track: 63
>  > tracks/cylinder: 255
>  > sectors/cylinder: 16065
>  > cylinders: 243152
>  > total sectors: 3906248704
>  > rpm: 3600
>  > interleave: 1
>  > trackskew: 0
>  > cylinderskew: 0
>  > headswitch: 0   # microseconds
>  > track-to-track seek: 0  # microseconds
>  > drivedata: 0
>  >
>  > 16 partitions:
>  > #size   offset  fstype [fsize bsize  cpg]
>  >  a:   321237   63  4.2BSD   2048 163841
>  >  b:  4209030   321300swap
>  >  c:   39062487040  unused  0 0
>  >  d:   257040  4530330  4.2BSD   2048 163841
>  >  e:   176715  4787370  4.2BSD   2048 163841
>  >  g: 12594960  4964085  4.2BSD   2048 163841
>  >  h:  8401995 17559045  4.2BSD   2048 163841
>  >  i:   3880275840 25961040  4.2BSD   2048 16384 38144
>  >
>  > Thanks,
>  > William
>  >
>  > On Fri, May 9, 2008 at 2:44 AM, Otto Moerbeek <[EMAIL PROTECTED]> wrote:
>  > > On Thu, May 08, 2008 at 05:18:26PM -0400, Will wrote:
>  > >
>  > >> I did see that, but did not realize that the 1GB limit is not a
>  > >> user-configurable feature.
>  > >>
>  > >> Even so, the FAQ implies that a 2TB filesystem is possible with
>  > >> default options, which is what I have.
>  > >
>  > > It might be the 2TB limit is a little too high, and the actual limit
>  > > is lower. Can you show us your disklabel entry for /dev/sd0i and the
>  > > output of df -i?
>  > >
>  > >-Otto
>  > >
>  > >>
>  > >> relevant output of df:
>  > >>
>  > >> Filesystem  512-blocks  Used Avail Capacity  Mounted on
>  > >> /dev/sd0i   3758267452 1935576944 163477713654%/mnt/share
>  > >>
>  > >> -William
>  > >>
>  > >> On Thu, May 8, 2008 at 5:04 PM, David J. Stillman
>  > >> <[EMAIL PROTECTED]> wrote:
>  > >> > Isn't this the 1GB application limit mentioned in FAQ 14.7 - " By the 
> time
>  > >> > one gets to a 2TB file system with default fragment and block sizes, 
> fsck
>  > >> > will require 1GB RAM to run, which is the application limit under 
> OpenBSD.
>  > >> > Larger fragments and/or blocks will reduce the number of inodes, and 
> allow
>  > >> > for larger file systems."?
>  > >> >
>  > >> > Will wrote:
>  > >> >>
>  > >> >> Hello all,
>  > >> >>
>  > >> >> I just upgraded to 4.3, and I would like to congratulate the devs on
>  > >> >> another wonderful release! shutdown -p works and the wbng sensor
>  > >> >> support was a nice surprise. However, the most useful feature to me
>  > >> >> was the support for ffs2.
>  > >> >>
>  > >> >> I upgraded without a hitch, and repartitioned from a 1tb filesystem 
> to
>  > >> >> a 2tb share mount point. However, when I try to fsck the system just
>  > >> >> to make sure everything is ok, I receive this error:
>  > >> >>
>  > >> >> # fsck -f /dev/sd0i
>  > >> >> ** /dev/rsd0i
>  > >> >> ** File system is already clean
>  > >> >> cannot alloc 485015042 bytes for lncntp
>  > >> >>
>  > >> >> I just upgraded to 3gb ram, so that should be a non-issue according 
> to the
>  > >> >> faq.
>  > >> >>
>  > >> >> I have tried `ulimit -d unlimited` (as suggested previously in the
>  > >> >> archives), but the data limit will not go above 1048576, which I
>  > >> >> suspect to be the pr

Re: replacement pix firewall with pf

2008-05-12 Thread Michael Richardson
On Mon, May 12, 2008 at 2:02 AM, sonjaya <[EMAIL PROTECTED]> wrote:
> i want make NAT from ip public   to server inside ( with non Ip public
>  )/dmz  without make ip alias.
>  replacement PIX Fw cisco with PF in openbsd the main point .

You probably want a binat entry for each host in the DMZ with proxy
arp entries on the firewall's external interface in /etc/rc.local.


-- 
Michael Richardson <[EMAIL PROTECTED]>



4.1 to 4.2 disklabel woes

2008-05-12 Thread Darrian Hale
Hello,

First of all I want to thank anyone in advance for any help i receive.  I am
having problems upgrading from OpenBSD 4.1 to 4.2.

After putting the GENERIC 4.2 kernel in place, i get the following errors
for all partitions during boot,
followed by a panic:

wd0a: id not found reading fsbn 128 of 128-143 (wd0 bn 8796093022399; cn
547531467 tn 80 sn 4), retrying
wd0: transfer error, downgrading to Ultra-DMA mode 4
wd0(pciide1:1:0): using PIO mode 4, Ultra-DMA mode 4
wd0a: id not found reading fsbn 128 of 128-143 (wd0 bn 8796093022399; cn
547531467 tn 80 sn 4), retrying
wd0: transfer error, downgrading to Ultra-DMA mode 3
wd0(pciide1:1:0): using PIO mode 4, Ultra-DMA mode 3
wd0a: id not found reading fsbn 128 of 128-143 (wd0 bn 8796093022399; cn
547531467 tn 80 sn 4), retrying
wd0: transfer error, downgrading to Ultra-DMA mode 2
wd0(pciide1:1:0): using PIO mode 4, Ultra-DMA mode 2
wd0a: id not found reading fsbn 128 of 128-143 (wd0 bn 8796093022399; cn
547531467 tn 80 sn 4), retrying
wd0a: id not found reading fsbn 128 of 128-143 (wd0 bn 8796093022399; cn
547531467 tn 80 sn 4), retrying
wd0a: id not found reading fsbn 128 of 128-143 (wd0 bn 8796093022399; cn
547531467 tn 80 sn 4)

I've searched the archives and found this similar problem:
http://archives.neohapsis.com/archives/openbsd/2008-01/0165.html

The response was version mismatch and user error due to
upgrading/downgrading etc.

I however have followed some very simple steps with no downgrading or other
tweaking of any kind and have the same results.  In addition I've tried to
boot from the 4.2 ramdisk
kernel and manually mount the partitions that were previously defined in 4.1
and I get the same error.

Its very simple to replicate my issue.

1. Install obsd 4.1
2. boot from the GENERIC 4.2 kernel.
3. system wont boot due to disks not mounting.

I can do a clean install of 4.2 by wiping the partition table and starting
over and the install works fine.

Is there a way to convert the old 4.1 label without losing data?  Any help
would be greatly appreciated.

I also want to note that this only seems to happen when using a SATA disk as
the other poster mentioned.
I can upgrade a system with a PATA disk just fine.

dmesg from the ramdisk kernel is below.  The last part of the dmesg with the
'id not found reading fsbn'
error was after I ran 'mount /dev/wd0a /mnt2'.

Thank you,
Darrian



OpenBSD 4.2 (RAMDISK_CD) #468: Tue Aug 28 11:02:17 MDT 2007
[EMAIL PROTECTED]:/usr/src/sys/arch/i386/compile/RAMDISK_CD
cpu0: Intel(R) Core(TM)2 CPU 6700 @ 2.66GHz ("GenuineIntel" 686-class) 2.67
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,VMX,EST,TM2,CX16,xTPR
real mem  = 2144825344 (2045MB)
avail mem = 2067951616 (1972MB)
mainbus0 at root
bios0 at mainbus0: AT/286+ BIOS, date 03/07/07, BIOS32 rev. 0 @ 0xf93f0,
SMBIOS rev. 2.3 @ 0xf (39 entries)
bios0: vendor Phoenix Technologies, LTD version "6.00 PG" date 03/07/2007
bios0: Intel i965-ITE8712
apm0 at bios0: Power Management spec V1.2
apm0: flags 70102 dobusy 1 doidle 1
pcibios0 at bios0: rev 3.0 @ 0xf/0xb934
pcibios0: PCI IRQ Routing Table rev 1.0 @ 0xfb7d0/304 (17 entries)
pcibios0: bad IRQ table checksum
pcibios0: PCI BIOS has 20 Interrupt Routing table entries
pcibios0: PCI Exclusive IRQs: 5 10 11 14 15
pcibios0: no compatible PCI ICU found
pcibios0: Warning, unable to fix up PCI interrupt routing
pcibios0: PCI bus #10 is the last bus
bios0: ROM list: 0xc/0xb000! 0xef000/0x1000!
cpu0 at mainbus0
pci0 at mainbus0 bus 0: configuration mode 1 (no bios)
pchb0 at pci0 dev 0 function 0 "Intel 82Q963 Host" rev 0x02
ppb0 at pci0 dev 1 function 0 "Intel 82Q963 PCIE" rev 0x02
pci1 at ppb0 bus 1
ppb1 at pci1 dev 0 function 0 "Intel PCIE-PCIE" rev 0x09
pci2 at ppb1 bus 2
ppb2 at pci1 dev 0 function 2 "Intel PCIE-PCIE" rev 0x09
pci3 at ppb2 bus 3
vga1 at pci0 dev 2 function 0 "Intel 82Q963 Graphics" rev 0x02
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
ppb3 at pci0 dev 28 function 0 "Intel 82801H PCIE" rev 0x02
pci4 at ppb3 bus 4
em0 at pci4 dev 0 function 0 "Intel PRO/1000MT (82573L)" rev 0x00: irq 14,
address 00:10:f3:0f:12:28
ppb4 at pci0 dev 28 function 1 "Intel 82801H PCIE" rev 0x02
pci5 at ppb4 bus 5
em1 at pci5 dev 0 function 0 "Intel PRO/1000MT (82573L)" rev 0x00: irq 10,
address 00:10:f3:0f:12:29
ppb5 at pci0 dev 28 function 2 "Intel 82801H PCIE" rev 0x02
pci6 at ppb5 bus 6
em2 at pci6 dev 0 function 0 "Intel PRO/1000MT (82573L)" rev 0x00: irq 11,
address 00:10:f3:0f:12:2a
ppb6 at pci0 dev 28 function 3 "Intel 82801H PCIE" rev 0x02
pci7 at ppb6 bus 7
em3 at pci7 dev 0 function 0 "Intel PRO/1000MT (82573L)" rev 0x00: irq 15,
address 00:10:f3:0f:12:2b
ppb7 at pci0 dev 28 function 4 "Intel 82801H PCIE" rev 0x02
pci8 at ppb7 bus 8
em4 at pci8 dev 0 function 0 "Intel PRO/1000MT (82573L)" rev 0x00: irq 14,
address 00:10:f3:0f:12:2c
ppb8 at pci0 dev 28 function 5 "Intel 82

Re: keyboard.repeat.del and second keyboard

2008-05-12 Thread Mats O Jansson

On Mon, 12 May 2008, Rafal Brodewicz wrote:


Hello.

How can I set keyboard.repeat.del* for external keyboard connected to
laptop through usb port?
Above settings works fine for laptop's keyboard.


wsconsctl -f /dev/wskbd1 keyboard.repeat.del1=400

If the ubs keyboard is wdkbd1

-moj



Thanks for reply.
--
Rafal Brodewicz




keyboard.repeat.del and second keyboard

2008-05-12 Thread Rafal Brodewicz
Hello.

How can I set keyboard.repeat.del* for external keyboard connected to
laptop through usb port?
Above settings works fine for laptop's keyboard.

Thanks for reply.
--
Rafal Brodewicz



pf problem -current

2008-05-12 Thread Rafal Brodewicz
Hi.
I have problem with pf on -current. It's enabled, but it doesn't work.
It's behaving like there was an empty pf.conf.

Thanks for any help.
cc -O2 -pipe  -Wall -Wmissing-prototypes -Wno-uninitialized -Wstrict-prototypes 
-I/usr/src/sbin/pfctl   -c /usr/src/sbin/pfctl/pfctl.c
/usr/src/sbin/pfctl/pfctl.c: In function `pfctl_kill_src_nodes':
/usr/src/sbin/pfctl/pfctl.c:520: error: structure has no member named 
`psnk_killed'
/usr/src/sbin/pfctl/pfctl.c:526: error: structure has no member named 
`psnk_killed'
/usr/src/sbin/pfctl/pfctl.c: In function `pfctl_net_kill_states':
/usr/src/sbin/pfctl/pfctl.c:626: error: structure has no member named 
`psk_killed'
/usr/src/sbin/pfctl/pfctl.c:632: error: structure has no member named 
`psk_killed'
/usr/src/sbin/pfctl/pfctl.c: In function `pfctl_label_kill_states':
/usr/src/sbin/pfctl/pfctl.c:658: error: structure has no member named 
`psk_label'
/usr/src/sbin/pfctl/pfctl.c:658: error: structure has no member named 
`psk_label'
/usr/src/sbin/pfctl/pfctl.c:659: error: structure has no member named 
`psk_label'
/usr/src/sbin/pfctl/pfctl.c:666: error: structure has no member named 
`psk_killed'
/usr/src/sbin/pfctl/pfctl.c: In function `pfctl_id_kill_states':
/usr/src/sbin/pfctl/pfctl.c:683: error: structure has no member named 
`psk_pfcmp'
/usr/src/sbin/pfctl/pfctl.c:683: error: structure has no member named 
`psk_pfcmp'
/usr/src/sbin/pfctl/pfctl.c:684: error: structure has no member named 
`psk_pfcmp'
/usr/src/sbin/pfctl/pfctl.c:684: error: structure has no member named 
`psk_pfcmp'
/usr/src/sbin/pfctl/pfctl.c:684: error: structure has no member named 
`psk_pfcmp'
/usr/src/sbin/pfctl/pfctl.c:685: error: structure has no member named 
`psk_pfcmp'
/usr/src/sbin/pfctl/pfctl.c:686: error: structure has no member named 
`psk_pfcmp'
/usr/src/sbin/pfctl/pfctl.c:691: error: structure has no member named 
`psk_pfcmp'
/usr/src/sbin/pfctl/pfctl.c:696: error: structure has no member named 
`psk_pfcmp'
/usr/src/sbin/pfctl/pfctl.c:696: error: structure has no member named 
`psk_pfcmp'
/usr/src/sbin/pfctl/pfctl.c:696: error: structure has no member named 
`psk_pfcmp'
/usr/src/sbin/pfctl/pfctl.c:701: error: structure has no member named 
`psk_killed'
/usr/src/sbin/pfctl/pfctl.c: In function `pfctl_print_rule_counters':
/usr/src/sbin/pfctl/pfctl.c:793: error: structure has no member named 
`states_cur'
/usr/src/sbin/pfctl/pfctl.c:798: error: structure has no member named 
`states_tot'
/usr/src/sbin/pfctl/pfctl.c: In function `pfctl_show_rules':
/usr/src/sbin/pfctl/pfctl.c:910: error: structure has no member named 
`states_tot'
*** Error code 1

Stop in /usr/src/sbin/pfctl (line 92 of /usr/share/mk/sys.mk).
OpenBSD 4.3-current (GENERIC) #1: Thu May  8 17:23:17 CEST 2008
[EMAIL PROTECTED]:/usr/src/sys/arch/amd64/compile/GENERIC
real mem = 1064628224 (1015MB)
avail mem = 1021964288 (974MB)
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.4 @ 0xf2a6d (25 entries)
bios0: vendor Hewlett-Packard version "68DDU Ver. F.10" date 01/11/2008
bios0: Hewlett-Packard HP Compaq 6510b (GB866EA#AKD)
acpi at bios0 not configured
cpu0 at mainbus0: (uniprocessor)
cpu0: Intel(R) Core(TM)2 Duo CPU T7100 @ 1.80GHz, 1795.75 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,LONG
cpu0: 2MB 64b/line 8-way L2 cache
cpu0: unknown Enhanced SpeedStep CPU, msr 0x06170a2d06000a2d
cpu0: using only highest and lowest power states
cpu0: Enhanced SpeedStep 2000 MHz (1420 mV): speeds: 2000, 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)
agp0 at vga1: aperture at 0xd000, size 0x1000
"Intel GM965 Video" rev 0x0c at pci0 dev 2 function 1 not configured
uhci0 at pci0 dev 26 function 0 "Intel 82801H USB" rev 0x03: irq 10
uhci1 at pci0 dev 26 function 1 "Intel 82801H USB" rev 0x03: irq 10
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
"Intel 82801H HD Audio" rev 0x03 at pci0 dev 27 function 0 not configured
ppb0 at pci0 dev 28 function 0 "Intel 82801H PCIE" rev 0x03
pci1 at ppb0 bus 8
ppb1 at pci0 dev 28 function 1 "Intel 82801H PCIE" rev 0x03: irq 10
pci2 at ppb1 bus 16
wpi0 at pci2 dev 0 function 0 "Intel PRO/Wireless 3945ABG" rev 0x02: irq 10, 
MoW2, address 00:1b:77:16:56:9a
ppb2 at pci0 dev 28 function 2 "Intel 82801H PCIE" rev 0x03: irq 11
pci3 at ppb2 bus 24
bge0 at pci3 dev 0 function 0 "Broadcom BCM5787M" rev 0x02, BCM5754/5787 A2 
(0xb002): irq 11, address 00:17:a4:e8:2a:06
brgphy0 at bge0 phy 1: BCM5787 10/100/1000baseT PHY, rev. 0
ppb3 at pci0 dev 28 function 4 "Intel 82801H PCIE" rev 0x03: irq 10
pci4 at ppb3 bus 40
uhci2 at pci0 dev 29 functio

Re: fsck large filesystem, memory limit problem

2008-05-12 Thread Otto Moerbeek
On Fri, May 09, 2008 at 11:16:28AM -0400, Will wrote:

> Here are the requested outputs.

OK, your filesystem indeed uses default block and fragment sizes. The
# of inodes is about 238M.

De fsck_ffs code allocates a number of arrays directly depending on
the # of indodes in setup(), totalling 4 bytes per inode. Some other
data is also needed, so it's not surprise you hit the 1G data space limit.

I can only conclude that the 2TB number I gave to Nick for the FAQ is
wrong, and should be 1TB. There might be some leeway there, but I
don't have the time to test now. I'll fix the FAQ.

-Otto

> 
> output of `df -i`:
> 
> Filesystem  512-blocks  Used Avail Capacity iused   ifree  %iused
> Mounted on
> /dev/sd0a   31448010115219760434%2189   23409 9%
> /
> /dev/sd0h  826419692   7850896 0%  20  545642 0%
> /home
> /dev/sd0d   25156420238968 0%   8   20470 0%
> /tmp
> /dev/sd0g 12391564   3360420   841156829%  193508  61199424%
> /usr
> /dev/sd0e   172836 1960414459212% 941   13137 7%
> /var
> /dev/sd0i   3758267452 1935577136 163477694454%   25270 242482248
> 0%   /mnt/share
> 
> output of `disklabel /dev/sd0`:
> 
> # /dev/rsd0c:
> type: SCSI
> disk: SCSI disk
> label: Host drive
> flags:
> bytes/sector: 512
> sectors/track: 63
> tracks/cylinder: 255
> sectors/cylinder: 16065
> cylinders: 243152
> total sectors: 3906248704
> rpm: 3600
> interleave: 1
> trackskew: 0
> cylinderskew: 0
> headswitch: 0   # microseconds
> track-to-track seek: 0  # microseconds
> drivedata: 0
> 
> 16 partitions:
> #size   offset  fstype [fsize bsize  cpg]
>  a:   321237   63  4.2BSD   2048 163841
>  b:  4209030   321300swap
>  c:   39062487040  unused  0 0
>  d:   257040  4530330  4.2BSD   2048 163841
>  e:   176715  4787370  4.2BSD   2048 163841
>  g: 12594960  4964085  4.2BSD   2048 163841
>  h:  8401995 17559045  4.2BSD   2048 163841
>  i:   3880275840 25961040  4.2BSD   2048 16384 38144
> 
> Thanks,
> William
> 
> On Fri, May 9, 2008 at 2:44 AM, Otto Moerbeek <[EMAIL PROTECTED]> wrote:
> > On Thu, May 08, 2008 at 05:18:26PM -0400, Will wrote:
> >
> >> I did see that, but did not realize that the 1GB limit is not a
> >> user-configurable feature.
> >>
> >> Even so, the FAQ implies that a 2TB filesystem is possible with
> >> default options, which is what I have.
> >
> > It might be the 2TB limit is a little too high, and the actual limit
> > is lower. Can you show us your disklabel entry for /dev/sd0i and the
> > output of df -i?
> >
> >-Otto
> >
> >>
> >> relevant output of df:
> >>
> >> Filesystem  512-blocks  Used Avail Capacity  Mounted on
> >> /dev/sd0i   3758267452 1935576944 163477713654%/mnt/share
> >>
> >> -William
> >>
> >> On Thu, May 8, 2008 at 5:04 PM, David J. Stillman
> >> <[EMAIL PROTECTED]> wrote:
> >> > Isn't this the 1GB application limit mentioned in FAQ 14.7 - " By the 
> >> > time
> >> > one gets to a 2TB file system with default fragment and block sizes, fsck
> >> > will require 1GB RAM to run, which is the application limit under 
> >> > OpenBSD.
> >> > Larger fragments and/or blocks will reduce the number of inodes, and 
> >> > allow
> >> > for larger file systems."?
> >> >
> >> > Will wrote:
> >> >>
> >> >> Hello all,
> >> >>
> >> >> I just upgraded to 4.3, and I would like to congratulate the devs on
> >> >> another wonderful release! shutdown -p works and the wbng sensor
> >> >> support was a nice surprise. However, the most useful feature to me
> >> >> was the support for ffs2.
> >> >>
> >> >> I upgraded without a hitch, and repartitioned from a 1tb filesystem to
> >> >> a 2tb share mount point. However, when I try to fsck the system just
> >> >> to make sure everything is ok, I receive this error:
> >> >>
> >> >> # fsck -f /dev/sd0i
> >> >> ** /dev/rsd0i
> >> >> ** File system is already clean
> >> >> cannot alloc 485015042 bytes for lncntp
> >> >>
> >> >> I just upgraded to 3gb ram, so that should be a non-issue according to 
> >> >> the
> >> >> faq.
> >> >>
> >> >> I have tried `ulimit -d unlimited` (as suggested previously in the
> >> >> archives), but the data limit will not go above 1048576, which I
> >> >> suspect to be the problem. I'm sure that there is another silly limit
> >> >> I am missing somewhere.
> >> >>
> >> >> Thanks for any help!
> >> >> -William
> >> >>
> >> >> Here is a dmesg of my system:
> >> >>
> >> >> OpenBSD 4.3 (GENERIC.MP) #1: Sat May  3 17:08:02 EDT 2008
> >> >>   [EMAIL PROTECTED]:/usr/src/sys/arch/amd64/compile/GENERIC.MP
> >> >> real mem = 3219636224 (3070MB)
> >> >> avail mem = 3110854656 (2966MB)
> >> >> mainbus0 at root
> >> >> bios0 at mainbus0: SMBIOS rev. 2.51 @ 0xbfeea000 (35 entries)
> >> >> bios0: vendor Phoenix Tech

Re: snmpd

2008-05-12 Thread Tim Kuijsten
I get this:
$ snmptable -v2c -c public localhost HOST-RESOURCES-MIB::hrStorageTable
End of MIB
HOST-RESOURCES-MIB::hrStorageTable: No entries

And the server outputs:
snmpe_parse: 127.0.0.1: SNMPv2 'public' context 5 request 537622771
snmpe_parse: 127.0.0.1: oid iso.org.dod.internet.mgmt.mib_2.25.2.3.1.0
snmpe_parse: 127.0.0.1: invalid varbind element, error index 1

Same for UCD-DISKIO-MIB::diskIOTable.

Also if I do a  snmpwalk -v2c -c  public localhost

I get:
SNMPv2-MIB::sysORID.1 = OID: SNMPv2-SMI::mib-2
SNMPv2-MIB::sysORID.2 = OID: IP-MIB::ip
SNMPv2-MIB::sysORID.3 = OID: SNMPv2-MIB::snmp
SNMPv2-MIB::sysORID.4 = OID: SNMPv2-SMI::mib-2.17
SNMPv2-MIB::sysORID.5 = OID: IF-MIB::ifMIB
SNMPv2-MIB::sysORID.6 = OID: SNMPv2-SMI::enterprises.30155.2

I gues this means HOST-RESOURCES-MIB::hrStorageTable and 
UCD-DISKIO-MIB::diskIOTable are not loaded? How can i load them?

Tnx in advance,

Tim

- Original Message 
> From: Brian A. Seklecki <[EMAIL PROTECTED]>
> To: Tim Kuijsten <[EMAIL PROTECTED]>
> Cc: misc@openbsd.org
> Sent: Friday, May 9, 2008 1:35:46 AM
> Subject: Re: snmpd
> 
> 
> On Thu, 2008-05-08 at 15:22 -0700, Tim Kuijsten wrote:
> > It looks like there is no info about disk usage, memory usage, load
> > and other sensor stuff. I have no clue where to find the mibs (locate
> > mib or locate .txt | grep snmp have no results) or how to load them..
> 
> That's all in HOST-RESOURCES-MIB and UCD-DISKIO-MIB
> 
> Try:
> 
> $ snmptable -v2c -c [comm] [host] HOST-RESOURCES-MIB::hrStorageTable
> $ snmptable -v2c -c [comm] [host] UCD-DISKIO-MIB::diskIOTable
> 
> The sensor stuff should be committed into the Ports version of Net-SNMP
> by now.  I can get it committed to Pkgsrc if not.  Its just not been at
> the top of my priority list.
> 
> 
> -- 
> Brian A. Seklecki 
> Collaborative Fusion, Inc.



  

Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile.  Try it now.  
http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ



Re: BSD authentication username rewrite

2008-05-12 Thread Jakob Schlyter

On 12 maj 2008, at 12.08, LIVAI Daniel wrote:


Could this be a help for you?

http://wiki.dovecot.org/Authentication/Kerberos


thanks, but that i GSSAPI-authentication - i.e. not password
authentication against a kerberos realm.

jakob



Inviting HR professionals to undertake campus recruitment at our campus if any

2008-05-12 Thread placements.bitswarangal
BALAJI INSTITUTE OF TECHNOLOGY & SCIENCE

Laknepally (V), Narsampet  (M), Warangal - 506 331

 

 

Dr. A. R. P. Reddy, Chairman

Cell : 9866078586,  Email ID : [EMAIL PROTECTED]

 

 

 

 

 

Dear HR Colleague,

 

 

Sub:  Inviting  HR  professionals  to   undertake  campus  recruitment
at  our campus  if  any  

   openings  exist  in  your  organization.

 

* * *

 

 

Balaji Institute of Technology & Science, Narsampet,  popularly known as
BITS - Narsampet, Warangal, was established by Maheshwara Educational
Society in 2001 at Laknepally, Narsampet in an area of  about  54 acres.
It is only 30 minutes drive from Warangal Railway Station.

 

BITS has been  known as a reputed technical campus for many years.
BITS, from its technical campus, produce suitable professionals  to meet
your Industrial requirements for Recruitment / Hiring by companies.
The professional specializations  are :

 

Engineering :  Computer Science   -
120 Student Professionals

Electronics & Communication  -
120 Student Professionals

Information Technology
-120 Student Professionals

Mechanical Engineering   -
60 Student Professionals

 

Post Graduation :  MBA   -
60 Student Professionals

MCA
-  60 Student Professionals

 

B.Pharmacy :  60 Student Professionals

 

Please do contact us whenever you wish to plan to visit our campus for
recruiting Engineering & Pharmacy graduates and Post Graduates
pertaining to MCA and MBA of 2009 and also 2008 passing outs or for any
assistance from our side that we can do / extend in Warangal district.

 

If companies like yours are interested to recruit freshers by opting
Pool - Campus drive we will be able to line-up about 1500 eligible
engineering student professionals pertaining to above specializations of
2009 passing outs and also about 1000 eligible  professionals of 2008
passing outs from  nearby professional colleges  to participate in the
Pool - Campus drive.

 

We will be grateful if you could please make refer to other HR friends
you know among your circle.

 

It is our pleasure to await your visit to our campus.

 

Thanks & Regards,

 

Vikram Reddy Vaddi

Head,  Training & Placement Cell

Balaji Institute of Technology & Science

Narsampet, Dist.Warangal (A.P)

Cell : 99497 85905

Email ID : [EMAIL PROTECTED]
 

   [EMAIL PROTECTED]
 



Re: Old EmBSD docs

2008-05-12 Thread Rod Whitworth
On Mon, 12 May 2008 11:58:38 +0300, Michael Dexter wrote:

>>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.
>
>Nonsense. Many "new" embedded boards have limited flash memory soldered on.
>
>Michael.

And the OP said (in the bit you did not quote):
>>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.
>

Doesn't sound too soldered on to me.

Off-list replies not needed and will be tarpitted if addressed to the
sender address.
Reply-to works but isn't needed, I'm subscribed.


Rod/
/earth: write failed, file system is full
cp: /earth/creatures: No space left on device



Re: How to filter based on application protocol being used

2008-05-12 Thread Marcus Andree


Snort may also be of interest here.

>
>  You can do it using open-source software as "Bro" (http://bro-ids.org),
>  it's an open-source, Unix-based Network Intrusion Detection
>  System (NIDS) that passively monitors network traffic and looks for
>  suspicious activity.
>  "Bro" has the "DPD" (dynamic protocol detection) feature and can
>  reports (confirmed) uses of protocols on non-standard ports.
>
>  Please see : http://www.icir.org/robin/papers/usenix06.pdf for more
>  informations about this.
>
>  Last thing, it builds and works perfectly on OpenBSD. :-)
>
>  With regards,
>
>  Jean-Philippe.



Re: Editing C with...

2008-05-12 Thread Marcus Andree
There's some doubt if someone will achieve a valid OpenBSD binary.

Also, the program may be subject to virus and trojan horses on its
way to an OpenBSD system.

:)

2008/5/9 David Gwynne <[EMAIL PROTECTED]>:
> copy con program.exe



Re: Old EmBSD docs

2008-05-12 Thread Michael Dexter
>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.

Nonsense. Many "new" embedded boards have limited flash memory soldered on.

Michael.



Re: BSD authentication username rewrite

2008-05-12 Thread LÉVAI Dániel
On Monday 12 May 2008 12.01.29 you wrote:
> On 12 maj 2008, at 11.43, LIVAI Daniel wrote:
> > Just simply out of curiosity; why don't you use dovecot with
> > virtual users in plain text passwd-file style, or even sql/ldap?
>
> 'cause the users are provisioned using kerberos.
>
>   jakob

Could this be a help for you?

http://wiki.dovecot.org/Authentication/Kerberos

Daniel

-- 
LEVAI Daniel
PGP key ID = 0x4AC0A4B1
Key fingerprint = D037 03B9 C12D D338 4412  2D83 1373 917A 4AC0 A4B1



Re: BSD authentication username rewrite

2008-05-12 Thread Jakob Schlyter

On 12 maj 2008, at 11.43, LIVAI Daniel wrote:


Just simply out of curiosity; why don't you use dovecot with virtual
users in plain text passwd-file style, or even sql/ldap?


'cause the users are provisioned using kerberos.

jakob



Re: re(4) Devices Cannot do VLANs?

2008-05-12 Thread Insan Praja SW
On Mon, 12 May 2008 16:37:38 +0700, Stuart Henderson <[EMAIL PROTECTED]>  
wrote:



On 2008-05-12, Insan Praja SW <[EMAIL PROTECTED]> wrote:

Since I got an Gigabyte motherboard, and installed 4.2-Stable and now
4.3-Stable, I cannot get re(4) (Dlink H/W) working with VLANs. When I  
use
VLAN on them, I can ping it, but when I tried to ssh or other services,  
it

wont work. We use 100mbps link on it.


Your message isn't absolutely clear, do you mean that the same NIC
worked on some other motherboard, or is it a new NIC and new motherboard?


re0 at pci1 dev 5 function 0 "Realtek 8169SC" rev 0x10: RTL8169/8110SCd
(0x1800), apic 2 int 21 (irq 10), address 00:1a:4d:6f:b4:52
rgephy0 at re0 phy 7: RTL8169S/8110S PHY, rev. 2


There's a known problem with multicast on this particular revision
of nic (and also RTL8169/8110SB 0x1000) with, as far as I can make out,
all but the newest version of the vendor's driver (carp, ipv6 and
ospf use multicast), that shouldn't affect vlan, but maybe there is
some other problem people haven't noticed before.

The 0x1800 is used on Jetway J7F2
The 0x1000 is used on the Thecus N2100

The vendor driver for these NICs is a great example of why we want
full programming data sheets and lists of errata, not just "open
source drivers" filled with hundreds of magic numbers.



Hi Stuart and Misc@,
This is a onboard interfaces, actually. Well maybe I can recreate the  
tcpdump I made between this machine to others or reverse. and for the  
record, when not using vlan on it, it works just ok.

Thanks,


Insan
--
insandotpraja(at)gmaildotcom



Re: BSD authentication username rewrite

2008-05-12 Thread LÉVAI Dániel
On Monday 12 May 2008 10.09.19 you wrote:
> hi,
>
> I have an imap server (dovecot) that can auhenticate using BSD
> authentication. however, when imap server requests authenitcation for
> user xyzzy, I'd like the bsd authentication layer to authenticate
> user 'xyzzy/mail' (which has a separate password in kerberos). I can
> see multiple solutions to this:
>
> 1) have dovecot rewrite the username before sending it to bsdauth
>
> 2) have bsdauth add /main to the username before authentication. this
> might be more generic and will make it easier for other apps to use
> separate password for some apps (using an option to login.conf).
>
>
> comments and/or ideas?

Just simply out of curiosity; why don't you use dovecot with virtual 
users in plain text passwd-file style, or even sql/ldap?

Daniel


-- 
LEVAI Daniel
GPG key ID = 0x4AC0A4B1
Key fingerprint = D037 03B9 C12D D338 4412  2D83 1373 917A 4AC0 A4B1



Re: re(4) Devices Cannot do VLANs?

2008-05-12 Thread Stuart Henderson
On 2008-05-12, Insan Praja SW <[EMAIL PROTECTED]> wrote:
> Since I got an Gigabyte motherboard, and installed 4.2-Stable and now
> 4.3-Stable, I cannot get re(4) (Dlink H/W) working with VLANs. When I use
> VLAN on them, I can ping it, but when I tried to ssh or other services, it
> wont work. We use 100mbps link on it.

Your message isn't absolutely clear, do you mean that the same NIC
worked on some other motherboard, or is it a new NIC and new motherboard?

> re0 at pci1 dev 5 function 0 "Realtek 8169SC" rev 0x10: RTL8169/8110SCd
> (0x1800), apic 2 int 21 (irq 10), address 00:1a:4d:6f:b4:52
> rgephy0 at re0 phy 7: RTL8169S/8110S PHY, rev. 2

There's a known problem with multicast on this particular revision
of nic (and also RTL8169/8110SB 0x1000) with, as far as I can make out,
all but the newest version of the vendor's driver (carp, ipv6 and
ospf use multicast), that shouldn't affect vlan, but maybe there is
some other problem people haven't noticed before.

The 0x1800 is used on Jetway J7F2
The 0x1000 is used on the Thecus N2100

The vendor driver for these NICs is a great example of why we want
full programming data sheets and lists of errata, not just "open
source drivers" filled with hundreds of magic numbers.



Re: Old EmBSD docs

2008-05-12 Thread Stuart Henderson
On 2008-05-12, Steve B <[EMAIL PROTECTED]> wrote:
>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.

I've been much happier with ordinary consumer-grade sandisk CF than
any of the industrial CF/DoM that I tried.



Re: ACPI issue

2008-05-12 Thread Cesare Gargano
On 11/05/08 16:39 +0200, Cesare Gargano wrote:
> 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
> "AT&T/Lucent LTMODEM" rev 0x01 at pci2 dev 2 function 0 not configured
> fxp0 at pci2 dev 8 fu

re(4) Devices Cannot do VLANs?

2008-05-12 Thread Insan Praja SW

Hi Misc@,
Since I got an Gigabyte motherboard, and installed 4.2-Stable and now
4.3-Stable, I cannot get re(4) (Dlink H/W) working with VLANs. When I use
VLAN on them, I can ping it, but when I tried to ssh or other services, it
wont work. We use 100mbps link on it.
So, maybe anyone on the Misc@ have the same problem and maybe there are
solution to this.
Thanks in advance,
Kind Regards,


--
insandotpraja(at)gmaildotcom

OpenBSD 4.3 (GENERIC.MP) #1582: Wed Mar 12 11:16:45 MDT 2008
[EMAIL PROTECTED]:/usr/src/sys/arch/amd64/compile/GENERIC.MP
real mem = 1064890368 (1015MB)
avail mem = 1022169088 (974MB)
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.4 @ 0xf0100 (33 entries)
bios0: vendor Award Software International, Inc. version "F2" date
04/25/2007
bios0: Gigabyte Technology Co., Ltd. 945GCM-S2
acpi0 at bios0: rev 0
acpi0: tables DSDT FACP HPET MCFG APIC
acpi0: wakeup devices PEX0(S5) PEX1(S5) PEX2(S5) PEX3(S5) PEX4(S5)
PEX5(S5) HUB0(S5) UAR1(S1) UAR2(S1) USB0(S1) USB1(S1) USB2(
S1) USB3(S1) USBE(S1) AZAL(S5) PCI0(S5)
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpihpet0 at acpi0: 14318179 Hz
acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: Intel(R) Pentium(R) D CPU 2.66GHz, 2679.87 MHz
cpu0:
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUS
H,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,S
SE3,MWAIT,DS-CPL,TM2,CNXT-ID,CX16,xTPR,NXE,LONG
cpu0: 1MB 64b/line 8-way L2 cache
cpu0: apic clock running at 133MHz
cpu1 at mainbus0: apid 1 (application processor)
cpu1: Intel(R) Pentium(R) D CPU 2.66GHz, 2679.55 MHz
cpu1:
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUS
H,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,S
SE3,MWAIT,DS-CPL,TM2,CNXT-ID,CX16,xTPR,NXE,LONG
cpu1: 1MB 64b/line 8-way L2 cache
ioapic0 at mainbus0 apid 2 pa 0xfec0, version 20, 24 pins
ioapic0: misconfigured as apic 0, remapped to apid 2
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 1 (HUB0)
acpicpu0 at acpi0
acpicpu1 at acpi0
acpibtn0 at acpi0: PWRB
pci0 at mainbus0 bus 0: configuration mode 1
pchb0 at pci0 dev 0 function 0 "Intel 82945G Host" rev 0x02
agp0 at pchb0: aperture at 0xc000, size 0x1000
vga1 at pci0 dev 2 function 0 "Intel 82945G Video" rev 0x02
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
azalia0 at pci0 dev 27 function 0 "Intel 82801GB HD Audio" rev 0x01: apic
2 int 16 (irq 5)
azalia0 at pci0 dev 27 function 0 "Intel 82801GB HD Audio" rev 0x01: apic
2 int 16 (irq 5)
azalia0: codec[s]: Realtek/0x0888
audio0 at azalia0
uhci0 at pci0 dev 29 function 0 "Intel 82801GB USB" rev 0x01: apic 2 int
23 (irq 9)
uhci1 at pci0 dev 29 function 1 "Intel 82801GB USB" rev 0x01: apic 2 int
19 (irq 11)
uhci2 at pci0 dev 29 function 2 "Intel 82801GB USB" rev 0x01: apic 2 int
18 (irq 6)
uhci3 at pci0 dev 29 function 3 "Intel 82801GB USB" rev 0x01: apic 2 int
16 (irq 5)
ehci0 at pci0 dev 29 function 7 "Intel 82801GB USB" rev 0x01: 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 0xe1
pci1 at ppb0 bus 1
fxp0 at pci1 dev 0 function 0 "Intel 8255x" rev 0x02, i82557: apic 2 int
20 (irq 12), address 00:04:ac:56:97:a2
inphy0 at fxp0 phy 1: i82555 10/100 PHY, rev. 0
ukphy0 at fxp0 phy 2: Generic IEEE 802.3u media interface, rev. 3: OUI
0x28a5c0, model 0x0008
fxp1 at pci1 dev 1 function 0 "Intel 8255x" rev 0x05, i82558: apic 2 int
19 (irq 11), address 00:08:c7:aa:ee:0c
inphy1 at fxp1 phy 1: i82555 10/100 PHY, rev. 0
re0 at pci1 dev 5 function 0 "Realtek 8169SC" rev 0x10: RTL8169/8110SCd
(0x1800), apic 2 int 21 (irq 10), address 00:1a:4d:6f:
b4:52
rgephy0 at re0 phy 7: RTL8169S/8110S PHY, rev. 2
pcib0 at pci0 dev 31 function 0 "Intel 82801GB LPC" rev 0x01
pciide0 at pci0 dev 31 function 2 "Intel 82801GB SATA" rev 0x01: DMA,
channel 0 wired to compatibility, channel 1 wired to com
patibility
wd0 at pciide0 channel 0 drive 0: 
wd0: 16-sector PIO, LBA48, 76318MB, 156299375 sectors
wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 5
ichiic0 at pci0 dev 31 function 3 "Intel 82801GB SMBus" rev 0x01: apic 2
int 19 (irq 11)
iic0 at ichiic0
spdmem0 at iic0 addr 0x50: 1GB DDR2 SDRAM non-parity PC2-5300CL5
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 pcib0
isadma0 at isa0
com0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo
com1 at isa0 port 0x2f8/8 irq 3: n

BSD authentication username rewrite

2008-05-12 Thread Jakob Schlyter

hi,

I have an imap server (dovecot) that can auhenticate using BSD  
authentication. however, when imap server requests authenitcation for  
user xyzzy, I'd like the bsd authentication layer to authenticate user  
'xyzzy/mail' (which has a separate password in kerberos). I can see  
multiple solutions to this:


1) have dovecot rewrite the username before sending it to bsdauth

2) have bsdauth add /main to the username before authentication. this  
might be more generic and will make it easier for other apps to use  
separate password for some apps (using an option to login.conf).



comments and/or ideas?

jakob



Re: PF Congestion and state table question

2008-05-12 Thread Jordi Espasa Clofent
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.


Relating about that, I see:

$ sysctl net.inet.ip.ifq
net.inet.ip.ifq.len=0
net.inet.ip.ifq.maxlen=1024
net.inet.ip.ifq.drops=130998

?What's about net.inet.ip.ifq.len value? ?Is it this '0' a wrong value?

Note that net.inet.ip.ifq.maxlen=1024 means that I've 4 NICs (em 
(4)based) in this box.