Nouvelle Gamme

2011-02-17 Thread Les Floraldas
SASLibr?space

32/34, rue Roger TOUTON - 33300 BORDEAUX -
mailto:cont...@lesfloraldas.com

cont...@lesfloraldas.com

Tel 05 56 11 02 02
/ Fax 05 56 11 00 99

Pour dicorer et aminager vos espaces de travail et vos
lieux de vie.

Pour vos expositions, vos foires et vos salons...

400 produits
` votre disposition, chez vous sous 10 jours.
http://url.emm24.net/t/51102/3437/6066238/45529/0
http://url.emm24.net/t/51103/3437/6066238/45529/0
http://url.emm24.net/t/51104/3437/6066238/45529/0
http://url.emm24.net/t/51105/3437/6066238/45529/0
http://url.emm24.net/t/51106/3437/6066238/45529/0
http://url.emm24.net/t/51107/3437/6066238/45529/0
http://url.emm24.net/t/51108/3437/6066238/45529/0
http://url.emm24.net/t/51109/3437/6066238/45529/0







Il suffit de crier
un compte pour consulter votre tarif
http://www.lesfloraldas.com/utilisateurs/enregistrement.php

+ entreprise ;
http://url.emm24.net/t/51110/3437/6066238/45529/0







Vous pouvez commander
directement sur notre site ou nous tiliphoner pour tout renseignement
complimentaire.



Siret : 52857546700014 / TVA intracom : FR95528575467

Pour
ne plus recevoir de courriels de notre part, il vous suffit de vous rendre sur
http://form.emm24.net/u/?s=d6d-0-5c903e-b1d9-a0b55fa2--c7a7res=fr

cette
page.



Re: route flush and sh /etc/netstart not enough?

2011-02-17 Thread Dennis Davis
On Wed, 16 Feb 2011, Kevin Chadwick wrote:

 From: Kevin Chadwick ma1l1i...@yahoo.co.uk
 To: misc@openbsd.org
 Date: Wed, 16 Feb 2011 14:27:08
 Subject: Re: route flush and sh /etc/netstart not enough?
 
 On Wed, 16 Feb 2011 14:47:39 +0100
 Henning Brauer wrote:
 
  indeed.
 
 hmmm, it's bugging me where I read that there was a window. I have
 a memory that it was quite an authoritive source but I guess not.
 
 Anyway, cool to know now.

This is quite clearly covered in Peter Hansteen's online PF tutorial.
To quote from:

http://home.nuug.no/~peter/pf/en/stricter.html

  Under any circumstances the last valid rule set loaded will be in
  force until you either disable PF or load a new rule set.

  That is worth noting: When loading a new rule set, the last valid
  rule set stays loaded until the new one is fully parsed and
  loaded, and PF switches directly from one to the other. There is
  no intermediate stage with no rules loaded or a mixture of the two
  rule sets.

This is also explained quite early in both editions of his book.  On
page 14 in the first edition, page 21 in the second edition.
-- 
Dennis Davis, BUCS, University of Bath, Bath, BA2 7AY, UK
d.h.da...@bath.ac.uk   Phone: +44 1225 386101



Ha recibido una Postal de Ana Catalan Orellana

2011-02-17 Thread Postales - Gusanito
[IMAGE]

Has recibido una tarjeta de alguien que te considera especial

te mereces esto y mucho mas, con todo mi amor para ti

Para ver la postal y nombre del autor, debes descargarla desde el
siguiente link:
http://www.gusanito.com/esp/mipostal/recoger/944E8F8A6A2E370F08FB086AD6C21B75

(Si el enlace no funciona, puedes copiarlo y pegarlo en la barra de
direcciones de tu navegador).

Para recogerlo a mano desde la pagina, acude a:
http://gusanito.com/g/gusanito/manualRetrieve.jsp
Y en el recuadro ingresa el siguiente csdigo:
DRF73B829835A08C3BE3953FF6402C08200241896

*NOTA: Este csdigo te sirve sslo para esta ocasisn, no es una contraseqa
ni te servira para recoger otros contenidos.



!Advertencia!

Han aparecido correos que pretenden ser de gusanito pero !no lo son! Ten
mucho cuidado porque te piden la contraseqa de tu correo electrsnico para
acceder a tu cuenta sin autorizacisn.
Todo los correos autinticos de gusanito te enviaran directamente a la
tarjeta que has recibido.

Te recordamos que tu tarjeta estara disponible 2 semanas a partir de la
fecha en que fue enviada.
Por favor, no respondas a este correo. Esta cuenta no es monitoreada y
por ello no recibiras respuesta. Para asistencia, conictate a
www.gusanito.com e ingresa en la liga Ayuda ubicada en la esquina
superior derecha del sitio.

) Gusanito.com S. de R.L. de C.V. Todos los derechos reservados.



Re: netword's wireless security settings - how to determine

2011-02-17 Thread Stuart Henderson
On 2011-02-16, Dmitrij D. Czarkoff czark...@gmail.com wrote:
 On Wed, Feb 16, 2011 at 01:33:12AM -0500, Ted Unangst wrote:
 you shouldn't need to specify tkip, it's the default.  wpa1 is also
 enabled by default.

 That was my initial point. As of the string:

 ifconfig iwn0 nwid La Esquina wpaakms psk wpaciphers tkip wpagroupcipher 
 tkip wpaprotos wpa1 wpakey laesquina085
 ^^^ ^^^ 
 ^^^ ^^
 copies the defaults (omitting second alternatives in case of ciphers), but
 leaving them out and specifying only:

 ifconfig iwn0 nwid La Esquina wpakey laesquina085

 doesn't get me connected, while the full line does.

 And the other point was that I can't find a way to find out the proper
 settings for wpaakms, wpaciphers, wpagroupcipher and wpaprotos without
 asking anyone, while this seems to be possible as linux's iwlist does it.


Perhaps we think that the AP supports wpa2 but it is actually broken
and only wpa1 works.



Liste rouge

2011-02-17 Thread Abuse DOLIST.NET
Bonjour,

Vous avez demandi ` inscrire votre adresse e-mail misc@openbsd.org sur la
liste rouge Dolist.net, diclaration CNIL n01276260.

Pour valider votre inscription et ne plus recevoir aucun message de la
part de nos clients et annonceurs, cliquez sur le lien ci-dessous.
http://form.emm04.net/rl/?s=MzQzNyxtaXNjQG9wZW5ic2Qub3JnLDY2Mjc2ZWIyres=fr
Dans le cas contraire, merci de ne pas tenir compte de ce message.

Vous ne recevrez plus aucune information provenant de tous les clients et
annonceurs de Dolist.net, mjme s'il s'agit d'une information sollicitie.

Dolist.net s'engage ` disinscrire de fagon valide cette adresse e-mail de
toutes les bases de contacts de nos clients/annonceurs.

--

Dolist.net est une plate forme d'e-mailing professionnelle, notre mitier
est de router les campagnes d'e-mail marketing de nos clients.

A aucun moment nous ne ricupirons, par quelque biais que ce soit, ni ne
vendons, des adresses e-mails. Nous routons uniquement des messages sur
les fichiers d'adresses fournis par nos clients.

