Re: Slow HDD speed on Dell E6400

2009-09-29 Thread Janne Johansson
TomC!E! BodEC!r wrote:
 There must be some funny tricks on those other OS's.But it doesn't
 matter (I will investigate myself).
 Now I know more about those random generators and tests for real are ok.
 Untar of src.tar.gz shows about 9MB/s in iostat(8) and dd ports.tar.gz
 to some file
 shows about 22MB/s.
 
 Thanks all for their tips and sorry for some of my stupid ideas ;-)

Also, untarring lots of small files wont test your I/O in the same way
as a dd(1) test, since it will test how often can I make atomic writes
to my disk rather than how much data can I move.



Re: Filtering scp ssh and sftp

2009-09-29 Thread Michal

Simen Stavdal wrote:

Hello misc,

I have an openbsd host running that I wish to access in different 
manners depending on where the users connect from.
This host runs sftp chrooted for internet users, and at the same time, 
I wish to administer the box with ssh.
At the same time, I do not wish to allow ssh from the internet. We 
have a policy that only vpn connected users can administer local systems.
The host is located on a dmz with one interface and one public ip 
address.


Between the users, the internet and this server I have two firewalls 
running openbsd 4.1 GENERIC.MP (with Carp over Vlan over trunk).


Internet -Firewall---DMZ with SFTP server
|
  Internal users

I want to allow all ssh services for internal users, and sftp _only_ 
from the internet.
Since sftp/scp/ssh all run on the same port number (22 default), is 
there a way to filter the traffic with pf?
I've seen that you can queue the traffic with ALTQ, but is there a way 
to block/allow before this stage?

Any best practice on the subject?

Cheers,
Simon.

Change the listening IP for one of the service and block access to that 
new IP address in PF?




Re: Slow HDD speed on Dell E6400

2009-09-29 Thread Tomáš Bodžár
I know.That's why I tested in dd and iostat too.

2009/9/29 Janne Johansson j...@it.su.se:
 TomC!E! BodEC!r wrote:
 There must be some funny tricks on those other OS's.But it doesn't
 matter (I will investigate myself).
 Now I know more about those random generators and tests for real are ok.
 Untar of src.tar.gz shows about 9MB/s in iostat(8) and dd ports.tar.gz
 to some file
 shows about 22MB/s.

 Thanks all for their tips and sorry for some of my stupid ideas ;-)

 Also, untarring lots of small files wont test your I/O in the same way
 as a dd(1) test, since it will test how often can I make atomic writes
 to my disk rather than how much data can I move.






--
http://www.openbsd.org/lyrics.html



Carp basics

2009-09-29 Thread Siju George
Hi,

I guess it is time I looked into a deeper aspect of OpenBSD, CARP.

Currently I have two OpenBSD firewalls fw1 and fw2.
fw1 connects to internet a portion of people in LAN which is under the
subnet 172,16,0.0/12 through ISP1
fw2 connects to internet the other portion of people in LAN which is
under the subnet 172,16,0.0/12 through ISP2

Is it possible for me to make both fw1 and fw2 listen on ip address
172.17.1.0 and load balance connections through both ISPs?
And also make a fail over set up so that when either ISP1 or ISP2 is
not functioning all hosts in the network  going through the other.

Thanks

--Siju



Re: Carp basics

2009-09-29 Thread Janne Johansson
Siju George wrote:
 Is it possible for me to make both fw1 and fw2 listen on ip address
 172.17.1.0 and load balance connections through both ISPs?
 And also make a fail over set up so that when either ISP1 or ISP2 is
 not functioning all hosts in the network  going through the other.

http://www.openbsd.org/faq/faq6.html#Multipath
might help.



Re: Carp basics

2009-09-29 Thread Steven Surdock
 -Original Message-
 From: owner-m...@openbsd.org [mailto:owner-m...@openbsd.org] On Behalf
 Of Janne Johansson
 Sent: Tuesday, September 29, 2009 6:14 AM
 To: misc
 Subject: Re: Carp basics

 Siju George wrote:
  Is it possible for me to make both fw1 and fw2 listen on ip address
  172.17.1.0 and load balance connections through both ISPs?
  And also make a fail over set up so that when either ISP1 or ISP2 is
  not functioning all hosts in the network  going through the other.

 http://www.openbsd.org/faq/faq6.html#Multipath
 might help.