Dolist ne saurait jtre tenu pour responsable des mithodes de collecte de
donnies employies par l'ensemble de ses clients et si vous pensez que
l'un de nos clients ne respecte pas l'ensemble des obligations ligales et
riglementaires applicables en la matihre, merci de nous le faire savoir :
icrivez ` ab...@dolist.net en transfirant l'intigraliti du message
original que vous avez regu.

--
DOLIST E-mail Marketing Services
_

DOLIST.NET, Internet E-mail List Server Technology
DOLIST information at : http://www.dolist.net



Re: usb external disk freezes system

2011-02-17 Thread shwegime

On Wed, 16 Feb 2011, Kenneth R Westerback wrote:


On Wed, Feb 16, 2011 at 06:05:59PM +0800, shweg...@gmail.com wrote:

I have an external usb drive which freezes the system, especially if
I do some cp of scp of big files, but not necessarily, it happens
also with small files, here is the error I get:

attempting to restore vector in use vecproc 0 veccpu 6boff0
attempting to restore vector in use vecproc 0 veccpu 6boff0
(yes, written to times)
umass0: Invalid CSW: sig 0x40f00ee0 shuld be 0x53425355


Please try a -current snapshot. Many, many USB fixes since Aug. and
it would be good to know if the problem still exists as 4.9 is
about to lock.

 Ken



thanks, I'll try my best to find some time for that.













This is my dmesg:

[ using 454796 bytes of bsd ELF symbol table ]
console out [ATY,RockHopper2_A]console in [] , no keyboard attached,
trying usb anyway
using parent ATY,RockHopper2Paren:: memaddr 9800 size 800, :
consaddr 9c008000, : ioaddr 9002, size 2: memtag 8000, iotag
8000: width 640 linebytes 768 height 480 depth 8
Copyright (c) 1982, 1986, 1989, 1991, 1993
The Regents of the University of California.  All rights reserved.
Copyright (c) 1995-2010 OpenBSD. All rights reserved.
http://www.OpenBSD.org

OpenBSD 4.8 (GENERIC) #95: Mon Aug 16 09:13:15 MDT 2010
dera...@macppc.openbsd.org:/usr/src/sys/arch/macppc/compile/GENERIC
real mem = 1073741824 (1024MB)
avail mem = 1032704000 (984MB)
mainbus0 at root: model PowerMac10,1
cpu0 at mainbus0: 7447A (Revision 0x102): 1249 MHz: 512KB L2 cache
mem0 at mainbus0
spdmem0 at mem0: 1GB DDR SDRAM non-parity PC3200CL3.0
memc0 at mainbus0: uni-n
hw-clock at memc0 not configured
kiic0 at memc0 offset 0xf8001000
iic0 at kiic0
mpcpcibr0 at mainbus0 pci: uni-north, Revision 0xff
pci0 at mpcpcibr0 bus 0
pchb0 at pci0 dev 11 function 0 Apple UniNorth AGP rev 0x00
vgafb0 at pci0 dev 16 function 0 ATI Radeon 9200 rev 0x01, mmio
wsdisplay0 at vgafb0 mux 1: console (std, vt100 emulation)
mpcpcibr1 at mainbus0 pci: uni-north, Revision 0x5
pci1 at mpcpcibr1 bus 0
pchb1 at pci1 dev 11 function 0 Apple UniNorth PCI rev 0x00
macobio0 at pci1 dev 23 function 0 Apple Intrepid rev 0x00
openpic0 at macobio0 offset 0x4: version 0x4614 little endian
macgpio0 at macobio0 offset 0x50
modem-reset at macgpio0 offset 0x1d not configured
modem-power at macgpio0 offset 0x1c not configured
macgpio1 at macgpio0 offset 0x9 irq 47
pgs0 at macgpio0 offset 0x11: irq 55
gpio5 at macgpio0 offset 0x6f not configured
gpio6 at macgpio0 offset 0x70 not configured
extint-gpio15 at macgpio0 offset 0x67 not configured
escc-legacy at macobio0 offset 0x12000 not configured
zsc0 at macobio0 offset 0x13000: irq 22,23
zstty0 at zsc0 channel 0
zstty1 at zsc0 channel 1
aoa0 at macobio0 offset 0x1: irq 30,1,2
audio0 at aoa0
timer at macobio0 offset 0x15000 not configured
adb0 at macobio0 offset 0x16000 irq 25: via-pmu, 0 targets
apm0 at adb0: battery flags 0x0, 0% charged
piic0 at adb0
iic1 at piic0
maxtmp0 at iic1 addr 0xc8: max6642
kiic1 at macobio0 offset 0x18000
iic2 at kiic1
wdc0 at macobio0 offset 0x2 irq 24: DMA
ohci0 at pci1 dev 24 function 0 Apple Intrepid USB rev 0x00: irq
0, version 1.0, legacy support
ohci1 at pci1 dev 25 function 0 Apple Intrepid USB rev 0x00: irq
0, version 1.0, legacy support
ohci2 at pci1 dev 26 function 0 Apple Intrepid USB rev 0x00: irq
29, version 1.0, legacy support
ohci3 at pci1 dev 27 function 0 NEC USB rev 0x43: irq 63, version 1.0
ohci4 at pci1 dev 27 function 1 NEC USB rev 0x43: irq 63, version 1.0
ehci0 at pci1 dev 27 function 2 NEC USB rev 0x04: irq 63
usb0 at ehci0: USB revision 2.0
uhub0 at usb0 NEC EHCI root hub rev 2.00/1.00 addr 1
usb1 at ohci0: USB revision 1.0
uhub1 at usb1 Apple OHCI root hub rev 1.00/1.00 addr 1
usb2 at ohci1: USB revision 1.0
uhub2 at usb2 Apple OHCI root hub rev 1.00/1.00 addr 1
usb3 at ohci2: USB revision 1.0
uhub3 at usb3 Apple OHCI root hub rev 1.00/1.00 addr 1
usb4 at ohci3: USB revision 1.0
uhub4 at usb4 NEC OHCI root hub rev 1.00/1.00 addr 1
usb5 at ohci4: USB revision 1.0
uhub5 at usb5 NEC OHCI root hub rev 1.00/1.00 addr 1
mpcpcibr2 at mainbus0 pci: uni-north, Revision 0x6
pci2 at mpcpcibr2 bus 0
pchb2 at pci2 dev 11 function 0 Apple UniNorth PCI rev 0x00
kauaiata0 at pci2 dev 13 function 0 Apple Intrepid ATA rev 0x00
wdc1 at kauaiata0 irq 39: DMA
wd0 at wdc1 channel 0 drive 0: SAMSUNG HM160HC
wd0: 16-sector PIO, LBA48, 152627MB, 312581808 sectors
atapiscsi0 at wdc1 channel 0 drive 1
scsibus0 at atapiscsi0: 2 targets
cd0 at scsibus0 targ 0 lun 0: MATSHITA, CD-RW CW-8124, DACD ATAPI
5/cdrom removable
wd0(wdc1:0:0): using PIO mode 4, DMA mode 2, Ultra-DMA mode 2
cd0(wdc1:0:1): using PIO mode 4, DMA mode 2, Ultra-DMA mode 2
Apple UniNorth Firewire rev 0x81 at pci2 dev 14 function 0 not
configured
gem0 at pci2 dev 15 function 0 Apple Uni-N2 GMAC rev 0x80: irq 41,
address 00:0d:93:5e:38:10
bmtphy0 at gem0 phy 0: BCM5221 100baseTX PHY, rev. 4
umass0 at uhub0 port 1 configuration 1 

Re: Tracking What it's changing in current

2011-02-17 Thread Marco Peereboom
Right, but that is the holy grail because now you'd have change sets.

I'll pay prize money for that ;-)

On Thu, Feb 17, 2011 at 06:13:32AM -0800, patrick keshishian wrote:
 On Thu, Feb 17, 2011 at 6:05 AM, Christiano F. Haesbaert
 haesba...@haesbaert.org wrote:
  On 16 February 2011 22:21, Marco Peereboom sl...@peereboom.us wrote:
  Is it possible to catch the entire commit and have that diff generated?
 
 
  I'm a little late at this thread but yes, we do that here in work.
  Don't have access to the scripts though :(
 
 he means a commit that touches files in multiple directory locations
 throughout a source tree. I'm not sure if this is possible so easily.
 
 --patrick



Re: Tracking What it's changing in current

2011-02-17 Thread Christiano F. Haesbaert
On 16 February 2011 22:21, Marco Peereboom sl...@peereboom.us wrote:
 Is it possible to catch the entire commit and have that diff generated?


I'm a little late at this thread but yes, we do that here in work.
Don't have access to the scripts though :(



Re: Tracking What it's changing in current

2011-02-17 Thread Darrin Chandler
IIRC, someone had methods to import CVS into Mercurial (hg) using cvsps that
largely succeeded in making change sets. Of course it's not perfect, but
it can never be perfect. It's been too long for me to remember details.

On Thu, Feb 17, 2011 at 09:01:20AM -0600, Marco Peereboom wrote:
 Right, but that is the holy grail because now you'd have change sets.
 
 I'll pay prize money for that ;-)
 
 On Thu, Feb 17, 2011 at 06:13:32AM -0800, patrick keshishian wrote:
  On Thu, Feb 17, 2011 at 6:05 AM, Christiano F. Haesbaert
  haesba...@haesbaert.org wrote:
   On 16 February 2011 22:21, Marco Peereboom sl...@peereboom.us wrote:
   Is it possible to catch the entire commit and have that diff generated?
  
  
   I'm a little late at this thread but yes, we do that here in work.
   Don't have access to the scripts though :(
  
  he means a commit that touches files in multiple directory locations
  throughout a source tree. I'm not sure if this is possible so easily.
  
  --patrick
 

-- 
You've been warned.



Re: Tracking What it's changing in current

2011-02-17 Thread patrick keshishian
On Thu, Feb 17, 2011 at 6:05 AM, Christiano F. Haesbaert
haesba...@haesbaert.org wrote:
 On 16 February 2011 22:21, Marco Peereboom sl...@peereboom.us wrote:
 Is it possible to catch the entire commit and have that diff generated?


 I'm a little late at this thread but yes, we do that here in work.
 Don't have access to the scripts though :(

he means a commit that touches files in multiple directory locations
throughout a source tree. I'm not sure if this is possible so easily.

--patrick



Re: Dell R310 - H200 Raid performance problem

2011-02-17 Thread Ɓukasz Czarniecki
On 17.02.2011 16:22, Mike Belopuhov wrote:

 Lukasz has tested the patch below and it works fine for him.  I don't
 have the hardware myself, so I'm not going to push it for the release,
 but if someone thinks it's worth it, please speak up.

Here are some numbers:

4.8
# time tar xzf ./sys.tar.gz
0m11.06s real 0m0.80s user 0m0.86s system
w/softdeps
0m4.97s real 0m0.68s user 0m0.58s system
Current
0m7.13s real 0m0.75s user 0m0.83s system
w/softdeps
0m3.72s real 0m0.60s user 0m0.37s system

It seems that 4.9 has a lot of improvements.
Big thanks for Mike and all developers.

Lukasz



how to set an alias on a carp interface?

2011-02-17 Thread Harald Dunkel
Hi folks,

what would be the correct way to define network aliases
on a carp interface? Currently I have the code below, but
I see some packet filter problems around route-to that
might be related to a misconfigured carp interface.

em1:
inet   172.12.96.5  255.255.252.0 NONE
inet alias 172.12.101.5 255.255.255.0 NONE
inet alias 172.12.126.5 255.255.255.0 NONE
-inet6
group internal


carp1:
inet   172.12.96.4  255.255.252.0 NONE vhid 7 pass x carpdev 
em1 advbase 1 advskew 0
inet alias 172.12.101.4 255.255.255.0 NONE
inet alias 172.12.126.4 255.255.255.0 NONE
-inet6


Do I have to add similar carpdev lines to the aliases?
Can I or should I drop the aliases on em1?

Any helpful comment would be highly appreciated.


Regards

Harri



Re: Dell R310 - H200 Raid performance problem

2011-02-17 Thread Mike Belopuhov
On Thu, Feb 10, 2011 at 14:25 +0100, Lukasz Czarniecki wrote:
 Hi
 
 I've bought a Dell R310 with H200 raid controller reported in dmesg as:
 Symbios Logic SAS2008. It uses mpii driver and has two hard drives
 configured in RAID 1.
 
 Now it seems to work fine but i still have a problem with its
 performance. Raid is fully initialized.
 
 How can I help to resolve this problem?
 
 I'm doing simple benchmark:
 wget ftp.spline.de/pub/OpenBSD/4.8/sys.tar.gz
 time tar xzf ./sys.tar.gz
 
 On the same hardware Linux unpacks it in less then two seconds.
 
 Numbers for OpenBSD:
 4.8 amd64 sp: 3m40.95s real 0m0.65s user 0m0.71s system
 4.8 amd64 mp-stable: 3m43.36s real 0m0.48s user 0m0.98s system
 4.9 amd64 sp: 3m47.72s real 0m0.51s user 0m0.69s system
 4.9 i386 rd : 3m45.11s real 0m1.03s user 0m1.19s system
 

Lukasz and me have figured out that disk write cache gets turned
off by the Dell firmware when you create a volume (it doesn't get
disabled if you use single drives):

http://support.dell.com/support/edocs/storage/storlink/h200/en/ug/html/features.htm#wp1062398

H200 doesn't have and there's no possibility to install an onboard
memory and the battery, so the device becomes pretty much useless
unless the operating system takes care of it.  Apparently Linux
does.  Should OpenBSD do the same?  In my opinion yes.

Lukasz has tested the patch below and it works fine for him.  I don't
have the hardware myself, so I'm not going to push it for the release,
but if someone thinks it's worth it, please speak up.


Index: mpii.c
===
RCS file: /home/cvs/src/sys/dev/pci/mpii.c,v
retrieving revision 1.37
diff -u -p -r1.37 mpii.c
--- mpii.c  29 Dec 2010 03:55:09 -  1.37
+++ mpii.c  17 Feb 2011 15:15:25 -
@@ -981,6 +981,52 @@ struct mpii_msg_sas_oper_reply {
u_int32_t   ioc_loginfo;
 } __packed;
 
+struct mpii_msg_raid_action_request {
+   u_int8_taction;
+#define MPII_RAID_ACTION_CHANGE_VOL_WRITE_CACHE(0x17)
+   u_int8_treserved1;
+   u_int8_tchain_offset;
+   u_int8_tfunction;
+
+   u_int16_t   vol_dev_handle;
+   u_int8_tphys_disk_num;
+   u_int8_tmsg_flags;
+
+   u_int8_tvp_id;
+   u_int8_tvf_if;
+   u_int16_t   reserved2;
+
+   u_int32_t   reserved3;
+
+   u_int32_t   action_data;
+#define MPII_RAID_VOL_WRITE_CACHE_DISABLE  (0x01)
+#define MPII_RAID_VOL_WRITE_CACHE_ENABLE   (0x02)
+
+   struct mpii_sge action_sge;
+} __packed;
+
+struct mpii_msg_raid_action_reply {
+   u_int8_taction;
+   u_int8_treserved1;
+   u_int8_tchain_offset;
+   u_int8_tfunction;
+
+   u_int16_t   vol_dev_handle;
+   u_int8_tphys_disk_num;
+   u_int8_tmsg_flags;
+
+   u_int8_tvp_id;
+   u_int8_tvf_if;
+   u_int16_t   reserved2;
+
+   u_int16_t   reserved3;
+   u_int16_t   ioc_status;
+
+   u_int32_t   action_data[5];
+
+   struct mpii_sge action_sge;
+} __packed;
+
 struct mpii_cfg_hdr {
u_int8_tpage_version;
u_int8_tpage_length;
@@ -1972,6 +2018,8 @@ int   mpii_req_cfg_page(struct mpii_softc
 
 intmpii_get_ioc_pg8(struct mpii_softc *);
 
+void   mpii_cache_enable(struct mpii_softc *);
+
 #if NBIO  0
 intmpii_ioctl(struct device *, u_long, caddr_t);
 intmpii_ioctl_inq(struct mpii_softc *, struct bioc_inq *);
@@ -2175,6 +2223,9 @@ mpii_attach(struct device *parent, struc
goto free_dev;
}
 
+   /* enable write cache */
+   mpii_cache_enable(sc);
+
/* we should be good to go now, attach scsibus */
sc-sc_link.adapter = mpii_switch;
sc-sc_link.adapter_softc = sc;
@@ -3206,6 +3257,45 @@ mpii_cfg_coalescing(struct mpii_softc *s
}
 
return (0);
+}
+
+void
+mpii_cache_enable(struct mpii_softc *sc)
+{
+   struct mpii_msg_raid_action_request *req;
+   struct mpii_device  *dev;
+   struct mpii_ccb *ccb;
+   int i;
+
+   ccb = scsi_io_get(sc-sc_iopool, 0);
+   if (ccb == NULL)
+   return;
+
+   for (i = 0; i  sc-sc_max_devices; i++) {
+   if (sc-sc_devs[i] == NULL ||
+   !ISSET(sc-sc_devs[i]-flags, MPII_DF_VOLUME))
+   continue;
+
+   dev = sc-sc_devs[i];
+
+   ccb-ccb_state = MPII_CCB_READY;
+   ccb-ccb_rcb = NULL;
+   ccb-ccb_done = mpii_empty_done;
+
+   req = ccb-ccb_cmd;
+   bzero(req, sizeof(*req));
+   req-function = MPII_FUNCTION_RAID_ACTION;
+   req-action = MPII_RAID_ACTION_CHANGE_VOL_WRITE_CACHE;
+   

Re: how to set an alias on a carp interface?

2011-02-17 Thread Henning Brauer
* Harald Dunkel harald.dun...@aixigo.de [2011-02-17 16:51]:
 Hi folks,
 
 what would be the correct way to define network aliases
 on a carp interface? Currently I have the code below, but
 I see some packet filter problems around route-to that
 might be related to a misconfigured carp interface.
 
 em1:
 inet   172.12.96.5  255.255.252.0 NONE
 inet alias 172.12.101.5 255.255.255.0 NONE
 inet alias 172.12.126.5 255.255.255.0 NONE
 -inet6
 group internal
 
 
 carp1:
 inet   172.12.96.4  255.255.252.0 NONE vhid 7 pass x carpdev 
 em1 advbase 1 advskew 0
 inet alias 172.12.101.4 255.255.255.0 NONE
 inet alias 172.12.126.4 255.255.255.0 NONE
 -inet6
 
 
 Do I have to add similar carpdev lines to the aliases?
 Can I or should I drop the aliases on em1?

your way to configure aliases is correct, however, the masks are not.
you are screwing up routing. you want an all-ones netmask on each and
every IP address except one per subnet. alas you want 255.255.255.255
on the carp if's IPs.

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



relayd dies lost child: socket relay engine terminated

2011-02-17 Thread Marian Hettwer

Hi Folks,

I'm having some trouble at work with a pair of OpenBSD 4.8's doing 
load balancing with relayd.

Pretty often, relayd dies. /var/log/syslog shows:
Feb 17 17:13:14 openlb38-2 relayd[24485]: check_child: lost child: 
socket relay engine terminated; signal 11


I'm helping myself right now with this beauty of a one-liner:

root@openlb38-2:~ # while sleep 1; do pgrep -u _relayd  /dev/null  
continue; date ; echo restarted ; relayd; done

Thu Feb 17 17:13:15 CET 2011
restarted
Thu Feb 17 17:20:47 CET 2011
restarted
Thu Feb 17 17:23:43 CET 2011
restarted

As one can see, this counts as pretty often.

this is: OpenBSD 4.8 i386

relayd started acting like that one me after I added 3 groups for ssl 
offloading.

Like that (from relayd.conf)

relay cimobilelbssl {
   listen on $cimobilelb_addr port 443 ssl
   protocol http_ssl
   forward to front38 port 80 check tcp mode loadbalance
}

relay ciebayklbssl {
   listen on $ciebayklb_addr port 443 ssl
   protocol http_ssl
   forward to front38 port 80 check tcp mode loadbalance
}

relay wikilbssl {
   listen on $wikilb_addr port 443 ssl
   protocol http_ssl
   forward to front38 port 80 check tcp mode loadbalance
}

I really love OpenBSD + carp + relayd, ... so I really like to help 
debugging this.

What datapoints do you need? Any hints?
Since relayd is failing pretty often, should I start it with ktrace 
for a closer look?

I couldn't find a core dump or anything like that after relayd fails.

Any help and pointers are highly appreciated :)

best regards,
Marian

PS.: keep me CC'd, as I'm not subscribed



USB wii RTL8188s

2011-02-17 Thread Gianluca D'Auri Muscelli
Hi ,
i have a usb wireless card RTL 8188s, 
openbsd4.8 find this card at  ugen0 at uhub0
how i can install and work with this card??
tks vvm

Gianluca D'Auri Muscelli
g...@email.it
Key ID: ED8E92C2846A
Fingerprint:  0F58 729F 279D 6B79 08F4 D33E ED8E 92C2 84AA AA6A



Re: Dell R310 - H200 Raid performance problem

2011-02-17 Thread Marco Peereboom
On Thu, Feb 17, 2011 at 04:22:54PM +0100, Mike Belopuhov wrote:
 On Thu, Feb 10, 2011 at 14:25 +0100, Lukasz Czarniecki wrote:
  Hi
  
  I've bought a Dell R310 with H200 raid controller reported in dmesg as:
  Symbios Logic SAS2008. It uses mpii driver and has two hard drives
  configured in RAID 1.
  
  Now it seems to work fine but i still have a problem with its
  performance. Raid is fully initialized.
  
  How can I help to resolve this problem?
  
  I'm doing simple benchmark:
  wget ftp.spline.de/pub/OpenBSD/4.8/sys.tar.gz
  time tar xzf ./sys.tar.gz
  
  On the same hardware Linux unpacks it in less then two seconds.
  
  Numbers for OpenBSD:
  4.8 amd64 sp: 3m40.95s real 0m0.65s user 0m0.71s system
  4.8 amd64 mp-stable: 3m43.36s real 0m0.48s user 0m0.98s system
  4.9 amd64 sp: 3m47.72s real 0m0.51s user 0m0.69s system
  4.9 i386 rd : 3m45.11s real 0m1.03s user 0m1.19s system
  
 
 Lukasz and me have figured out that disk write cache gets turned
 off by the Dell firmware when you create a volume (it doesn't get
 disabled if you use single drives):
 
 http://support.dell.com/support/edocs/storage/storlink/h200/en/ug/html/features.htm#wp1062398
 
 H200 doesn't have and there's no possibility to install an onboard
 memory and the battery, so the device becomes pretty much useless
 unless the operating system takes care of it.  Apparently Linux
 does.  Should OpenBSD do the same?  In my opinion yes.

Linux does this and we should too.  All SATA manufacturers recommend
(read recommend very very strongly and call you names when you don't
listen) enabling write cache.

 
 Lukasz has tested the patch below and it works fine for him.  I don't
 have the hardware myself, so I'm not going to push it for the release,
 but if someone thinks it's worth it, please speak up.

I am ok with this making release and think it should.  I did not realize
WB was being disabled.

 
 
 Index: mpii.c
 ===
 RCS file: /home/cvs/src/sys/dev/pci/mpii.c,v
 retrieving revision 1.37
 diff -u -p -r1.37 mpii.c
 --- mpii.c29 Dec 2010 03:55:09 -  1.37
 +++ mpii.c17 Feb 2011 15:15:25 -
 @@ -981,6 +981,52 @@ struct mpii_msg_sas_oper_reply {
   u_int32_t   ioc_loginfo;
  } __packed;
  
 +struct mpii_msg_raid_action_request {
 + u_int8_taction;
 +#define MPII_RAID_ACTION_CHANGE_VOL_WRITE_CACHE  (0x17)
 + u_int8_treserved1;
 + u_int8_tchain_offset;
 + u_int8_tfunction;
 +
 + u_int16_t   vol_dev_handle;
 + u_int8_tphys_disk_num;
 + u_int8_tmsg_flags;
 +
 + u_int8_tvp_id;
 + u_int8_tvf_if;
 + u_int16_t   reserved2;
 +
 + u_int32_t   reserved3;
 +
 + u_int32_t   action_data;
 +#define MPII_RAID_VOL_WRITE_CACHE_DISABLE(0x01)
 +#define MPII_RAID_VOL_WRITE_CACHE_ENABLE (0x02)
 +
 + struct mpii_sge action_sge;
 +} __packed;
 +
 +struct mpii_msg_raid_action_reply {
 + u_int8_taction;
 + u_int8_treserved1;
 + u_int8_tchain_offset;
 + u_int8_tfunction;
 +
 + u_int16_t   vol_dev_handle;
 + u_int8_tphys_disk_num;
 + u_int8_tmsg_flags;
 +
 + u_int8_tvp_id;
 + u_int8_tvf_if;
 + u_int16_t   reserved2;
 +
 + u_int16_t   reserved3;
 + u_int16_t   ioc_status;
 +
 + u_int32_t   action_data[5];
 +
 + struct mpii_sge action_sge;
 +} __packed;
 +
  struct mpii_cfg_hdr {
   u_int8_tpage_version;
   u_int8_tpage_length;
 @@ -1972,6 +2018,8 @@ int mpii_req_cfg_page(struct mpii_softc
  
  int  mpii_get_ioc_pg8(struct mpii_softc *);
  
 +void mpii_cache_enable(struct mpii_softc *);
 +
  #if NBIO  0
  int  mpii_ioctl(struct device *, u_long, caddr_t);
  int  mpii_ioctl_inq(struct mpii_softc *, struct bioc_inq *);
 @@ -2175,6 +2223,9 @@ mpii_attach(struct device *parent, struc
   goto free_dev;
   }
  
 + /* enable write cache */
 + mpii_cache_enable(sc);
 +
   /* we should be good to go now, attach scsibus */
   sc-sc_link.adapter = mpii_switch;
   sc-sc_link.adapter_softc = sc;
 @@ -3206,6 +3257,45 @@ mpii_cfg_coalescing(struct mpii_softc *s
   }
  
   return (0);
 +}
 +
 +void
 +mpii_cache_enable(struct mpii_softc *sc)
 +{
 + struct mpii_msg_raid_action_request *req;
 + struct mpii_device  *dev;
 + struct mpii_ccb *ccb;
 + int i;
 +
 + ccb = scsi_io_get(sc-sc_iopool, 0);
 + if (ccb == NULL)
 + return;
 +
 + for (i = 0; i  sc-sc_max_devices; i++) {
 + if (sc-sc_devs[i] == NULL ||
 + !ISSET(sc-sc_devs[i]-flags, MPII_DF_VOLUME))
 + continue;
 +
 + dev = sc-sc_devs[i];
 +
 +

Re: USB wii RTL8188s

2011-02-17 Thread Henning Brauer
* Gianluca D'Auri Muscelli g...@email.it [2011-02-17 18:59]:
 i have a usb wireless card RTL 8188s, 
 openbsd4.8 find this card at  ugen0 at uhub0
 how i can install and work with this card??

while this is incomplete information, tho chances are -current (which
is very close to 4.9-release, so best time to test it!) will just
work.

rsu (4) - Realtek RTL8188SU/RTL8192SU USB IEEE 802.11b/g/n wireless network 
device
urtwn (4) - Realtek RTL8188CU/RTL8192CU USB IEEE 802.11b/g/n wireless network 
device

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



Re: Tracking What it's changing in current

2011-02-17 Thread Dan Brosemer
Am I missing something, or is this what you're looking for?
http://cleannorth.org/lists/archive/cvs/2011-02/msg00022.html

If so, it's generated by:
http://search.cpan.org/dist/activitymail/bin/activitymail

-Dan

On Thu, Feb 17, 2011 at 09:01:20AM -0600, Marco Peereboom wrote:
 Right, but that is the holy grail because now you'd have change sets.
 
 I'll pay prize money for that ;-)
 
 On Thu, Feb 17, 2011 at 06:13:32AM -0800, patrick keshishian wrote:
  On Thu, Feb 17, 2011 at 6:05 AM, Christiano F. Haesbaert
  haesba...@haesbaert.org wrote:
   On 16 February 2011 22:21, Marco Peereboom sl...@peereboom.us wrote:
   Is it possible to catch the entire commit and have that diff generated?
  
  
   I'm a little late at this thread but yes, we do that here in work.
   Don't have access to the scripts though :(
  
  he means a commit that touches files in multiple directory locations
  throughout a source tree. I'm not sure if this is possible so easily.
  
  --patrick



connecting ubt0 to a wireless audio

2011-02-17 Thread Bryan
I have an MW600 from Sony Ericsson, that I can pair to my Droid, and
the passcode is .  I recently picked up a SparkLAN WPEA-111N
which attaches to ral(4) and ubt(4):


ral0 at pci2 dev 0 function 0 Ralink RT3090 rev 0x00: apic 2 int 17
(irq 3), address 00:0e:8e:34:2e:7b
ral0: MAC/BBP RT3090 (rev 0x3213), RF RT3020 (MIMO 1T1R)

ubt0 at uhub7 port 1 AsureWave product 0x3314 rev 2.00/52.76 addr 2
bthub0 at ubt0 74:f0:6d:b6:62:43

After following these this:

http://marc.info/?l=openbsd-miscm=124085846000680

I added the BT addr to the /etc/bluetooth/hosts

$ btconfig
ubt0: bdaddr 74:f0:6d:b6:62:43
 flags=3UP,RUNNING
brakeb@obsd-amd64 ~
$ btconfig ubt0 inquiry
Device Discovery from device: ubt0 .. 1 response

  1: bdaddr 40:2b:a1:61:2d:dc (MW600)
   : name MW600
   : class: [0x240404] Wearable Headset Rendering Audio
   : page scan rep mode 0x01
   : clock offset 9261
   : rssi -53

At this point, I am not sure what is left to do.  I added the PIN:

/usr/local/bin/btpin -d ubt0 -a mouse -p 

And then ran btdevctl

# btdevctl -d ubt0 -a MW600 -s HSET
Performing SDP query for service 'HSET'..
local bdaddr: 74:f0:6d:b6:62:43
remote bdaddr: 40:2b:a1:61:2d:dc
link mode: none
device type: HSET
mode: connect
channel: 1
mtu: 0

and then ran:

btdevctl -d ubt0 -a MW600 -s HSET -A

but I get:

# btdevctl -d ubt0 -a MW600 -s HSET -v -A
Performing SDP query for service 'HSET'..
local bdaddr: 74:f0:6d:b6:62:43
remote bdaddr: 40:2b:a1:61:2d:dc
link mode: none
device type: HSET
mode: connect
channel: 1
mtu: 0
btdevctl: /dev/bthub0: Address already in use


Has anyone been able to connect something like this?  I'd love to be
able to run around in my office and not rip my ear buds out of my ear
when I walk away...

dmesg:

OpenBSD 4.9 (GENERIC.MP) #57: Wed Feb 16 23:02:26 CST 2011
r...@obsd-amd64.my.domain:/usr/src/sys/arch/amd64/compile/GENERIC.MP
real mem = 3707031552 (3535MB)
avail mem = 3594334208 (3427MB)
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.4 @ 0xf6530 (57 entries)
bios0: vendor Dell Inc. version A24 date 08/19/2010
bios0: Dell Inc. Latitude E6500
acpi0 at bios0: rev 2
acpi0: sleep states S0 S3 S4 S5
acpi0: tables DSDT FACP HPET DMAR APIC ASF! MCFG SLIC SSDT
acpi0: wakeup devices PCI0(S4) PCIE(S4) USB1(S0) USB2(S0) USB3(S0)
USB4(S0) USB5(S0) USB6(S0) EHC2(S0) EHCI(S0) AZAL(S3) RP01(S4)
RP02(S4) RP03(S4) RP04(S3) RP05(S3) RP06(S5) LID_(S3) PBTN(S4)
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) Core(TM)2 Duo CPU P8800 @ 2.66GHz, 2660.40 MHz
cpu0: 
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,SSE3,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,SSE4.1,XSAVE,NXE,LONG
cpu0: 3MB 64b/line 8-way L2 cache
cpu0: apic clock running at 266MHz
cpu1 at mainbus0: apid 1 (application processor)
cpu1: Intel(R) Core(TM)2 Duo CPU P8800 @ 2.66GHz, 2660.00 MHz
cpu1: 
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,SSE3,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,SSE4.1,XSAVE,NXE,LONG
cpu1: 3MB 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
acpimcfg0 at acpi0 addr 0xf800, bus 0-63
acpiprt0 at acpi0: bus 3 (PCIE)
acpiprt1 at acpi0: bus -1 (AGP_)
acpiprt2 at acpi0: bus 11 (RP01)
acpiprt3 at acpi0: bus 12 (RP02)
acpiprt4 at acpi0: bus 13 (RP03)
acpiprt5 at acpi0: bus 14 (RP04)
acpiprt6 at acpi0: bus -1 (RP05)
acpiprt7 at acpi0: bus -1 (RP06)
acpiprt8 at acpi0: bus 0 (PCI0)
acpiec0 at acpi0
acpicpu0 at acpi0: C3, C2, C1, PSS
acpicpu1 at acpi0: C3, C2, C1, PSS
acpitz0 at acpi0: critical temperature 107 degC
acpibtn0 at acpi0: LID_
acpibtn1 at acpi0: PBTN
acpibtn2 at acpi0: SBTN
acpiac0 at acpi0: AC unit offline
acpibat0 at acpi0: BAT0 model DELL KY26603 serial 5171 type LION oem Sanyo
acpibat1 at acpi0: BAT1 not present
acpivideo0 at acpi0: VID_
acpivideo1 at acpi0: VID_acpivout0 at acpivideo1: CRT_
acpivout1 at acpivideo1: LCD_
acpivout2 at acpivideo1: DP__
acpivout3 at acpivideo1: DP2_
acpivout4 at acpivideo1: DVI_
acpivout5 at acpivideo1: DVI2
acpivideo2 at acpi0: VID2
cpu0: Enhanced SpeedStep 2660 MHz: speeds: 2668, 2667, 2134, 1600, 800 MHz
pci0 at mainbus0 bus 0
pchb0 at pci0 dev 0 function 0 Intel GM45 Host rev 0x07
vga1 at pci0 dev 2 function 0 Intel GM45 Video rev 0x07
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
intagp0 at vga1
agp0 at intagp0: aperture at 0xe000, size 0x1000
inteldrm0 at vga1: apic 2 int 16 (irq 11)
drm0 at inteldrm0
Intel GM45 Video rev 0x07 at pci0 dev 2 function 1 not configured
em0 at pci0 dev 25 function 0 Intel ICH9 IGP M AMT rev 0x03: apic 2
int 22 (irq 10), address 00:2
6:b9:c5:4b:48
uhci0 at pci0 dev 26 function 0 Intel 82801I USB 

Important bge(4) diff to test!

2011-02-17 Thread Robert Nagy
Hello,

The following diff is really important because on some machines
bge(4) gets detached because of ASPM. The following diff is also
in the latest snapshots but you can also compile a kernel with it.
So if you have a bge(4) please update/compile a kernel and get
back to me if it works or fails in some way.

Thank you!

Index: if_bge.c
===
RCS file: /cvs/src/sys/dev/pci/if_bge.c,v
retrieving revision 1.303
diff -u -r1.303 if_bge.c
--- if_bge.c20 Sep 2010 07:40:38 -  1.303
+++ if_bge.c15 Feb 2011 09:02:07 -
@@ -1794,7 +1794,7 @@
struct pci_attach_args  *pa = aux;
pci_chipset_tag_t   pc = pa-pa_pc;
const struct bge_revision *br;
-   pcireg_tpm_ctl, memtype, subid;
+   pcireg_tpm_ctl, memtype, subid, reg;
pci_intr_handle_t   ih;
const char  *intrstr = NULL;
bus_size_t  size;
@@ -1885,7 +1885,13 @@
 * PCI Express or PCI-X controller check.
 */
if (pci_get_capability(pa-pa_pc, pa-pa_tag, PCI_CAP_PCIEXPRESS,
-   NULL, NULL) != 0) {
+   sc-bge_aspm_off, NULL) != 0) {
+   /* Disable PCIe Active State Power Management (ASPM). */
+   reg = pci_conf_read(pa-pa_pc, pa-pa_tag,
+   sc-bge_aspm_off + PCI_PCIE_LCSR);
+   reg = ~(PCI_PCIE_LCSR_ASPM_L0S | PCI_PCIE_LCSR_ASPM_L1);
+   pci_conf_write(pa-pa_pc, pa-pa_tag,
+   sc-bge_aspm_off + PCI_PCIE_LCSR, reg);
sc-bge_flags |= BGE_PCIE;
} else {
if ((pci_conf_read(pa-pa_pc, pa-pa_tag, BGE_PCI_PCISTATE) 
Index: if_bgereg.h
===
RCS file: /cvs/src/sys/dev/pci/if_bgereg.h,v
retrieving revision 1.103
diff -u -r1.103 if_bgereg.h
--- if_bgereg.h 20 Sep 2010 07:40:38 -  1.103
+++ if_bgereg.h 15 Feb 2011 09:02:07 -
@@ -2610,6 +2610,7 @@
 #define BGE_5714_FAMILY0x0100
 #define BGE_5700_FAMILY0x0200
 
+   int bge_aspm_off;
bus_dma_tag_t   bge_dmatag;
u_int32_t   bge_chipid;
struct bge_ring_data*bge_rdata; /* rings */



Re: Tracking What it's changing in current

2011-02-17 Thread Marco Peereboom
Yeah that is exactly what I'd want!

On Thu, Feb 17, 2011 at 04:42:15PM -0200, Christiano F. Haesbaert wrote:
 On 17 February 2011 12:13, patrick keshishian pkesh...@gmail.com wrote:
  On Thu, Feb 17, 2011 at 6:05 AM, Christiano F. Haesbaert
  haesba...@haesbaert.org wrote:
  On 16 February 2011 22:21, Marco Peereboom sl...@peereboom.us wrote:
  Is it possible to catch the entire commit and have that diff generated?
 
 
  I'm a little late at this thread but yes, we do that here in work.
  Don't have access to the scripts though :(
 
  he means a commit that touches files in multiple directory locations
  throughout a source tree. I'm not sure if this is possible so easily.
 
 
 Yep, we have that, the guy who manages that here is on holidays, when
 he comes back I'll see if I can get it.
 
 Module: 
 
 Log Message:
 foo bar
 
 Files:
 //PC.h : 1.48 - 1.49
 //apps/Y : 1.2 - 1.3
 
 -- follows both diffs --
 
 Is that it ?



Re: connecting ubt0 to a wireless audio

2011-02-17 Thread Bryan
On Thu, Feb 17, 2011 at 11:37, Bryan bra...@gmail.com wrote:
 I have an MW600 from Sony Ericsson, that I can pair to my Droid, and
 the passcode is . B I recently picked up a SparkLAN WPEA-111N
 which attaches to ral(4) and ubt(4):


Well hell, now all I'm getting is kernel panics when I run btconfig ubt0 up

Trace:  (sorry about the pics, trying to get a pic without a big white
spot in the middle was difficult)

https://picasaweb.google.com/lh/photo/0yKxojKmEV9D1dAagSjvUROK7QTsO1pAa7ZYbjM
kzoc?feat=directlink
https://picasaweb.google.com/lh/photo/18pGUXQNVwlzBA3C5OnRxROK7QTsO1pAa7ZYbjM
kzoc?feat=directlink

PS:

https://picasaweb.google.com/lh/photo/7De2m0Z3Z6zS2HU9iQ3NxxOK7QTsO1pAa7ZYbjM
kzoc?feat=directlink
https://picasaweb.google.com/lh/photo/7IX6Q5k9GRO9Vl42BcbpVxOK7QTsO1pAa7ZYbjM
kzoc?feat=directlink

dmesg:

OpenBSD 4.9 (GENERIC.MP) #57: Wed Feb 16 23:02:26 CST 2011
   r...@obsd-amd64.my.domain:/usr/src/sys/arch/amd64/compile/GENERIC.MP
real mem = 3707031552 (3535MB)
avail mem = 3594334208 (3427MB)
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.4 @ 0xf6530 (57 entries)
bios0: vendor Dell Inc. version A24 date 08/19/2010
bios0: Dell Inc. Latitude E6500
acpi0 at bios0: rev 2
acpi0: sleep states S0 S3 S4 S5
acpi0: tables DSDT FACP HPET DMAR APIC ASF! MCFG SLIC SSDT
acpi0: wakeup devices PCI0(S4) PCIE(S4) USB1(S0) USB2(S0) USB3(S0)
USB4(S0) USB5(S0) USB6(S0) EHC2(S0) EHCI(S0) AZAL(S3) RP01(S4)
RP02(S4) RP03(S4) RP04(S3) RP05(S3) RP06(S5) LID_(S3) PBTN(S4)
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) Core(TM)2 Duo CPU P8800 @ 2.66GHz, 2660.40 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,SSE3,MWAIT,DS-CPL,VMX,SMX,EST,TM2,S
SSE3,CX16,xTPR,PDCM,SSE4.1,XSAVE,NXE,LONG
cpu0: 3MB 64b/line 8-way L2 cache
cpu0: apic clock running at 266MHz
cpu1 at mainbus0: apid 1 (application processor)
cpu1: Intel(R) Core(TM)2 Duo CPU P8800 @ 2.66GHz, 2660.00 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,SSE3,MWAIT,DS-CPL,VMX,SMX,EST,TM2,S
SSE3,CX16,xTPR,PDCM,SSE4.1,XSAVE,NXE,LONG
cpu1: 3MB 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
acpimcfg0 at acpi0 addr 0xf800, bus 0-63
acpiprt0 at acpi0: bus 3 (PCIE)
acpiprt1 at acpi0: bus -1 (AGP_)
acpiprt2 at acpi0: bus 11 (RP01)
acpiprt3 at acpi0: bus 12 (RP02)
acpiprt4 at acpi0: bus 13 (RP03)
acpiprt5 at acpi0: bus 14 (RP04)
acpiprt6 at acpi0: bus -1 (RP05)
acpiprt7 at acpi0: bus -1 (RP06)
acpiprt8 at acpi0: bus 0 (PCI0)
acpiec0 at acpi0
acpicpu0 at acpi0: C3, C2, C1, PSS
acpicpu1 at acpi0: C3, C2, C1, PSS
acpitz0 at acpi0: critical temperature 107 degC
acpibtn0 at acpi0: LID_
acpibtn1 at acpi0: PBTN
acpibtn2 at acpi0: SBTN
acpiac0 at acpi0: AC unit offline
acpibat0 at acpi0: BAT0 model DELL KY26603 serial 5171 type LION oem
Sanyo
acpibat1 at acpi0: BAT1 not present
acpivideo0 at acpi0: VID_
acpivideo1 at acpi0: VID_acpivout0 at acpivideo1: CRT_
acpivout1 at acpivideo1: LCD_
acpivout2 at acpivideo1: DP__
acpivout3 at acpivideo1: DP2_
acpivout4 at acpivideo1: DVI_
acpivout5 at acpivideo1: DVI2
acpivideo2 at acpi0: VID2
cpu0: Enhanced SpeedStep 2660 MHz: speeds: 2668, 2667, 2134, 1600, 800 MHz
pci0 at mainbus0 bus 0
pchb0 at pci0 dev 0 function 0 Intel GM45 Host rev 0x07
vga1 at pci0 dev 2 function 0 Intel GM45 Video rev 0x07
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
intagp0 at vga1
agp0 at intagp0: aperture at 0xe000, size 0x1000
inteldrm0 at vga1: apic 2 int 16 (irq 11)
drm0 at inteldrm0
Intel GM45 Video rev 0x07 at pci0 dev 2 function 1 not configured
em0 at pci0 dev 25 function 0 Intel ICH9 IGP M AMT rev 0x03: apic 2
int 22 (irq 10), address 00:2
6:b9:c5:4b:48
uhci0 at pci0 dev 26 function 0 Intel 82801I USB rev 0x03: apic 2
int 20 (irq 7)
uhci1 at pci0 dev 26 function 1 Intel 82801I USB rev 0x03: apic 2
int 21 (irq 4)
uhci2 at pci0 dev 26 function 2 Intel 82801I USB rev 0x03: apic 2
int 22 (irq 10)
ehci0 at pci0 dev 26 function 7 Intel 82801I USB rev 0x03: apic 2
int 22 (irq 10)
usb0 at ehci0: USB revision 2.0
uhub0 at usb0 Intel EHCI root hub rev 2.00/1.00 addr 1
azalia0 at pci0 dev 27 function 0 Intel 82801I HD Audio rev 0x03:
apic 2 int 21 (irq 4)
azalia0: codecs: IDT 92HD71B7, Intel/0x2802, using IDT 92HD71B7
audio0 at azalia0
ppb0 at pci0 dev 28 function 0 Intel 82801I PCIE rev 0x03: apic 2
int 16 (irq 0)
pci1 at ppb0 bus 11
ppb1 at pci0 dev 28 function 1 Intel 82801I PCIE rev 0x03: apic 2
int 17 (irq 0)
pci2 at ppb1 bus 12
ral0 at pci2 dev 0 function 0 Ralink RT3090 rev 0x00: apic 2 int 17
(irq 3), address 00:0e:8e:34:
2e:7b
ral0: MAC/BBP RT3090 (rev 0x3213), RF RT3020 (MIMO 1T1R)ppb2 at pci0

Re: connecting ubt0 to a wireless audio

2011-02-17 Thread Henning Brauer
* Bryan bra...@gmail.com [2011-02-17 20:39]:
 On Thu, Feb 17, 2011 at 11:37, Bryan bra...@gmail.com wrote:
  I have an MW600 from Sony Ericsson, that I can pair to my Droid, and
  the passcode is . B I recently picked up a SparkLAN WPEA-111N
  which attaches to ral(4) and ubt(4):
 Well hell, now all I'm getting is kernel panics when I run btconfig ubt0 up

bt is badly broken and stays that way until someone cares enough to
fix it.

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



Re: Tracking What it's changing in current

2011-02-17 Thread Christiano F. Haesbaert
On 17 February 2011 16:45, Marco Peereboom sl...@peereboom.us wrote:
 Yeah that is exactly what I'd want!



I did some quick digging, it seems we use this stuff:

http://www.infodrom.org/Infodrom/tools/cvs-mailcommit.html



Re: Tracking What it's changing in current

2011-02-17 Thread Christiano F. Haesbaert
On 17 February 2011 12:13, patrick keshishian pkesh...@gmail.com wrote:
 On Thu, Feb 17, 2011 at 6:05 AM, Christiano F. Haesbaert
 haesba...@haesbaert.org wrote:
 On 16 February 2011 22:21, Marco Peereboom sl...@peereboom.us wrote:
 Is it possible to catch the entire commit and have that diff generated?


 I'm a little late at this thread but yes, we do that here in work.
 Don't have access to the scripts though :(

 he means a commit that touches files in multiple directory locations
 throughout a source tree. I'm not sure if this is possible so easily.


Yep, we have that, the guy who manages that here is on holidays, when
he comes back I'll see if I can get it.

Module: 

Log Message:
foo bar

Files:
//PC.h : 1.48 - 1.49
//apps/Y : 1.2 - 1.3

-- follows both diffs --

Is that it ?



Apple Wireless Keyboard Re: bluetooth keyboard on -current

2011-02-17 Thread Stanley Lieber
Replying to a very old message. Has anyone else tried the Apple
Wireless Keyboard? When I attempted to reproduce the steps below
my system froze on the first btconfig.

Old misc@ message followed by my dmesg, below.

-sl


 On Sun, May 25, 2008 at 3:45 PM, John Alan Shirley alastvvr@...
 wrote:
 
 Hi misc@,

 An Apple Wireless Keyboard has come into my possession, and i'm trying to
 get it working on -current.

 I rebuilt the kernel/userland based on cvs update on Friday with all the
 bluetooth devices enabled.

 I also installed bluetooth-tools and bluetooth-libs ports.

 Initially my bt dongle was claimed by aue*, so i desabled this using config
 -e and rebooted; it is correctly claimed by ubt*.

 Below are the steps i've taken to configure the keyboard, followed by a
 dmesg.

 I am able to query ubt0 and get the address of the keyboard, generate the
 pin to pair with it, and send sdp messages.
 However I'm never prompted to enter the pin on the keyboard, i.e. when i
 btdevctl it, which i understood was necessary, and when i issue the final
 command to attach,
 the btkbd is attached to bthidev0 and ubt0, then to wskbd, but ultimately
 bthidev0 is disconnecting, and the keyboard doesn't work...

 I've tried google, archives, and perusing the source of all the bt drivers
 but can't figure out why it's disconnecting,
 any ideas/advice/solutions would be appreciated.

 Cheers,

 John Shirley.

 #sdpd
 #pgrep sdpd
 = 17600

 #bthcid
 #pgrep bthcid
 =15662

 #btconfig ubt0 up pscan switch class 0x02010c
 #btconfig -v
 =ubt0: bdaddr 00:0a:3a:7c:9f:86 flags=3UP,RUNNING
num_cmd = 1
num_acl = 5, acl_mtu = 1017
num_sco = 0, sco_mtu = 64

 #btconfig ubt0 inquiry
 =Device Discovery from device: ubt0  1 response
  1: bdaddr 00:1e:52:6e:12:15
   : name Apple Wireless Keyboard
   : class: [0x002540] Peripheral Keyboard Limited Discoverable
   : page scan rep mode 0x01
   : clock offset 32614

 #btpin -d ubt0 -a 00:1e:52:6e:12:15 -r
 =PIN: 2339

 #btdevctl -a 00:1e:52:6e:12:15 -d ubt0 -s hid -qv
 =Performing SDP query for service 'HID'..
  local bdaddr: 00:0a:3a:7c:9f:86
  remote bdaddr: 00:1e:52:6e:12:15
  link mode: encrypt
  device type: HID
  control psm: 0x0011
  interrupt psm: 0x0013
  Collection page=Generic_Desktop usage=Keyboard
Input id=1 size=1 count=1 page=Keyboard usage=Keyboard_LeftControl
 Variable, logical range 0..1
Input id=1 size=1 count=1 page=Keyboard usage=Keyboard_LeftShift
 Variable, logical range 0..1
Input id=1 size=1 count=1 page=Keyboard usage=Keyboard_LeftAlt Variable,
 logical range 0..1
Input id=1 size=1 count=1 page=Keyboard usage=Keyboard_Left_GUI
 Variable, logical range 0..1
Input id=1 size=1 count=1 page=Keyboard usage=Keyboard_RightControl
 Variable, logical range 0..1
Input id=1 size=1 count=1 page=Keyboard usage=Keyboard_RightShift
 Variable, logical range 0..1
Input id=1 size=1 count=1 page=Keyboard usage=Keyboard_RightAlt
 Variable, logical range 0..1
Input id=1 size=1 count=1 page=Keyboard usage=Keyboard_Right_GUI
 Variable, logical range 0..1
Input id=1 size=8 count=1 page=0x usage=0x Const, logical range
 0..1
   Output id=1 size=1 count=1 page=LEDs usage=Num_Lock Variable, logical
 range 0..1
   Output id=1 size=1 count=1 page=LEDs usage=Caps_Lock Variable, logical
 range 0..1
   Output id=1 size=1 count=1 page=LEDs usage=Scroll_Lock Variable, logical
 range 0..1
   Output id=1 size=1 count=1 page=LEDs usage=Compose Variable, logical
 range 0..1
   Output id=1 size=1 count=1 page=LEDs usage=Kana Variable, logical range
 0..1
   Output id=1 size=3 count=1 page=0x usage=0x Const, logical range
 0..1
Input id=1 size=8 count=6 page=Keyboard usage=No_Event, logical range
 0..255
  End collection
  Collection page=Consumer usage=Consumer_Control
  Collection page=Generic_Desktop usage=Keyboard
Input id=71 size=8 count=1 page=0x0006 usage=0x0020 Variable, logical
 range 0..255
  End collection
  End collection
Input id=17 size=1 count=3 page=0x usage=0x Const, logical range
 0..1
  Collection page=Consumer usage=Consumer_Control
Input id=17 size=1 count=1 page=Consumer usage=Eject Variable, logical
 range 0..1
Input id=17 size=0 count=1 page=0x00ff usage=0x0003 Variable, logical
 range 0..1
Input id=17 size=1 count=3 page=0x usage=0x Const, logical range
 0..1
Input id=18 size=1 count=1 page=Consumer usage=Pause/Play Variable,
 logical range 0..1
Input id=18 size=0 count=1 page=Consumer usage=Fast_Forward Variable,
 logical range 0..1
Input id=18 size=0 count=1 page=Consumer usage=Rewind Variable, logical
 range 0..1
Input id=18 size=0 count=1 page=Consumer usage=Scan_Next_Track Variable,
 logical range 0..1
Input id=18 size=0 count=1 page=Consumer usage=Scan_Previous_Track
 Variable, logical range 0..1
Input id=18 size=0 count=1 page=0x usage=0x Const, logical range
 0..1
Input id=18 size=0 count=1 page=0x usage=0x 

Re: Tracking What it's changing in current

2011-02-17 Thread Andres Perera
On Thu, Feb 17, 2011 at 2:05 PM, Dan Brosemer o...@svartalfheim.net wrote:
 On Thu, Feb 17, 2011 at 09:01:20AM -0600, Marco Peereboom wrote:
 Right, but that is the holy grail because now you'd have change sets.
 On Thu, Feb 17, 2011 at 06:13:32AM -0800, patrick keshishian wrote:
  On Thu, Feb 17, 2011 at 6:05 AM, Christiano F. Haesbaert
  haesba...@haesbaert.org wrote:
   On 16 February 2011 22:21, Marco Peereboom sl...@peereboom.us wrote:
   Is it possible to catch the entire commit and have that diff generated?
  
  
   I'm a little late at this thread but yes, we do that here in work.
   Don't have access to the scripts though :(
 
  he means a commit that touches files in multiple directory locations
  throughout a source tree. I'm not sure if this is possible so easily.
 
  --patrick

 I'll pay prize money for that ;-)

 Am I missing something, or is this what you're looking for?
 http://cleannorth.org/lists/archive/cvs/2011-02/msg00022.html

 If so, it's generated by:
 http://search.cpan.org/dist/activitymail/bin/activitymail

looking at their gitrepo:
https://github.com/theory/activitymail/blob/master/bin/activitymail

it parses stdin to determine which is the last dir modified in the commit,
copying each invocation to a tmpfile before concat/sending them

it works but i don't like the fact that it's working around cvs



Re: how to set an alias on a carp interface?

2011-02-17 Thread Harald Dunkel
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi Henning,

On 02/17/11 17:37, Henning Brauer wrote:
 
 your way to configure aliases is correct, however, the masks are not.
 you are screwing up routing. you want an all-ones netmask on each and
 every IP address except one per subnet. alas you want 255.255.255.255
 on the carp if's IPs.
 

That explains alot. A screwed up routing is exactly what
I see on my gateway. But I am not sure that I got you
correctly (most likely due to my poor English skills).


How about this?

em1:
inet   172.12.96.5  255.255.252.0 NONE
inet alias 172.12.101.5 255.255.255.0 NONE
inet alias 172.12.126.5 255.255.255.0 NONE
- -inet6
group internal


carp1:
inet   172.12.96.4  255.255.252.255 NONE vhid 7 pass x carpdev 
em1 advbase 1 advskew 0
inet alias 172.12.101.4 255.255.255.255 NONE
inet alias 172.12.126.4 255.255.255.255 NONE
- -inet6


Please note that I would like to have 172.12.96.0/22,
but 172.12.101.0/24 and 172.12.126.0/24.


Many thanx

Harri
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk1dlDQACgkQUTlbRTxpHjexoQCfRId0QO9hyZeuKzG9ctL2TOOJ
8KEAoJFzpMH77KbufyHLFiPzoZVyUZy+
=FpTY
-END PGP SIGNATURE-



Re: Apple Wireless Keyboard Re: bluetooth keyboard on -current

2011-02-17 Thread Ted Unangst
On Fri, Feb 18, 2011 at 9:46 AM, Stanley Lieber
stanley.lie...@gmail.com wrote:
 Replying to a very old message. Has anyone else tried the Apple
 Wireless Keyboard? When I attempted to reproduce the steps below
 my system froze on the first btconfig.

bt is badly broken and stays that way until someone cares enough to
fix it.



Re: How to host multiple PHP versions

2011-02-17 Thread Matthew Weigel

On Thu, 17 Feb 2011 05:33:01 +0800, Tito Mari Francis EscaCB1o wrote:

Good day.
I need to setup a development web server that should host both 
PHP5.2.x and
PHP5.3.x. Our goal is to maintain PHP5.2-based application versions 
while
having room for growth to have ready environment for PHP5.3 web 
development.

Can anybody please give me pointers on how this can be done?
One idea I have is to have both multiple web servers in one box like
built-in Apache 1.3 and Apache 2 with PHP5.2.x and PHP5.3.x 
respectively
each with individual virtual host configuration but it's quite 
complex,

hoping somebody could advise me on this.


I think you would be better off investigating FastCGI (and php-fastcgi) 
with
each version of PHP living in a separate chroot and communicating to 
the web

server over TCP (rather than Unix domain sockets).

I suggest the chroots so that you can better control what libraries, 
etc., get
pulled in by each version, but it may not be necessary.  The more 
important point
is using FastCGI so that Apache itself doesn't have to have PHP loaded, 
and is therefore

not restricted to a single version that it's running.
--
 Matthew Weigel
 hacker
 unique  idempot . ent



Re: how to set an alias on a carp interface?

2011-02-17 Thread Daniel Ouellet

On 2/17/11 4:33 PM, Harald Dunkel wrote:


your way to configure aliases is correct, however, the masks are not.
you are screwing up routing. you want an all-ones netmask on each and
every IP address except one per subnet. alas you want 255.255.255.255
on the carp if's IPs.



That explains alot. A screwed up routing is exactly what
I see on my gateway. But I am not sure that I got you
correctly (most likely due to my poor English skills).


How about this?

em1:
inet   172.12.96.5  255.255.252.0 NONE
inet alias 172.12.101.5 255.255.255.0 NONE
inet alias 172.12.126.5 255.255.255.0 NONE


Look at the example in the man page where you would actually configure 
what you are asking.


man (5) hostname.if

  inet alias 10.0.1.13 255.255.255.255 10.0.1.13
  inet alias 10.0.1.14 255.255.255.255 NONE
  inet alias 10.0.1.15 255.255.255.255

Even if they are in the same subnet, they are ALL enter as single IP's.

Think about it that way may be.

You want an alias IP's, not an alias subnet, so how do you enter a 
single IP? With a /32 subnet.


Hope this help you some.

Best,

Daniel



Re: netword's wireless security settings - how to determine

2011-02-17 Thread Dmitrij D. Czarkoff
On Thu, Feb 17, 2011 at 11:46:05AM +, Stuart Henderson wrote:
 Perhaps we think that the AP supports wpa2 but it is actually broken
 and only wpa1 works.

We shouldn't as far as wpaprotos defaults to wpa1,wpa2, so wpa2 shouldn't be
tested if wpa1 succeeds.

-- 
Dmitrij D. Czarkoff

P.S.: is it possible that the single network uses both WPA1 and WPA2?



Re: USB wii RTL8188s

2011-02-17 Thread Gianluca D'Auri Muscelli
On Thu, 17 Feb 2011 19:29:54 +0100
Henning Brauer lists-open...@bsws.de wrote:

 * Gianluca D'Auri Muscelli g...@email.it [2011-02-17 18:59]:
  i have a usb wireless card RTL 8188s,
  openbsd4.8 find this card at  ugen0 at uhub0
  how i can install and work with this card??

 while this is incomplete information, tho chances are -current (which
 is very close to 4.9-release, so best time to test it!) will just
 work.

 rsu (4) - Realtek RTL8188SU/RTL8192SU USB IEEE 802.11b/g/n wireless
 network device urtwn (4) - Realtek RTL8188CU/RTL8192CU USB IEEE
 802.11b/g/n wireless network device


Hi,
i'v upgrade my box to openbsd 4.9 and now i look my card at rsu0
but now i look this message on console when i get up rsu0:
rsu0:failed loadfirmware of file rsu-rtl18712fw (error 2)..

tks vvm
--
Gianluca D'Auri Muscelli
g...@email.it
Fingerprint: 3A277FACD60A3D33388BC371F4548B69078A9A04

, ,
 ,(   ).
 | \,--_ / |
 /_  _  `  /