Some web sites (e.g. YouTube) don't seem to work well with NAT based
load-balancing.  Check out sticky-address options in PF, which might
help that. Also, to achieve reliable fail-over look at using ifstated.
Check the mail archive for examples.  Finally, 172.17.1.0 isn't a legit
address to listen on.

-Steve S.



Re: Slow HDD speed on Dell E6400

2009-09-29 Thread Marco Peereboom
Here is my e6500:
$ sudo dd if=/dev/rsd0c of=/dev/null bs=1m count=500
500+0 records in
500+0 records out
524288000 bytes transferred in 4.631 secs (113202161 bytes/sec)


On Tue, Sep 29, 2009 at 09:44:53AM +0200, Tom Bodr wrote:
 I know.That's why I tested in dd and iostat too.
 
 2009/9/29 Janne Johansson j...@it.su.se:
  TomC!E! BodEC!r wrote:
  There must be some funny tricks on those other OS's.But it doesn't
  matter (I will investigate myself).
  Now I know more about those random generators and tests for real are ok.
  Untar of src.tar.gz shows about 9MB/s in iostat(8) and dd ports.tar.gz
  to some file
  shows about 22MB/s.
 
  Thanks all for their tips and sorry for some of my stupid ideas ;-)
 
  Also, untarring lots of small files wont test your I/O in the same way
  as a dd(1) test, since it will test how often can I make atomic writes
  to my disk rather than how much data can I move.
 
 
 
 
 
 
 --
 http://www.openbsd.org/lyrics.html



OpenBGP on CARP

2009-09-29 Thread peter dunaskin
Hello,

I'm trying to implement CARP on our edge BGP OpenBSD routers. CARP
itself seems to be working perfectly but I'm having problems figuring
out how to propertly configure BGP.