/-.,-.`\
| |   \ \
   _\O|O  | |
  (___)`--'_/
   `.__/`  /
 `.__,   ,/
/\
  .   ,___/ __   \
  |)))==) \) /=
  '   `--' `.__,' |   _
  ||  / \
   \ _ /`-' \/
   ,` \   /
   \_,-'  \
 \/

[demime 1.01d removed an attachment of type application/pgp-signature which had 
a name of signature.asc]



Re: USB wii RTL8188s

2011-02-17 Thread Ted Unangst
On Thu, Feb 17, 2011 at 7:09 PM, Gianluca D'Auri Muscelli g...@email.it wrote:
 i'v upgrade my box to openbsd 4.9 and now i look my card at rsu0
 but now i look this message on console when i get up rsu0:
 rsu0:failed loadfirmware of file rsu-rtl18712fw (error 2)..

Did you install the firmware?



Re: connecting ubt0 to a wireless audio

2011-02-17 Thread Bryan
Okay then...  sorry for the noise... it is not a deal breaker.  It was just
a cool, look what I could do.  I use my phone for music anyway...

Thanks for the heads up...
On Feb 17, 2011 1:47 PM, Henning Brauer lists-open...@bsws.de wrote:
 * Bryan bra...@gmail.com [2011-02-17 20:39]:
 On Thu, Feb 17, 2011 at 11:37, Bryan bra...@gmail.com wrote:
  I have an MW600 from Sony Ericsson, that I can pair to my Droid, and
  the passcode is . B I recently picked up a SparkLAN WPEA-111N
  which attaches to ral(4) and ubt(4):
 Well hell, now all I'm getting is kernel panics when I run btconfig ubt0
up

 bt is badly broken and stays that way until someone cares enough to
 fix it.

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



Re: netword's wireless security settings - how to determine

2011-02-17 Thread Ted Unangst
On Thu, Feb 17, 2011 at 4:52 PM, Dmitrij D. Czarkoff czark...@gmail.com wrote:
 On Thu, Feb 17, 2011 at 11:46:05AM +, Stuart Henderson wrote:
 Perhaps we think that the AP supports wpa2 but it is actually broken
 and only wpa1 works.

 We shouldn't as far as wpaprotos defaults to wpa1,wpa2, so wpa2 shouldn't be
 tested if wpa1 succeeds.

The man page says the opposite.  wpa2 is preferred if both are allowed.



Re: connecting ubt0 to a wireless audio

2011-02-17 Thread Jacob Meuser
On Thu, Feb 17, 2011 at 12:33:51PM -0600, Bryan wrote:
 On Thu, Feb 17, 2011 at 11:37, Bryan bra...@gmail.com wrote:
  I have an MW600 from Sony Ericsson, that I can pair to my Droid, and
  the passcode is . B I recently picked up a SparkLAN WPEA-111N
  which attaches to ral(4) and ubt(4):
 
 
 Well hell, now all I'm getting is kernel panics when I run btconfig ubt0 up