I have couple of external IP's on my network, so limited number of them
is not an issue (as it's often with internet exchange points).

From claudio's presentation it seems to me doing it by depend on carp0
is wrong [1].

My setup is like this:

  [ upstream ]
   10.1.1.254
|
10.1.1.1
10.1.1.2  carp0  10.1.1.3
  [ router#1 ] [ router#2 ]

Should I peer both routers using their external IP's to my upstream ISP
and keep IBGP session between both of them? Or should I use depend on
carp0 and local-address 10.1.1.1 on both of them? In this case, what
am I supposed to announce between both of my routers?

Thanks,
Peter

1. http://www.openbsd.org/papers/linuxtag06-network/mgp00028.html



pflog problem on a bridging firewall

2009-09-29 Thread Matthieu Herrb
Hi,

I've a problem with logging packets in bridging mode with pf under -current.

My setup is a machine with em2 ad em3 interfaces in a bridge (no IP
address), witth a ruleset that looks like:

---cut---
admif=em0
table laas const { }
table administrees const { }
table rfc1918 const { 10/8, 172.16/12, 192.168/16 }
table ssh-bruteforce persist

set skip on { lo0, em3 }

block in log all
block out log all

match in on em2 scrub (reassemble tcp)
block drop in quick log on em2 from ssh-bruteforce
pass in on {$admif, em2} proto tcp from any to administrees port ssh \
flags S/SA keep state \
(max-src-conn 20, max-src-conn-rate 15/30, overload
ssh-bruteforce flush global)

pass out on em2 from laas
block out on em2 to rfc1918
---cut---

The problem is that I can't see any of the packets blocked by the
'block in log all' rule and coming from em2, altough pfctl -vvsr shows
that there are packets blocked here. Other packets, blocked by other
rules or coming from em0 show up on pflog0 without problem.

Any idea of what's wrong here ? Is this a bug?

-- 
Matthieu Herrb



Re: wrong dates displayed with sftp

2009-09-29 Thread Hugo Osvaldo Barrera
By chrooting it, it's root (/) becomes the directory where you've
chrooted.Hence, as far as I understand, it can't see your /etc/localtime;
you'd need to create inside the chroot directory.

On Fri, Sep 25, 2009 at 06:35, LEVAI Daniel l...@ecentrum.hu wrote:

 On Friday 25 September 2009 11.16.14 you wrote:
  On 2009-09-25, LEVAI Daniel l...@ecentrum.hu wrote:
   Hi!
  
   My sftp client is displaying the files' dates in the wrong timezone.
  
   @localhost $ sftp remotehost
   sftp mkdir test
   sftp ls -l
   drwxr-x--- [...] Sep 25 06:53 test
  
   That is GMT, 2 hours minus the my timezone, what is CEST(GMT+2).
   However on the remote host the directory has the correct timestamp:
  
   @remotehost $ ls -ld ./test
   drwxr-x--- [...] Sep 25 08:53:10 2009 test//
  
  
   Both the client and the remote host has the file
   /usr/share/zoneinfo/Europe/Budapest copied overt to /etc/localtime.
  
   Anyone has an idea what could cause this behaviour?
 
  Is the sftp server chroot'ed?
 Yes, indeed. So if I want correct dates I must create the etc/localtime
 file
 under the chroot?


 Daniel

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



pecl broken?

2009-09-29 Thread Chris

Hi,

I am trying to install some php extensions on my OBSD 4.5 box, which  
is to run a Horde email server.


I am following along, and see that I need 3 extensions via pecl: lzf,  
fileinfo and memcache.


I run pecl install fileinfo (for example).  It looks like everything  
installs just fine, no complaints.  But nowhere on the system can I  
find the file fileinfo.so (find / -iname fileinfo.so).


I'm supposed to add the line extension=fileinfo.so to my php.ini, but  
of course, this doesn't work, since the file doesn't exist.


At first I though it might be because I had php installed via pkg, but  
I reinstalled with ports (adding all the configure options indicated  
on the horde docs) -- and it still doesn't work.


Is this thing broken, or does OBSD handle pecl differently now?

I appreciate the help.

(btw, I am disabling the apache chroot jail for this server -- horde  
is a bear in a jail...)


Chris



Re: OpenBGP on CARP

2009-09-29 Thread Soeren Aurehoej

Hello Peter

Den 29/09/2009 kl. 14.33 skrev peter dunaskin:


Hello,

I'm trying to implement CARP on our edge BGP OpenBSD routers. CARP
itself seems to be working perfectly but I'm having problems figuring
out how to propertly configure BGP.

I have couple of external IP's on my network, so limited number of
them
is not an issue (as it's often with internet exchange points)

Could you get one BGP session  to each router from your provider.
That way you only need the carp on the inside.
It makes the setup a little simpler, and allows you to have 2 full BGP
views, making failover faster.


From claudio's presentation it seems to me doing it by depend on
carp0
is wrong [1].

My setup is like this:

[ upstream ]
 10.1.1.254
  |
  10.1.1.1
  10.1.1.2  carp0  10.1.1.3
[ router#1 ] [ router#2 ]

Should I peer both routers using their external IP's to my upstream
ISP
and keep IBGP session between both of them?

That's what I do, with OSPF on top.


Or should I use depend on
carp0 and local-address 10.1.1.1 on both of them? In this case,
what
am I supposed to announce between both of my routers?

Thanks,
Peter

1. http://www.openbsd.org/papers/linuxtag06-network/mgp00028.html




/Sxren



Re: OpenBGP on CARP

2009-09-29 Thread Soeren Aurehoej

Den 29/09/2009 kl. 18.24 skrev peter dunaskin:


Hello Soeren,


I'm trying to implement CARP on our edge BGP OpenBSD routers. CARP
itself seems to be working perfectly but I'm having problems  
figuring

out how to propertly configure BGP.

I have couple of external IP's on my network, so limited number of
them
is not an issue (as it's often with internet exchange points)

Could you get one BGP session  to each router from your provider.
That way you only need the carp on the inside.
It makes the setup a little simpler, and allows you to have 2 full  
BGP

views, making failover faster.

Thanks for your reply!
Yes, I could probably ask my provider to give me two BGP sessions.


From claudio's presentation it seems to me doing it by depend on
carp0
is wrong [1].

My setup is like this:

  [ upstream ]
   10.1.1.254
|
10.1.1.1
10.1.1.2  carp0  10.1.1.3
[ router#1 ] [ router#2 ]

Should I peer both routers using their external IP's to my upstream
ISP
and keep IBGP session between both of them?

That's what I do, with OSPF on top.


Could you please tell me what benefit does OSPF in this case give?
It seems to me like this makes things bit more complicated.
I need it due to having 4 upstream in 2 different PoP's to 2  
providers, with a fiber between.

OSPF does  make things more complicated/interesting though.



Could you please send your configuration?

I am not sure they are ready for public consumption... :-)
This is my first production BGP setup, and I could be absolutely wrong.
Beware, all advice from this end should be taken with absolute caution.
:-)



At this point my configuration is like this:

group peering AS3 {
   remote-as 2
   neighbor $upstream {
   descr   AS 3 peer 1
   announce self
   tcp md5sig password somepassword
   depend on carp0
   local-address 10.1.1.1 [this is carp address]
   }
}

group IBGP {
   remote-as 3
   neighbor $core1b {
   descr   core1b
   tcp md5sig password somepassword
   }
}

It's not really clear to me what I should announce between my iBGP
peers.

Upstream I announce self
iBGP I announce all

All according to the manpage of bgpd.conf:

The default value for EBGP peers is self,
 which limits the sent UPDATE messages to announcements  
of the lo-

 cal AS.  The default for IBGP peers is all.



And it's bit complicated to test it, this system currently is in
production and I don't want to mess things up.

Make a testenvironment of old junk pc's ??


/Soeren



Re: Filtering scp ssh and sftp

2009-09-29 Thread Chris Dukes
On Mon, Sep 28, 2009 at 11:28:51PM +0200, Simen Stavdal wrote:
 Hello misc,
 
 I have an openbsd host running that I wish to access in different
 manners depending on where the users connect from.
 This host runs sftp chrooted for internet users, and at the same
 time, I wish to administer the box with ssh.
 At the same time, I do not wish to allow ssh from the internet. We
 have a policy that only vpn connected users can administer local
 systems.
 The host is located on a dmz with one interface and one public ip address.
 
 Between the users, the internet and this server I have two firewalls
 running openbsd 4.1 GENERIC.MP (with Carp over Vlan over trunk).
 
 Internet -Firewall---DMZ with SFTP server
 |
   Internal users
 
 I want to allow all ssh services for internal users, and sftp _only_
 from the internet.
 Since sftp/scp/ssh all run on the same port number (22 default), is
 there a way to filter the traffic with pf?
 I've seen that you can queue the traffic with ALTQ, but is there a
 way to block/allow before this stage?
 Any best practice on the subject?

Two sshd_configs.  One locked down to sftp only running on a non-standard
port and one with the services for internal users on the standard port.
Tell your users to use the non-standard port for external use.
If your users aren't bright enough to be able to use a non-standard port, 
have a redirect rule on one of the firewalls that changes the 
destination port.

Personally, I'd try and split the internal traffic and external traffic
different machines and if that wasn't possible to different NICs on
different subnets.
 
 Cheers,
 Simon.
 

-- 
Chris Dukes



misc@openbsd.org / Mantenimiento Preventivo y Predictivo

2009-09-29 Thread CONGRESO LATINOAMERICANO
Congreso Latinoamericano de Mantenimiento Preventivo y Predictivo

Monterrey   29-30 de octubre de 2009
Guadalajara  05-06 de noviembre de 2009
Mexico D.F.  12-13 de noviembre de 2009
Acapulco  03-04 de diciembre de 2009


USTED CONOCE...

Cual es el defecto que causa el 90% de todas las avermas (quizas no es lo que
usted habma pensado).

Los 12 pasos del proceso para implementar un programa de mantenimiento
preventivo/predictivo.

Csmo aplicar el costo para ganar credibilidad.

Csmo aplicar el Analisis de causa ramz a las estrategias proactivas de
mantenimiento.

Csmo identificar los targets para aplicaciones de mantenimiento preventivo -
Dsnde empezar -

Csmo ligar lsgicamente el mantenimiento PREDICTIVO a su sistema de
mantenimiento PREVENTIVO.

Csmo seleccionar el equipo correcto.

Csmo establecer un programa efectivo de lubricacisn que aumente la certeza y
el ahorro de dinero



SOLICITE UN FOLLETO CON TODA LA INFORMACION


Opcisn 1)llamando al 01 800 250 20 30

Opcisn 2)respondiendo los siguientes datos:



-Empresa:

-Nombre:

-Puesto:

-Tel: (  )



Lugar donde Participaria:(  ) Monterrey(  ) Guadalajara  (  ) Mexico
DF   (  ) Acapulco


You are currently signed up to this newsletter m...@openbsd.org. To
unsubscribe and discontinue mailings,please send a blank email

9/29/2009



Re: ifstated with carp0

2009-09-29 Thread Laurent CARON

On 29/09/2009 00:33, Stuart Henderson wrote:

The only change to ifstated between 4.4 and 4.5 was a minor change
to the config parser. (there was another change after 4.5, so if 4.5
works for someone but -current doesn't, they can try reverting it).



Hi,

Here is what i temporarily did in the config file to circumvent the bug

carp_up = '( ifconfig carp0 | grep -q MASTER every 10)'
carp_down = '( ifconfig carp0 | grep -q BACKUP every 10)'


It is not really state of the art, nor clean...but works.



Re: ifstated with carp0

2009-09-29 Thread Stuart Henderson
On 2009/09/29 22:38, Laurent CARON wrote:
 On 29/09/2009 00:33, Stuart Henderson wrote:
 The only change to ifstated between 4.4 and 4.5 was a minor change
 to the config parser. (there was another change after 4.5, so if 4.5
 works for someone but -current doesn't, they can try reverting it).
 
 
 Hi,
 
 Here is what i temporarily did in the config file to circumvent the bug
 
 carp_up = '( ifconfig carp0 | grep -q MASTER every 10)'
 carp_down = '( ifconfig carp0 | grep -q BACKUP every 10)'
 
 
 It is not really state of the art, nor clean...but works.

yep, using ifconfig like that isn't really very clean -
does this help at all?

Index: ifstated.c
===
RCS file: /cvs/src/usr.sbin/ifstated/ifstated.c,v
retrieving revision 1.35
diff -u -p -r1.35 ifstated.c
--- ifstated.c  25 Jun 2009 17:14:57 -  1.35
+++ ifstated.c  29 Sep 2009 20:53:37 -
@@ -219,6 +219,7 @@ void
 rt_msg_handler(int fd, short event, void *arg)
 {
char msg[2048];
+   char *next, *lim;
struct rt_msghdr *rtm = (struct rt_msghdr *)msg;
struct if_msghdr ifm;
int len;
@@ -229,14 +230,18 @@ rt_msg_handler(int fd, short event, void
if (len  sizeof(struct rt_msghdr))
return;
 
-   if (rtm-rtm_version != RTM_VERSION)
-   return;
+   lim = (char *)msg + len;
+   for (next = (char *)msg; next  lim; next += rtm-rtm_msglen) {
+   rtm = (struct rt_msghdr *)next;
+   if (rtm-rtm_version != RTM_VERSION)
+   continue;
 
-   if (rtm-rtm_type != RTM_IFINFO)
-   return;
+   if (rtm-rtm_type != RTM_IFINFO)
+   continue;
 
-   memcpy(ifm, rtm, sizeof(ifm));
-   scan_ifstate(ifm.ifm_index, ifm.ifm_data.ifi_link_state, 1);
+   memcpy(ifm, rtm, sizeof(ifm));
+   scan_ifstate(ifm.ifm_index, ifm.ifm_data.ifi_link_state, 1);
+   }
 }
 
 void



Re: ifstated with carp0

2009-09-29 Thread Laurent CARON

On 29/09/2009 23:05, Stuart Henderson wrote:

yep, using ifconfig like that isn't really very clean -
does this help at all?


I did try to revert this change to no avail. :$



Re: ifstated with carp0

2009-09-29 Thread Stuart Henderson
On 2009/09/29 23:12, Laurent CARON wrote:
 On 29/09/2009 23:05, Stuart Henderson wrote:
 yep, using ifconfig like that isn't really very clean -
 does this help at all?
 
 I did try to revert this change to no avail. :$
 

no, that's something different.



RARITAN KVM COMPATIBLE? uhidev0 at uhub2 port 2 configuration 1 interface 0 RU RU-CIM rev 2.00/0.00 addr 2

2009-09-29 Thread Matthew Young
Hello,

Iam having issues with Raritan Dominion KX II 32

Most of the macros dont work (most important the one to cal DDB), and
Iam suspecting that is making some OBSD 4.5 boxes to freeze.

Before they froozed this is what the boxes (raritan usb error )  had in
common:

uhidev0 at uhub2 port 2 configuration 1 interface 0 RU RU-CIM rev
2.00/0.00 addr 2

Anybody else have similar issues or fixes to these problems ?

--Matt



POVERTY REQUIEM/09:junte a sua voz!

2009-09-29 Thread Poverty Requiem
  Vox Laci...a voz do lago
  Coro de S.Domingos de Rana
--

  Assunto:  Tragam os amigos, os tios , as primas, os pais e
irmcos



  OodjskdjksBom Dia Coros, Maestros e Coristas

  O POVERTY REQUIEM esta de volta! Pela 3* Edigco consecutiva voltara a
ser interpretada. 17 Outubro 2009



  Faremos um ensaio, que ocorrera no prsprio dia, Sabado, das 13h30-17h
(para quem nunca cantou o Poverty cantara no Scratch Choir)





  1 ensaio  1 concerto (Entrada Livre)



  17-Out Sabado 13h30-17h Ensaio  17h-18h Concerto

  Junta Freguesia Estoril (Galerias)



  Percussionistas: Sebastian Scheriff

  Direcgco: Myguel Santos e Castro



  Podem trazer amigos para se juntarem a esta causa. Quem nunca cantou, i
uma boa hora para comegar. O mmnimo que pode acontecer i divertir-se.

  PASSEM A PALAVRA!!! USEMOS A VOZ PARA SER SOLIDARIOS!!

  Tragam a pauta, mas quem nco tiver, sco 5 euros pelo livro.

  Vistem o link para ouvirem as musicas
http://www.voxlaci.com/poverty_requiem.html




  Ca vos esperamos. I uma excelente oportunidade de sermos solidarios com
quem mais precisa!



  Procuramos Mecenas para se associar a esta iniciativa, contribuindo com
2500? de modo a fazer face `s despesas deste evento! I tco facil ajudar!!
Contacte-nos!



  Com os melhores cumprimentos.
  A Direcgco
  www.voxlaci.com
  Antes de imprimir pense na sua responsabilidade e compromisso para com o
MEIO AMBIENTE

  Find us in: Twitter  Facebook  MySpace  FanClub-VoxLaci   Skype   Voip


--

  Coro Pequenininhos Segundas 18h-18h45 ( 3 -7 anos) Coro Infantil
Segundas e Quartas 18h30-20h+(8 -14 anos) Coro Juvenil  Quartas 20h-22h30
(15-24 anos)
  VOX LACI Ensemble 2*s e 4*s Quintas 20h-22h (13-50 anos) Coro Adulto
Segundas 20h-23h (25 anos)  Coro Gourmet Quartas 16h30-18h (50 anos)
   Intuigco Feminina 1*s Quintas 20h-22h (13 anos) Hirmandade 3*s Quintas
20h-22h (13 anos)

--

  Se quiser deixar de receber os nosssos emails responda com REMOVER



Nuevo mensaje

2009-09-29 Thread Diego
Estimado Sr.:
 
Nuestra empresa Formada por Profesionales se 
especializa en asesoramiento y comercializacisn de:
 
 
Seguros para Empresas e Individuos, (AGRARIOS, COMERCIOS, CONSORCIOS, 
CAUCIONES, AUTOMOTORES, MOTOS, MALA PRAXIS MEDICA Y PROFECIONAL, ETC) 
Productos y Soluciones Financieras para Individuos y Empresas ( Inversiones en 
PROYECTOS PRODUCTIVOS, EN BOLSA, ACCIONES, BONOS) 
Criditos para EMPLEADOS DEL ESTADO (Descuento por recibo de sueldo hasta 
$30.000) 
Criditos para PYMES (Financiacisn, Descuento de Facturas, Cheques, Etc.)
 
 
Para mas Informacisn, realizar una entrevista, o solicitar una llamada 
telefsnica, solicmtela  a  dmartino.segu...@gmail.com
 
 
Si Uds. No Quiere recibmrsete e-mail, por favor responda con asunto REMOVER, 
sepa disculpar las molestias, Muchas Gracias.

[demime 1.01d removed an attachment of type image/jpeg which had a name of 
MS(1).jpg]



Re: USB Keyboard - no bell

2009-09-29 Thread Greg Jones

Miod,

Applied the diff and recompiled current. It works perfectly!!

Thank you,

Greg


Miod Vallat wrote:
After getting an USB keyboard, I noticed no beep when hitting the escape 
key in Vi.  Plugged in the PS/2 keyboard and I get the beep back!


After doing some googling, it appears that USB keyboards may not support 
ascii 0x07 (bel).



Most keyboards those days do not have built-in beeper devices,
especially in the PC world; however in the OpenBSD kernels, the console
beep is still routed through the keyboard driver, for the old platforms
where the only noise-capable device is the beeper in the keyboard
itself.

When your console keyboard is an USB keyboard, the software glue to have
the beep request sent to the PC speaker is currently missing, so there
is currently no way to work around this situation.

The following diff should fix that.

Miod

Index: dev/isa/pcppi.c
===
RCS file: /cvs/src/sys/dev/isa/pcppi.c,v
retrieving revision 1.7
diff -N -u -p dev/isa/pcppi.c
--- dev/isa/pcppi.c 12 Feb 2006 20:04:16 -  1.7
+++ dev/isa/pcppi.c 29 Sep 2009 04:35:50 -
@@ -45,11 +45,12 @@
 #include dev/ic/i8253reg.h
 
 #include pckbd.h

-#if NPCKBD  0
+#include ukbd.h
+#if NPCKBD  0 || NUKBD  0
 #include dev/ic/pckbcvar.h
 #include dev/pckbc/pckbdvar.h
-
-void   pcppi_pckbd_bell(void *, u_int, u_int, u_int, int);
+#include dev/usb/ukbdvar.h
+void   pcppi_kbd_bell(void *, u_int, u_int, u_int, int);
 #endif
 
 struct pcppi_softc {

@@ -169,10 +170,13 @@ pcppi_attach(parent, self, aux)
 
sc-sc_bellactive = sc-sc_bellpitch = sc-sc_slp = 0;
 
+   /* Provide a beeper for the keyboard, if there isn't one already. */

 #if NPCKBD  0
-   /* Provide a beeper for the PC Keyboard, if there isn't one already. */
-   pckbd_hookup_bell(pcppi_pckbd_bell, sc);
+   pckbd_hookup_bell(pcppi_kbd_bell, sc);
 #endif
+#if NUKBD  0
+   ukbd_hookup_bell(pcppi_kbd_bell, sc);
+#endif
 
pa.pa_cookie = sc;

while (config_found(self, pa, 0));
@@ -255,9 +259,9 @@ pcppi_bell_stop(arg)
splx(s);
 }
 
-#if NPCKBD  0

+#if NPCKBD  0 || NUKBD  0
 void
-pcppi_pckbd_bell(arg, pitch, period, volume, poll)
+pcppi_kbd_bell(arg, pitch, period, volume, poll)
void *arg;
u_int pitch, period, volume;
int poll;
@@ -268,4 +272,4 @@ pcppi_pckbd_bell(arg, pitch, period, volume, poll)
pcppi_bell(arg, volume ? pitch : 0, (period * hz) / 1000,
poll ? PCPPI_BELL_POLL : 0);
 }
-#endif /* NPCKBD  0 */
+#endif /* NPCKBD  0 || NUKBD  0 */




Atencao esse assunto e de seu interesse...

2009-09-29 Thread galdino . ws
Ola 
Meu nome i Cleber Galdino e venho por meio desse email, trazer ao seu 
conhecimento nossos servigos e informagco:
msn:s...@galdino.ws

---

Plano Sossegado
Criado para futuros empreendedores, lhe oferecemos um site (loja, portal, 
guia comercial, classificado etc), espago e trafego ilimitado, suporte e 
manutengco ticnica, ou seja vocj nco se preocupa com nada.
http://www.gwsnet.com.br/Plano_Sossegado.htm
---

Hospedagem de Sites
Qualidade, estabilidade, seguranga, servidores super rapidos, links de 
1Gbps, planos a partir de 10,00
http://www.gwsnet.com.br/hospedagem.htm
---

Revenda de Hospedagem de Site
Vocj mesmo administra e cobra o valor que deseja, monta planos, seja vocj 
dono de uma empresa de hospedagem de sites.
http://www.gwsnet.com.br/revenda.htm
---

Registro de Dommnios
Autonomia total na administragco do dommnio, suporte a protegco de Who 
is(dados pzblicos do dono do dommnio).
http://www.gwsnet.com.br/Registro_de_Dominios.htm
---

WebRadio - Streaming de auto
Tenha vocj tambim uma radio em seu site onde pode transmitir carregando uma 
lista de musicas ou ao vivo em tempo real.
http://www.gwsnet.com.br/webradio.htm
---

Servidores Virtuais (VPS)
Precisa de uma arquitetura de acesso root com baixo custo, esse servigo i o 
que precisa...
http://www.gwsnet.com.br/vps.htm
---

Servidores Dedicados
Disponmveis para Cliente que procuram um servigo znico e restrito para suas 
aplicagues, loque uma maquina ss para vocj.
http://www.gwsnet.com.br/dedicado.htm
---

Campanha de envio de Email
Vocj tem um produto ou empresa e gostaria de fazer uma campanha de email e 
sua regico? Veja mais...
http://www.gwsnet.com.br/eMarketing.htm
---

E-News - envio por criditos
Um software para envio de email, com controle estatmstico completo e 
simples manipulagco, coloque um campo de newsletter em seu site.
http://www.gwsnet.com.br/eNewsletter.htm
---

Locagco de SMTP
Gostaria de disparar grandes quantidades de envio de email? loque um 
servidor de envio de email e envie toneladas de emails pela rede.
http://www.gwsnet.com.br/eSMTP.htm
---

Otimizagco de Csdigo para indexagco em Buscadores
Seu site ainda nco esta sendo listado nos sites de busca? Vocj ta sendo 
listado mais gostaria de aparecer mais prsximo do primeiro lugar? Esse i o 
servigo que vocj procura.
http://www.gwsnet.com.br/otimizacao.htm
---

Cadastro de sites em buscadores
Vocj tem a responsabilidade de facilitar o encontro de seu site na internet 
e esse servigo o faz, cadastrando vocj em milhares de sites...
http://www.gwsnet.com.br/MetaCadastro.htm
---

Marketing Viral
Faga parte dessa nova realidade, acessamos e publicamos seu link em fsruns, 
comunidades e grupos que tem algo em comum com sua empresa, marca ou 
produto.
http://www.gwsnet.com.br/redesocial.htm
---

Web Design - Criagco de sites
Para aquele que busca um site, elaborado da forma que deseja, nos manda os 
requisito e criamos esbogo, um site e um layout znico e elaborado de forma 
diferenciada
http://www.gwsnet.com.br/webdesign.htm
---

Comercio Eletrtnico - Loja Virtual
Vocj tem uma loja fmsica e gostaria de ter uma virtual? Vocj nco tem nem 
empresa nem loja e gostaria de vender na internet? Esse servigo lhe 
oferecer um sistema completo com pagamento por boleto, cartco, deposito 
etc., i uma loja pronta para vender na internet...
http://www.gwsnet.com.br/ecommerce/index.html
---

Atendimento Online no seu site
Atenda seu cliente ou chame ele para atendimento em tempo real no seu site, 
monitore a estadia do visitante no seu site tenha todas as conversas tidas 
entre seus atendentes e seus clientes, estatmstica e desempenho de 
atendimento...
http://www.gwsnet.com.br/chatsrv.htm
---

Controle Financeiro Online