don't expect btsco(4) to work reliably, even if the bluetooth layer
itself works.  btsco(4) uses audio_hw_if-start_{output,input}.  these
can only work with realtime operating systems, since they require
that the kernel fills the next audio buffer in an isr.  this means the
isr needs to be run within microseconds of interrupt generation.  I've
seen delays of over 100 ms between interrupt generation and isr
execution with azalia(4) on MP systems.  using uaudio(4) on an MP
system will give an idea of how bad this is (and uaudio actually does
do some bufferring in the usb layer; btsco would be much worse).


 
 Trace:  (sorry about the pics, trying to get a pic without a big white
 spot in the middle was difficult)
 
 https://picasaweb.google.com/lh/photo/0yKxojKmEV9D1dAagSjvUROK7QTsO1pAa7ZYbjM
 kzoc?feat=directlink
 https://picasaweb.google.com/lh/photo/18pGUXQNVwlzBA3C5OnRxROK7QTsO1pAa7ZYbjM
 kzoc?feat=directlink
 
 PS:
 
 https://picasaweb.google.com/lh/photo/7De2m0Z3Z6zS2HU9iQ3NxxOK7QTsO1pAa7ZYbjM
 kzoc?feat=directlink
 https://picasaweb.google.com/lh/photo/7IX6Q5k9GRO9Vl42BcbpVxOK7QTsO1pAa7ZYbjM
 kzoc?feat=directlink
 
 dmesg:
 
 OpenBSD 4.9 (GENERIC.MP) #57: Wed Feb 16 23:02:26 CST 2011
r...@obsd-amd64.my.domain:/usr/src/sys/arch/amd64/compile/GENERIC.MP
 real mem = 3707031552 (3535MB)
 avail mem = 3594334208 (3427MB)
 mainbus0 at root
 bios0 at mainbus0: SMBIOS rev. 2.4 @ 0xf6530 (57 entries)
 bios0: vendor Dell Inc. version A24 date 08/19/2010
 bios0: Dell Inc. Latitude E6500
 acpi0 at bios0: rev 2
 acpi0: sleep states S0 S3 S4 S5
 acpi0: tables DSDT FACP HPET DMAR APIC ASF! MCFG SLIC SSDT
 acpi0: wakeup devices PCI0(S4) PCIE(S4) USB1(S0) USB2(S0) USB3(S0)
 USB4(S0) USB5(S0) USB6(S0) EHC2(S0) EHCI(S0) AZAL(S3) RP01(S4)
 RP02(S4) RP03(S4) RP04(S3) RP05(S3) RP06(S5) LID_(S3) PBTN(S4)
 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) Core(TM)2 Duo CPU P8800 @ 2.66GHz, 2660.40 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,SSE3,MWAIT,DS-CPL,VMX,SMX,EST,TM2,S
 SSE3,CX16,xTPR,PDCM,SSE4.1,XSAVE,NXE,LONG
 cpu0: 3MB 64b/line 8-way L2 cache
 cpu0: apic clock running at 266MHz
 cpu1 at mainbus0: apid 1 (application processor)
 cpu1: Intel(R) Core(TM)2 Duo CPU P8800 @ 2.66GHz, 2660.00 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,SSE3,MWAIT,DS-CPL,VMX,SMX,EST,TM2,S
 SSE3,CX16,xTPR,PDCM,SSE4.1,XSAVE,NXE,LONG
 cpu1: 3MB 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
 acpimcfg0 at acpi0 addr 0xf800, bus 0-63
 acpiprt0 at acpi0: bus 3 (PCIE)
 acpiprt1 at acpi0: bus -1 (AGP_)
 acpiprt2 at acpi0: bus 11 (RP01)
 acpiprt3 at acpi0: bus 12 (RP02)
 acpiprt4 at acpi0: bus 13 (RP03)
 acpiprt5 at acpi0: bus 14 (RP04)
 acpiprt6 at acpi0: bus -1 (RP05)
 acpiprt7 at acpi0: bus -1 (RP06)
 acpiprt8 at acpi0: bus 0 (PCI0)
 acpiec0 at acpi0
 acpicpu0 at acpi0: C3, C2, C1, PSS
 acpicpu1 at acpi0: C3, C2, C1, PSS
 acpitz0 at acpi0: critical temperature 107 degC
 acpibtn0 at acpi0: LID_
 acpibtn1 at acpi0: PBTN
 acpibtn2 at acpi0: SBTN
 acpiac0 at acpi0: AC unit offline
 acpibat0 at acpi0: BAT0 model DELL KY26603 serial 5171 type LION oem
 Sanyo
 acpibat1 at acpi0: BAT1 not present
 acpivideo0 at acpi0: VID_
 acpivideo1 at acpi0: VID_acpivout0 at acpivideo1: CRT_
 acpivout1 at acpivideo1: LCD_
 acpivout2 at acpivideo1: DP__
 acpivout3 at acpivideo1: DP2_
 acpivout4 at acpivideo1: DVI_
 acpivout5 at acpivideo1: DVI2
 acpivideo2 at acpi0: VID2
 cpu0: Enhanced SpeedStep 2660 MHz: speeds: 2668, 2667, 2134, 1600, 800 MHz
 pci0 at mainbus0 bus 0
 pchb0 at pci0 dev 0 function 0 Intel GM45 Host rev 0x07
 vga1 at pci0 dev 2 function 0 Intel GM45 Video rev 0x07
 wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
 wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
 intagp0 at vga1
 agp0 at intagp0: aperture at 0xe000, size 0x1000
 inteldrm0 at vga1: apic 2 int 16 (irq 11)
 drm0 at inteldrm0
 Intel GM45 Video rev 0x07 at pci0 dev 2 function 1 not configured
 em0 at pci0 dev 25 function 0 Intel ICH9 IGP M AMT rev 0x03: apic 2
 int 22 (irq 10), address 00:2
 6:b9:c5:4b:48
 uhci0 at pci0 dev 26 function 0 Intel 82801I USB rev 0x03: apic 2
 int 20 (irq 7)
 uhci1 at pci0 dev 26 function 1 Intel 82801I USB rev 0x03: apic 2
 int 21 (irq 4)
 uhci2 at pci0 dev 26 

cursuri perfectionare

2011-02-17 Thread cursuri perfectionare
  In prag de sarbatori, echipa EVRIKA va ureaza sa aveti parte de un Mos 
Craciun darnic si bun, iar anul ce vine sa fie plin de succese!



La multi ani!



www.cursonline.eu




rsu0 problem

2011-02-17 Thread Gianluca D'Auri Muscelli
now when i sudo sh /etc/netstart rsu0
rsu0.no link  sleeping
and in console i look ' rsu0: could not send site survey command'
my hostname.rsu0 is:
dhcp NONE NONE NONE nwkey my_wep_password_clear_text chan 6
or
dhcp NONE NONE NONE nwid my_wii_name nwkey my_pass_cl_text chan 6
;(

Do u know how i can resolve this problem??
tks vvm
--
Gianluca D'Auri Muscelli
g...@email.it
Fingerprint: 3A277FACD60A3D33388BC371F4548B69078A9A04



   /_/

[demime 1.01d removed an attachment of type application/pgp-signature which had 
a name of signature.asc]



Re: how to set an alias on a carp interface?

2011-02-17 Thread Dan Harnett
On Thu, Feb 17, 2011 at 05:37:34PM +0100, Henning Brauer wrote:
 your way to configure aliases is correct, however, the masks are not.
 you are screwing up routing. you want an all-ones netmask on each and
 every IP address except one per subnet. alas you want 255.255.255.255
 on the carp if's IPs.

IIRC, aliases in hostname.if add an explicit route to lo0.  This means
should something on one of the backup carp nodes attempt to connect to
one of the shared IP addresses on the master carp node, they will follow
the lo0 route on the backup and not connect to the master node.

IMHO, it would be better to use a new carp device for each alias.  The
routes will be created and destroyed properly with the status change of
each carp device.



Re: USB wii RTL8188s

2011-02-17 Thread Gianluca D'Auri Muscelli
On Fri, 18 Feb 2011 02:15:40 +
Nigel Taylor njtay...@asterisk.demon.co.uk wrote:

 On 02/18/11 00:52, Gianluca D'Auri Muscelli wrote:
  On Fri, 18 Feb 2011 00:29:55 +
  Nigel Taylor njtay...@asterisk.demon.co.uk wrote:
 
  On 02/18/11 00:09, Gianluca D'Auri Muscelli wrote:
  On Thu, 17 Feb 2011 19:29:54 +0100
  Henning Brauer lists-open...@bsws.de wrote:
 
  * Gianluca D'Auri Muscelli g...@email.it [2011-02-17 18:59]:
  i have a usb wireless card RTL 8188s,
  openbsd4.8 find this card at  ugen0 at uhub0
  how i can install and work with this card??
  while this is incomplete information, tho chances are -current
  (which is very close to 4.9-release, so best time to test it!)
  will just work.
 
  rsu (4) - Realtek RTL8188SU/RTL8192SU USB IEEE 802.11b/g/n
  wireless network device urtwn (4) - Realtek RTL8188CU/RTL8192CU
  USB IEEE 802.11b/g/n wireless network device
 
  Hi,
  i'v upgrade my box to openbsd 4.9 and now i look my card at rsu0
  but now i look this message on console when i get up rsu0:
  rsu0:failed loadfirmware of file rsu-rtl18712fw (error 2)..
 
  tks vvm
  --
  Gianluca D'Auri Muscelli
  g...@email.it
  Fingerprint: 3A277FACD60A3D33388BC371F4548B69078A9A04
 
  , ,
   ,(   ).
   | \,--_ / |
   /_  _  `  /
  /-.,-.`\
  | |   \ \
 _\O|O  | |
(___)`--'_/
 `.__/`  /
   `.__,   ,/
  /\
.   ,___/ __   \
|)))==) \) /=
'   `--' `.__,' |   _
||  / \
 \ _ /`-' \/
 ,` \   /
 \_,-'  \
   \/
 
  [demime 1.01d removed an attachment of type
  application/pgp-signature which had a name of signature.asc]
 
 
  HI,
 
  The rsu man page tells you to get the pre-packaged firmware from
 
  http://damien.bergamini.free.fr/packages/openbsd/rsu-firmware-1.1.tgz
 
  download, then pkg_add rsu-firmware-1.1 or
  pkg_add -v
  http://damien.bergamini.free.fr/packages/openbsd/rsu-firmware-1.1.tgz
 
  Have you done this?
 
  Regards
 
  Nigel Taylor
  yes tks, but now when i sudo sh /etc/netstart rsu0
  rsu0.no link
  and in console i look ' rsu0: could not send site survey command'
  my hostname.rsu0 is:
  dhcp NONE NONE NONE nwkey my_wep_password
  ;(
 
 
 
 Hi,

 I don't use WEP, but your hostname.rsu0 looks correct, could try a
 chan xx on the end of the hostname.rsu0 line. I use a run USB
 device for which my hostname.run0 file looks like this,
 dhcp NONE NONE NONE nwid xx chan 11 wpakey 

 I do find that the run USB doesn't always work first time, or if
 reconfigured, removing and inserting the USB device sorts that out,
 or a reboot/ power off/on, you might have a similar problem. The
 rsu/8188 is new to OpenBSD 4.9 added in Dec 2010, there could be some
 issues still, how recent is the snapshot you are using.

 Did you try a ifconfig rsu0 scan before configuring to see if you see
 any networks.

 It looks as if the console message is a failure to scan for the
 network. Send a e-mail with the dmesg, output to the mail list with
 the problem, I can't help when it comes to actual errors in the
 device driver.


 Regards

 Nigel Taylor







rsu0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST mtu 1500
lladdr 00:02:72:8b:16:75
priority: 4
groups: wlan
media: IEEE802.11 autoselect (DS1 mode 11g)
status: no network
ieee80211: nwid Vodafone- chan 6 nwkey xxx
inet6 fe80::202:72ff:fe8b:1675%rsu0 prefixlen 64 scopeid 0x7

ifconfig rsu0 scan give me the same...

rsu0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST mtu 1500
lladdr 00:02:72:8b:16:75
priority: 4
groups: wlan
media: IEEE802.11 autoselect (DS1 mode 11g)
status: no network
ieee80211: nwid Vodafone-xx chan 6 nwkey x


i don't know... :(
--
Gianluca D'Auri Muscelli
g...@email.it
Fingerprint: 3A277FACD60A3D33388BC371F4548B69078A9A04


 ,(   ).
 | \,--_ / |
 /_  _  `  /
/-.,-.`\  _    _ _
\O|O  | |/ ___ \   |  _ \ / |  __ \
  (___)`--'_/   / /  / /___  ___   | |_) | (___ | |  | |
   `.__/`  /   / /  / / __ \/ _ \/ __ \|  _  \___ \| |  | |
 `.__,   ,/   / /__/ / /_/ /  __/ / / /| |_) |) | |__| |
  \_/ .___/\___/_/ /_/ |/|_/|_/
 ___/ /__
   /_/

[demime 1.01d removed an attachment of type application/pgp-signature which had 
a name of signature.asc]



Re: USB wii RTL8188s

2011-02-17 Thread Gianluca D'Auri Muscelli
On Fri, 18 Feb 2011 02:15:40 +
Nigel Taylor njtay...@asterisk.demon.co.uk wrote:

 On 02/18/11 00:52, Gianluca D'Auri Muscelli wrote:
  On Fri, 18 Feb 2011 00:29:55 +
  Nigel Taylor njtay...@asterisk.demon.co.uk wrote:
 
  On 02/18/11 00:09, Gianluca D'Auri Muscelli wrote:
  On Thu, 17 Feb 2011 19:29:54 +0100
  Henning Brauer lists-open...@bsws.de wrote:
 
  * Gianluca D'Auri Muscelli g...@email.it [2011-02-17 18:59]:
  i have a usb wireless card RTL 8188s,
  openbsd4.8 find this card at  ugen0 at uhub0
  how i can install and work with this card??
  while this is incomplete information, tho chances are -current
  (which is very close to 4.9-release, so best time to test it!)
  will just work.
 
  rsu (4) - Realtek RTL8188SU/RTL8192SU USB IEEE 802.11b/g/n
  wireless network device urtwn (4) - Realtek RTL8188CU/RTL8192CU
  USB IEEE 802.11b/g/n wireless network device
 
  Hi,
  i'v upgrade my box to openbsd 4.9 and now i look my card at rsu0
  but now i look this message on console when i get up rsu0:
  rsu0:failed loadfirmware of file rsu-rtl18712fw (error 2)..
 
  tks vvm
  --
  Gianluca D'Auri Muscelli
  g...@email.it
  Fingerprint: 3A277FACD60A3D33388BC371F4548B69078A9A04
 
  , ,
   ,(   ).
   | \,--_ / |
   /_  _  `  /
  /-.,-.`\
  | |   \ \
 _\O|O  | |
(___)`--'_/
 `.__/`  /
   `.__,   ,/
  /\
.   ,___/ __   \
|)))==) \) /=
'   `--' `.__,' |   _
||  / \
 \ _ /`-' \/
 ,` \   /
 \_,-'  \
   \/
 
  [demime 1.01d removed an attachment of type
  application/pgp-signature which had a name of signature.asc]
 
 
  HI,
 
  The rsu man page tells you to get the pre-packaged firmware from
 
  http://damien.bergamini.free.fr/packages/openbsd/rsu-firmware-1.1.tgz
 
  download, then pkg_add rsu-firmware-1.1 or
  pkg_add -v
  http://damien.bergamini.free.fr/packages/openbsd/rsu-firmware-1.1.tgz
 
  Have you done this?
 
  Regards
 
  Nigel Taylor
  yes tks, but now when i sudo sh /etc/netstart rsu0
  rsu0.no link
  and in console i look ' rsu0: could not send site survey command'
  my hostname.rsu0 is:
  dhcp NONE NONE NONE nwkey my_wep_password
  ;(
 
 
 
 Hi,

 I don't use WEP, but your hostname.rsu0 looks correct, could try a
 chan xx on the end of the hostname.rsu0 line. I use a run USB
 device for which my hostname.run0 file looks like this,
 dhcp NONE NONE NONE nwid xx chan 11 wpakey 

 I do find that the run USB doesn't always work first time, or if
 reconfigured, removing and inserting the USB device sorts that out,
 or a reboot/ power off/on, you might have a similar problem. The
 rsu/8188 is new to OpenBSD 4.9 added in Dec 2010, there could be some
 issues still, how recent is the snapshot you are using.

 Did you try a ifconfig rsu0 scan before configuring to see if you see
 any networks.

 It looks as if the console message is a failure to scan for the
 network. Send a e-mail with the dmesg, output to the mail list with
 the problem, I can't help when it comes to actual errors in the
 device driver.


 Regards

 Nigel Taylor






This is my  dmesg,


 Intel 82801GB USB rev 0x02: apic 4 int 16 (irq 11)
uhci1 at pci0 dev 29 function 1 Intel 82801GB USB rev 0x02: apic 4 int 17
(irq 11)
uhci2 at pci0 dev 29 function 2 Intel 82801GB USB rev 0x02: apic 4 int 18
(irq 11)
uhci3 at pci0 dev 29 function 3 Intel 82801GB USB rev 0x02: apic 4 int 19
(irq 11)
ehci0 at pci0 dev 29 function 7 Intel 82801GB USB rev 0x02: apic 4 int 16
(irq 11)
usb0 at ehci0: USB revision 2.0
uhub0 at usb0 Intel EHCI root hub rev 2.00/1.00 addr 1
ppb4 at pci0 dev 30 function 0 Intel 82801BAM Hub-to-PCI rev 0xe2
pci5 at ppb4 bus 5
ichpcib0 at pci0 dev 31 function 0 Intel 82801GBM LPC rev 0x02: PM disabled
pciide0 at pci0 dev 31 function 2 Intel 82801GBM SATA rev 0x02: DMA, channel
0 wired to compatibility, channel 1 wired to compatibility
wd0 at pciide0 channel 1 drive 0: SSDPAMM0008G1
wd0: 1-sector PIO, LBA, 7695MB, 15761088 sectors
wd0(pciide0:1:0): using PIO mode 4, Ultra-DMA mode 4
ichiic0 at pci0 dev 31 function 3 Intel 82801GB SMBus rev 0x02: apic 4 int
17 (irq 11)
iic0 at ichiic0
usb1 at uhci0: USB revision 1.0
uhub1 at usb1 Intel UHCI root hub rev 1.00/1.00 addr 1
usb2 at uhci1: USB revision 1.0
uhub2 at usb2 Intel UHCI root hub rev 1.00/1.00 addr 1
usb3 at uhci2: USB revision 1.0
uhub3 at usb3 Intel UHCI root hub rev 1.00/1.00 addr 1
usb4 at uhci3: USB revision 1.0
uhub4 at usb4 Intel UHCI root hub rev 1.00/1.00 addr 1
isa0 at ichpcib0
isadma0 at isa0
pckbc0 at isa0 port 0x60/5
pckbd0 at pckbc0 (kbd slot)
pckbc0: using irq 1 for kbd slot
wskbd0 at pckbd0: console keyboard, using wsdisplay0
pms0 at pckbc0 (aux slot)
pckbc0: using irq 12 for aux slot
wsmouse0 at pms0 mux 0
pcppi0 at isa0 port 0x61
spkr0 at 

Re: netword's wireless security settings - how to determine

2011-02-17 Thread Joe Snikeris
On Wed, Feb 16, 2011 at 2:45 AM, Dmitrij D. Czarkoff czark...@gmail.com wrote:
 And the other point was that I can't find a way to find out the proper
 settings for wpaakms, wpaciphers, wpagroupcipher and wpaprotos without
 asking anyone, while this seems to be possible as linux's iwlist does it.

As does Windows and Mac.  The answer is that the tool isn't currently
sophisticated enough to determine these things and configure them
automatically.

I'm sure the developers would appreciate a patch to add this functionality.



Re: Dell R310 - H200 Raid performance problem

2011-02-17 Thread David Gwynne
this diff implements the disk cache ioctl handling in mpii so sd(4)
can drive the change rather than have mpii(4) whack everything.
modelled on the same functionality in mpi(4) and mikeb's code...

could someone test this please?

Index: mpii.c
===
RCS file: /cvs/src/sys/dev/pci/mpii.c,v
retrieving revision 1.37
diff -u -p -r1.37 mpii.c
--- mpii.c  29 Dec 2010 03:55:09 -  1.37
+++ mpii.c  18 Feb 2011 06:54:58 -
@@ -29,6 +29,7 @@
 #include sys/kernel.h
 #include sys/rwlock.h
 #include sys/sensors.h
+#include sys/dkio.h
 #include sys/tree.h
 
 #include machine/bus.h
@@ -981,6 +982,52 @@ struct mpii_msg_sas_oper_reply {
u_int32_t   ioc_loginfo;
 } __packed;
 
+struct mpii_msg_raid_action_request {
+   u_int8_taction;
+#define MPII_RAID_ACTION_CHANGE_VOL_WRITE_CACHE(0x17)
+   u_int8_treserved1;
+   u_int8_tchain_offset;
+   u_int8_tfunction;
+
+   u_int16_t   vol_dev_handle;
+   u_int8_tphys_disk_num;
+   u_int8_tmsg_flags;
+
+   u_int8_tvp_id;
+   u_int8_tvf_if;
+   u_int16_t   reserved2;
+
+   u_int32_t   reserved3;
+
+   u_int32_t   action_data;
+#define MPII_RAID_VOL_WRITE_CACHE_DISABLE  (0x01)
+#define MPII_RAID_VOL_WRITE_CACHE_ENABLE   (0x02)
+
+   struct mpii_sge action_sge;
+} __packed;
+
+struct mpii_msg_raid_action_reply {
+   u_int8_taction;
+   u_int8_treserved1;
+   u_int8_tchain_offset;
+   u_int8_tfunction;
+
+   u_int16_t   vol_dev_handle;
+   u_int8_tphys_disk_num;
+   u_int8_tmsg_flags;
+
+   u_int8_tvp_id;
+   u_int8_tvf_if;
+   u_int16_t   reserved2;
+
+   u_int16_t   reserved3;
+   u_int16_t   ioc_status;
+
+   u_int32_t   action_data[5];
+
+   struct mpii_sge action_sge;
+} __packed;
+
 struct mpii_cfg_hdr {
u_int8_tpage_version;
u_int8_tpage_length;
@@ -1256,6 +1303,11 @@ struct mpii_cfg_raid_vol_pg0 {
 #define MPII_CFG_RAID_VOL_0_STATUS_RESYNC  (116)
 
u_int16_t   volume_settings;
+#define MPII_CFG_RAID_VOL_0_SETTINGS_CACHE_MASK(0x30)
+#define MPII_CFG_RAID_VOL_0_SETTINGS_CACHE_UNCHANGED   (0x00)
+#define MPII_CFG_RAID_VOL_0_SETTINGS_CACHE_DISABLED(0x10)
+#define MPII_CFG_RAID_VOL_0_SETTINGS_CACHE_ENABLED (0x20)
+
u_int8_thot_spare_pool;
u_int8_treserved1;
 
@@ -1972,6 +2024,8 @@ int   mpii_req_cfg_page(struct mpii_softc
 
 intmpii_get_ioc_pg8(struct mpii_softc *);
 
+intmpii_ioctl_cache(struct scsi_link *, u_long, struct dk_cache *);
+
 #if NBIO  0
 intmpii_ioctl(struct device *, u_long, caddr_t);
 intmpii_ioctl_inq(struct mpii_softc *, struct bioc_inq *);
@@ -4650,19 +4704,113 @@ mpii_scsi_cmd_done(struct mpii_ccb *ccb)
 
mpii_push_reply(sc, ccb-ccb_rcb);
scsi_done(xs);
-}
+}
 
 int
 mpii_scsi_ioctl(struct scsi_link *link, u_long cmd, caddr_t addr, int flag)
 {
struct mpii_softc   *sc = (struct mpii_softc *)link-adapter_softc;
+   struct mpii_device  *dev = sc-sc_devs[link-target];
 
DNPRINTF(MPII_D_IOCTL, %s: mpii_scsi_ioctl\n, DEVNAME(sc));
 
-   if (sc-sc_ioctl)
-   return (sc-sc_ioctl(link-adapter_softc, cmd, addr));
-   else
-   return (ENOTTY);
+   switch (cmd) {
+   case DIOCGCACHE:
+   case DIOCSCACHE:
+   if (dev != NULL  ISSET(dev-flags, MPII_DF_VOLUME)) {
+   return (mpii_ioctl_cache(link, cmd,
+   (struct dk_cache *)addr));
+   }
+   break;
+
+   default:
+   if (sc-sc_ioctl)
+   return (sc-sc_ioctl(link-adapter_softc, cmd, addr));
+
+   break;
+   }
+
+   return (ENOTTY);
+}
+
+int
+mpii_ioctl_cache(struct scsi_link *link, u_long cmd, struct dk_cache *dc)
+{
+   struct mpii_softc *sc = (struct mpii_softc *)link-adapter_softc;
+   struct mpii_device *dev = sc-sc_devs[link-target];
+   struct mpii_cfg_raid_vol_pg0 *vpg;
+   struct mpii_msg_raid_action_request *req;
+   struct mpii_cfg_hdr hdr;
+   struct mpii_ccb *ccb;
+   u_int32_t addr = MPII_CFG_RAID_VOL_ADDR_HANDLE | dev-dev_handle;
+   size_t pagelen;
+   int rv = 0;
+   int enabled;
+
+   if (mpii_req_cfg_header(sc, MPII_CONFIG_REQ_PAGE_TYPE_RAID_VOL, 0,
+   addr, 0, hdr) != 0)
+   return (EINVAL);
+
+   pagelen = hdr.page_length * 4;
+   vpg = malloc(pagelen, M_TEMP, M_WAITOK | M_CANFAIL | M_ZERO);
+   if (vpg == NULL)
+   return (ENOMEM);
+
+   if (mpii_req_cfg_page(sc, addr, 0, hdr, 1, 

Re: how to set an alias on a carp interface?

2011-02-17 Thread Harald Dunkel
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 02/17/11 23:13, Daniel Ouellet wrote:
 
 Think about it that way may be.
 
 You want an alias IP's, not an alias subnet, so how do you enter a single IP? 
 With a /32 subnet.
 

Actually I _do_ want to have alias subnets, as written before:

 Please note that I would like to have 172.12.96.0/22,
 but 172.12.101.0/24 and 172.12.126.0/24.

These subnets share the same physical line, but they have
different netmasks. If I would use

inet   172.12.96.5  255.255.252.0 NONE
inet alias 172.12.101.5 255.255.255.255 NONE
inet alias 172.12.126.5 255.255.255.255 NONE
- -inet6
group internal

as you suggested, then the netmask information is lost.


Regards

Harri
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk1eGxAACgkQUTlbRTxpHjc58QCbBBBzdPrUJu2N6jcXvt/pGdQ8
drcAni+BqGrUuoJpzX3rrAwRHUG1/J4v
=a5Nb
-END PGP SIGNATURE-