Informacion

2010-10-09 Thread Rocio Morales
Reciba cordiales saludos de una servidora,
presentandole este paquete a Cancun por
demas de atractivo, vea http://www.fullallotment.com/cancun
4 dmas para 2 adultos y dos menores, desde ya le agradezco su atencion,
esperando sea de su agrado, saludos

Rocio Morales



Re: No Livelock on 2 Oct 2010 current

2010-10-09 Thread Philip Guenther
On 10/4/10, David Gwynne l...@animata.net wrote:
...
 this restores the visibility of network livelocks to systat.

 anyone object? if not i'll commit it tomorrow morning around 10am
 in a GMT+10 timezeon.

I like it, with one micro suggestion:

...
 --- sbin/sysctl/sysctl.c  19 Aug 2010 18:14:14 -  1.173
 +++ sbin/sysctl/sysctl.c  5 Oct 2010 01:20:59 -
 @@ -447,6 +447,9 @@ parse(char *string, int flags)
   case KERN_CONSDEV:
   special |= CHRDEV;
   break;
 + case KERN_NETLIVELOCKS:
 + special |= UNSIGNED;
 + break;
   }
   break;


The KERN_NETLIVELOCKS case could be joined with the KERN_HOSTID and
KERN_ARND cases earlier in the file.  That switch() isn't in pure
numerical order, so there's no need to put this last, separate from
the other special |= UNSIGNED cases.

ok guenther@



Re: High Resolution Timer

2010-10-09 Thread Philip Guenther
On 9/29/10, Luis Useche use...@gmail.com wrote:
 I need to read a performance monitoring counter (RDPMC) every 100
 microseconds or so. I found a way to do this on linux using the normal
 getitimer library. However, the resolution of this timer in OBSD is 10
 milliseconds. Do you know a way to have a higher resolution of the timer in
 OBSD? One way is to do a busy loop, but this is not feasible in my problem.

You don't really give enough information to give good advice
(platform?  how is the RDPMC read?  notice how many replies you've
gotten?), but depending on the details, writing a kernel driver may be
the most natural way.  Otherwise, a busy loop in userspace watching
the CPU's performance counter might be an option.


Philip Guenther



Re: significance of order of inclusion of header files

2010-10-09 Thread Philip Guenther
On 10/6/10, Edwin Eyan Moragas e...@yndy.org wrote:
...
 checking out the man pages for inet_aton(3), i didn't see anything
 that would lead to the warning. so i tried to tweak the order of the
 header files to reflect that of the man pages.

 the diff to the source would look like:

 e...@obsd $ diff -u net.c*
 --- net.c   Thu Oct  7 01:05:22 2010
 +++ net.c.orig  Thu Oct  7 01:02:58 2010
 @@ -6,9 +6,9 @@

  #include netdb.h
  #include sys/socket.h
 -#include arpa/inet.h
  #include netinet/tcp.h
  #include netinet/in.h
 +#include arpa/inet.h

 compiling the source after changing the order of includes didn't
 produce the warning.

 is this really supposed to happen?

It's an example of how OpenBSD doesn't completely comply with the
POSIX standard.  While there are other places where OpenBSD
intentionally doesn't comply with some of the various versions of the
standard, this case, IMO, can and should be fixed.


Philip Guenther



Re: OpenBSD Vim Programming FAQ

2010-10-09 Thread Tomas Vavrys
My last .vimrc.

http://dl.dropbox.com/u/9017966/.vimrc

2010/10/9 Tobias Ulmer tobi...@tmux.org:
 On Sat, Oct 09, 2010 at 01:27:21AM +0300, Vladimir Kirillov wrote:
 [...]
 style(9):
 Indentation is an 8 character tab. B Second level indents are four spaces.

 B  B  B  while (cnt  20)
 B  B  B  z = a + really + long + statement + that + needs +
 B  B  B  B  B  two + lines + gets + indented + four + spaces +
 B  B  B  B  B  on + the + second + and + subsequent + lines;

 How do you guys follow this rule in vim neatly?


 set cinoptions=:0,t0,+4,(4



opensmtpd chroot success ;)

2010-10-09 Thread ramrunner
Hey list!
a) opensmtpd kicks ass! thanks!
b) i managed to chroot it (didn't find that on any list though) so
here is a short descr.
   i have the following setup.
   a chrooted sshd running on a high port that auths some jailed users.
   i wanted to make the smtpd  that runs outside the chroot to deliver
mails inside, but
   stuck in a procmailrc hell. so i figured why not to chroot the whole smtpd?
c) files you need in the chroot: /etc/hosts /etc/resolv.conf
/etc/mail/ /etc/mail.rc (for the mail command)
   and binaries: procmail , smtpd , smtpctl, sendmail (and mutt for me )
   also in libexec: libexec/smtpd/ , libexec/lockspool , libexec/mail.local .

what do you think of the setup idea?
also if you want a how-to along with some scripts that keep binaries
up-to-date in the chroot
i will be happy to post.
Thanks :)
DsP



Re: Wireless Network GUI

2010-10-09 Thread Martin Pelikán
Giving up, my old curses code is too gross...  better sent it to /dev/null.
The only usable thing would be this piece, wrappers for
adding/deleting ipv4/6 addresses. Might be useful even for python
people, if they change err() for something they'd like.

http://sztorkie.steadynet.org/files/temp/wrapper_to_add_if_addrs.c

Examples are down there:
ifaces_change_ipv4(vether0, 192.168.192.168, 27, NULL, ADDR_DELETE);
ifaces_change_ipv6(em0, dead:beef:cafe::1, 78, 15, 30, ADDR_ADD);

Who knows, maybe I'll start to play with some GUI again, but now there
are more important things to do.
Feel free to comment.
-- 
Martin Pelikan



Re: can you track port updates with cvs diff

2010-10-09 Thread Kevin Chadwick
On Fri, 08 Oct 2010 20:03:05 -0400
William Yodlowsky will...@openbsd.org wrote:

 On 7 October 2010 at 14:52, Kevin Chadwick ma1l1i...@yahoo.co.uk wrote:
 
  I came across How to track port updates in stable in the mailing list
  archives.
  
  http://openports.se looks cool but I can't find the stable branch and
  the http://www.openbsd.org/pkg-stable.html seems to have stopped at 4.1.
 
 pkg-stable talks about updated *binary packages* for -stable, not
 updates of the ports tree.
 

fair enough I thought the only updated packages were snapshots.

 http://www.openbsd.org/faq/faq15.html#PortsSecurity
 
  Up untill now I've simply updated a current and stable ports tree.
 
 You're not mixing -current ports on a -stable src, are you?
 http://www.openbsd.org/faq/faq15.html#NoFun
 

Almost always no, occasionally if firefox works or can be made to work
easily but I was thinking about servers when posting this.

  I was wondering if there was a faster way (no download) along the lines
  of.
  
  /usr/bin/cvs -n -d server:/cvs/openbsd/ports/mail/dovecot diff
  -r -rOPENBSD_4_7 distinfo
  
  Or if anyone knows of any new sites or ways. I'm quite happy with simply
  updating the ports trees but thought I could use it to help decide
  whether to use current or stable on a certain system and when to update
  my trees.
 
 ports-changes will tell you about -stable commits; look for the
 OPENBSD_4_7 tag, for example.  There is also an unofficial Twitter feed, 
 but it has stalled.  Or, create your own by updating nightly from cron 
 with something like this (untested):
 
   cd /usr/ports  cvs -q up -rOPENBSD_4_7 | grep -E '^U '
 
 So you get email of what has been updated.  Or, parse that and rebuild
 the package... you get the idea...
 

Yeah I hadn't joined ports-changes until a couple of days ago and so
haven't gained the experience of how well stable is maintained,
however I can look at the mailing list archive and cross reference
patches etc.. The tip about the OPENBSD_4_7 tag helped, taa.

Obviously some ports are easier to gauge than others. I look up php5 and
see that current is well maintained. Stable is at 5.2.13 but there was a
major rework on the 27th jul. 5.2.14 came out on 22nd jul. The rework
moving config to /etc looks good and has many patches the name of some
of them look like they could be security backports from 5.2.14 but it
hasn't been committed. Does this mean that when committed (hopefully
without driving robert nuts) and so usually, stable php is kept upto
date security wise assuming rob and williams efforts continue, but it
just happens that at this moment a current web server with php is the
best option but normally stable would be more, shall we say guaranteed
and still secure.

I hope you don't see me as taking everything this community already does
for granted but would it take more than a tiny amount of work to add the
stable ports tree to the web cvs because looking at patches that way,
would be rather handy.

Thanks to you all,

Kc



Re: OpenBSD Vim Programming FAQ

2010-10-09 Thread Tomas Vavrys
I would like to refer to using snipmate. I don't recommend it anymore,
because I forget the syntax details very easily with it. It is better
to write everything on your own.

2010/10/9 Tomas Vavrys vav...@cleancode.cz:
 My last .vimrc.

 http://dl.dropbox.com/u/9017966/.vimrc

 2010/10/9 Tobias Ulmer tobi...@tmux.org:
 On Sat, Oct 09, 2010 at 01:27:21AM +0300, Vladimir Kirillov wrote:
 [...]
 style(9):
 Indentation is an 8 character tab. B Second level indents are four
spaces.

 B  B  B  while (cnt  20)
 B  B  B  z = a + really + long + statement + that + needs +
 B  B  B  B  B  two + lines + gets + indented + four + spaces +
 B  B  B  B  B  on + the + second + and + subsequent + lines;

 How do you guys follow this rule in vim neatly?


 set cinoptions=:0,t0,+4,(4



Monetize Leased Bank Instruments We Pay MT760

2010-10-09 Thread John Pitts
!DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.0 Transitional//EN
HTMLHEAD
META content=text/html; charset=unicode http-equiv=Content-Type
META name=GENERATOR content=MSHTML 8.00.7600.16625/HEAD
BODY
P style=TEXT-ALIGN: center class=MsoNormal align=centerBSPAN 
style=FONT-SIZE: 24ptMonetize leased Bank Instruments?xml:namespace
prefix = 
o /o:p/o:p/SPAN/B/P
P class=MsoNormalo:pnbsp;/o:p/P
P class=MsoNormalSPAN style=COLOR: rgb(31,73,125)We partnered up with
an 
asset management company that will monetize LEASED Bank Guarantees and
SBLCs. 
o:p/o:p/SPAN/P
P class=MsoNormalSPAN style=COLOR: rgb(31,73,125)Our process is very 
simple and straight forward as we are working bank to bank. To get started
we 
will need CIS and copy of instrument. We will then send LOI and letter of 
appointment (we will need that to be able to approach our banking sources
on the 
clients behalf). o:p/o:p/SPAN/P
?P class=MsoNormalSPAN style=COLOR:
rgb(31,73,125)The LOI will have the 
same terms as below (I highlighted the important parts of the 
agreement):o:p/o:p/SPAN/P
P class=MsoNormalSPAN 
style=COLOR: rgb(31,73,125)o:pnbsp;/o:p/SPAN/P
P style=TEXT-ALIGN: justify class=MsoNormalBClients Proposed 
Terms:o:p/o:p/B/P
P style=TEXT-ALIGN: justify class=MsoNormalAmount: $XX.XX
(Amount of 
Face Value of Instrument)o:p/o:p/P
P style=TEXT-ALIGN: justify class=MsoNormalLTV: Up to 85% (owned
instrument) 
Up to 75% leased instrumento:p/o:p/P
P style=TEXT-ALIGN: justify class=MsoNormalProposed Repayment Terms:
SPAN 
style=BACKGROUND: yellowSelf Liquidating, Non-Recourse, 
Non-Repayment/SPANo:p/o:p/P
P style=TEXT-ALIGN: justify class=MsoNormalo:pnbsp;/o:p/P
P class=MsoNormalUSpecial Terms:/U o:p/o:p/P
P class=MsoNormalBorrower will sign LOI and Letter of Appointment. Upon 
??countersignature from Asset Manager, Borrower will
instruct bank to issue MT760 
payable upon receipt and verification of the MT760 with the wording
provided in 
PDF Attachment. SPAN style=BACKGROUND: yellowLender will be paying fees
associated with sending and receiving MT760 upon receipt and verification of
the 
MT760. All fees of MT760 will be deducted from
proceeds./SPANo:p/o:p/P
P class=MsoNormalUpon receipt and verification of MT760 Lender will
provide a 
final contract to Borrower including all the terms, LTV,
etc.o:p/o:p/P
P class=MsoNormalUpon acceptance by BorrowerSPAN style=BACKGROUND:
yellow 
initial funding will occur within 5 to 7 business
days/SPAN.nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;
 
o:p/o:p/P
P class=MsoNormalo:pnbsp;/o:p/P
P class=MsoNormalo:pnbsp;/o:p/P
P class=MsoNormalo:pnbsp;/o:p/P
P class=MsoNormalSPAN 
style=FONT-FAMILY: 'Arial','sans-serif'; FONT-SIZE:
10ptRegards,/SPAN/P
P class=MsoNormalSPAN 
style=FONT-FAMILY: 'Arial','sans-serif'; FONT-SIZE:
10pt/SPANnbsp;/P
P class=MsoNormalSPAN 
style=FONT-FAMILY: 'Arial','sans-serif'; FONT-SIZE: 10ptFONT
size=4John 
Pitts/FONT/SPAN/P
P class=MsoNormalSPAN 
style=FONT-FAMILY: 'Arial','sans-serif'; FONT-SIZE: 10ptFONT
size=4J.E.P. 
Inc./FONT/SPAN/P
P class=MsoNormalSPAN 
style=FONT-FAMILY: 'Arial','sans-serif'; FONT-SIZE: 10ptFONT 
size=4586-838-6651/FONT/SPAN/P
P class=MsoNormalSPAN 
style=FONT-FAMILY: 'Arial','sans-serif'; FONT-SIZE: 10ptFONT
size=4Email: 
/FONTA href=mailto:jep...@jepcorp.com;FONT 
size=4jep...@jepcorp.com/FONT/A/SPAN/P/BODY/HTML



High Resolution Timer

2010-10-09 Thread Philip Guenther
On Sat, Oct 9, 2010 at 9:53 AM, Luis Useche use...@gmail.com wrote:
 I guess I don't know much about hardware to at least have some direction.
 From what I have read, it seems like timers implemented with the hpet
device
 could give me the granularity I am looking for. If I understand correctly,
 the getitimer function in Linux uses hpet.

 The problem of using busy loop is that the CPU should be free for the
 benchmark I want to run.

I still can't figure out what you're trying to do or, more
importantly, what problem you're going to this effort to try to solve.
 Good luck!


Philip Guenther



Re: Intel Link 5150 causes 05-Oct-10 snapshot hang on boot

2010-10-09 Thread Дмитрий Царьков
On Fri, Oct 8, 2010 at 9:42 PM, Jacob Meuser jake...@sdf.lonestar.org
wrote:
 you get those messages on 4.7, but on -current it hangs, is that correct?

Exactly.

 how about a full dmesg from 4.7, or a dmesg from -current up to the
 point where it hangs?

I included dmesg from 4.7 below. I don't know how to get dmesg from
4.8 as it hangs before mounting anything. Anyway, it seems to be the
same for the last several lines before system hangs:

spkr0 at pcppi0
npx0 at isa0 port 0xf0/16: reported by CPUID; using exception 16
mtrr: Pentium Pro MTRR support
uvideo0 at uhub0 port 1 configuration 1 interface 0 Sonix Technology
Co., Ltd. WebCam rev 2.00/1.00 addr 2
video0 at uvideo0

Now I have -current with the Intel module disconnected and a usb urtw
device. dmesg comes below.

 what happens if you insert the device after booting?

Didn't try that. I actually thought MiniPCI cards should not be hot
swapped... Am I wrong?

dmesg of AO531h under 4.7:

OpenBSD 4.7 (GENERIC.MP) #449: Wed Mar 17 20:55:07 MDT 2010
B  B dera...@i386.openbsd.org:/usr/src/sys/arch/i386/compile/GENERIC.MP
RTC BIOS diagnostic error 80clock_battery
cpu0: Intel(R) Atom(TM) CPU N270 @ 1.60GHz (GenuineIntel 686-class) 1.60
GHz
cpu0:
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,CFLUSH,DS,A
CPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,SSE3,MWAIT,DS-CPL,EST,TM2,xTPR
real mem B = 1060163584 (1011MB)
avail mem = 1018466304 (971MB)
RTC BIOS diagnostic error 80clock_battery
mainbus0 at root
bios0 at mainbus0: AT/286+ BIOS, date 10/06/08, SMBIOS rev. 2.4 @
0xe91c0 (31 entries)
bios0: vendor Acer version v0.3110 date 10/06/2008
bios0: Acer AO531h
acpi0 at bios0: rev 2
acpi0: tables DSDT FACP SSDT HPET APIC MCFG ASF! SLIC BOOT
acpi0: wakeup devices P32_(S4) UHC1(S3) UHC2(S3) UHC3(S3) UHC4(S3)
ECHI(S3) EXP1(S4) EXP2(S4) EXP3(S4) EXP4(S4) AZAL(S0) MODM(S0)
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: apic clock running at 133MHz
cpu1 at mainbus0: apid 1 (application processor)
cpu1: Intel(R) Atom(TM) CPU N270 @ 1.60GHz (GenuineIntel 686-class) 1.60
GHz
cpu1:
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,CFLUSH,DS,A
CPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,SSE3,MWAIT,DS-CPL,EST,TM2,xTPR
ioapic0 at mainbus0: apid 4 pa 0xfec0, version 20, 24 pins
ioapic0: misconfigured as apic 0, remapped to apid 4
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus 4 (P32_)
acpiprt2 at acpi0: bus 1 (EXP1)
acpiprt3 at acpi0: bus -1 (EXP2)
acpiprt4 at acpi0: bus 2 (EXP3)
acpiprt5 at acpi0: bus 3 (EXP4)
acpiec0 at acpi0
acpicpu0 at acpi0: C3, C2, C1, PSS
acpicpu1 at acpi0: C3, C2, C1, PSS
acpitz0 at acpi0: critical temperature 95 degC
acpibtn0 at acpi0: PWRB
acpibtn1 at acpi0: LID0
acpibtn2 at acpi0: SLPB
acpibat0 at acpi0: BAT1 not present
acpiac0 at acpi0: AC unit online
acpivideo0 at acpi0: OVGA
acpivout0 at acpivideo0: CRT1
acpivout1 at acpivideo0: DTV1
acpivout2 at acpivideo0: DFP1
acpivout3 at acpivideo0: LCD_
acpivout4 at acpivideo0: DTV2
acpivout5 at acpivideo0: DFP2
bios0: ROM list: 0xc/0xec00!
cpu0: Enhanced SpeedStep 1597 MHz: speeds: 1600, 1333, 1066, 800 MHz
pci0 at mainbus0 bus 0: configuration mode 1 (bios)
pchb0 at pci0 dev 0 function 0 Intel 82945GME Host rev 0x03
vga1 at pci0 dev 2 function 0 Intel 82945GME Video rev 0x03
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 0x4000, size 0x1000
inteldrm0 at vga1: apic 4 int 16 (irq 11)
drm0 at inteldrm0
Intel 82945GM Video rev 0x03 at pci0 dev 2 function 1 not configured
azalia0 at pci0 dev 27 function 0 Intel 82801GB HD Audio rev 0x02:
apic 4 int 16 (irq 11)
azalia0: codecs: Realtek ALC272
audio0 at azalia0
ppb0 at pci0 dev 28 function 0 Intel 82801GB PCIE rev 0x02: apic 4
int 16 (irq 255)
pci1 at ppb0 bus 1
ale0 at pci1 dev 0 function 0 Attansic Technology L1E rev 0xb0:
AR8113, apic 4 int 16 (irq 11), address 00:26:9e:00:53:d1
atphy0 at ale0 phy 0: F1 10/100/1000 PHY, rev. 9
ppb1 at pci0 dev 28 function 2 Intel 82801GB PCIE rev 0x02: apic 4
int 18 (irq 255)
pci2 at ppb1 bus 2
iwn0 at pci2 dev 0 function 0 Intel WiFi Link 5150 rev 0x00: apic 4
int 18 (irq 11), MIMO 1T2R, ABG, address 00:16:eb:0e:7d:62
ppb2 at pci0 dev 28 function 3 Intel 82801GB PCIE rev 0x02: apic 4
int 19 (irq 255)
pci3 at ppb2 bus 3
uhci0 at pci0 dev 29 function 0 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
ppb3 at pci0 dev 30 function 0 Intel 

Re: Netbook for OpenBSD?

2010-10-09 Thread Daniel B.
On Thu, 7 Oct 2010, Mikle Krutov wrote:

 If nothing fits, please give me a recommendation which usb wireless card
 should i use. 

Have been using Lenovo S10-2 + rum(4) USB wireless NIC. You should look 
at Lenovo S10-3 too. Seems fine, but I would rather buy some with ~11 
LCD with higher resolution than 1024x600.



Re: Intel Link 5150 causes 05-Oct-10 snapshot hang on boot

2010-10-09 Thread Дмитрий Царьков
Sorry, the last dmesg was of 05-Oct-10 snapshot, not of 4.7.

--
Dmitrij D. Czarkoff



Re: FreeBSD isn't Free

2010-10-09 Thread Alex Libman
Huge kudos to Theo  friends for creating the freest fully-functional OS
in existence!  Licensing politics (see http://copyFREE.org) is a big
reason why I switched to OpenBSD, even on the desktop, but it isn't a
black-and-white issue.  There are some things that FreeBSD does right.

I would like to see OpenBSD become even more of a leader in getting rid
of restrictive licenses (both proprietary copyRIGHT and anti-free-market
copyLEFT) by replacing things like gcc + toolchain, groff, lynx, etc.
Apache, sendmail, and artsy licenses (i.e. perl) aren't really copyFREE
either (I have a 256 word threshold for legalese).  The dependence on
perl in particular is a significant downside...


-- Alex Libman, http://AlexLibman.com



Re: Can't boot from 05-Oct-2010 snapshot's install48.iso

2010-10-09 Thread Дмитрий Царьков
On Fri, Oct 8, 2010 at 11:15 AM, Kevin Chadwick ma1l1i...@yahoo.co.uk wrote:
  On Fri, Oct 08, 2010 at 06:24:23AM +0200, Dmitrij D. Czarkoff wrote:
   I've downloaded the bsd.rd and booted it with the same result - booting
   process stops at the same point. The system still reacts on Num Lock.

 It's not Windows and won't make you remove all your drivers or
 chunks of the registry, so you could install on another pc and transfer
 the drive.

Sorry, but what part of booting didn't You understand?

-- 
Dmitrij D. Czarkoff



Re: opensmtpd chroot success ;)

2010-10-09 Thread Gilles Chehade

 On 10/9/2010 9:11 PM, ramrunner wrote:

Hey list!
a) opensmtpd kicks ass! thanks!
b) i managed to chroot it (didn't find that on any list though) so
here is a short descr.
i have the following setup.
a chrooted sshd running on a high port that auths some jailed users.
i wanted to make the smtpd  that runs outside the chroot to deliver
mails inside, but
stuck in a procmailrc hell. so i figured why not to chroot the whole smtpd?
Just for the record, there's not a lot of benefit from chrooting the 
whole smtpd
as all processes that are exposed to user input are chrooted. The only 
processes
that are not chrooted are those who open mailbox/maildirs/external mda 
or that

do lookups.


c) files you need in the chroot: /etc/hosts /etc/resolv.conf
/etc/mail/ /etc/mail.rc (for the mail command)
and binaries: procmail , smtpd , smtpctl, sendmail (and mutt for me )
also in libexec: libexec/smtpd/ , libexec/lockspool , libexec/mail.local .

what do you think of the setup idea?

Not much outside of the fun and educational factor ;-)

Gilles



nouveaux vid�o de d�monstration peinture d�corative+d�corateur virtuel

2010-10-09 Thread contact
Newsletter : SI.BRICOLAGE,cires,tadelak t,stucco,peinture coloris
tunisie,peinture decorative,valsatin,effet dune de sable
-

nouveaux vidios +dicorateur virtuel

  * antirouille 2 en 1

  * peinture valsatin

  * cires

  * peinture effet sable

Agenda

. 

  * [IMAGE]

  * [IMAGE]

  * [IMAGE]

  * [IMAGE]

  * [IMAGE]

  * [IMAGE]

  * [IMAGE]

  * [IMAGE]

  * [IMAGE]

  * [IMAGE]

  * [IMAGE]

  * [IMAGE]

SI.BRICOLAGE,cires,tadelakt,stucco,peinture coloris tunisie,peinture
decorative,valsatin,effet dune de sable.
Cliquez ici pour vous desabonner



C - really weird behavior only at openbsd

2010-10-09 Thread merlyn
Hi all,

I'm facing really weird behavior of simple C program
running under OpenBSD (4.7 and CURRENT).

The code follows. The output also. The file to test the program with
is also inline attached.

The decomp procedure reads input, writes it to the stdout. All 4-chars
preceeded by number are printer number times (e.g. 4abcd -
abcdabcdabcdabcd).

./a.c  test_file.txt
should have output
a bb
ccc  

however it sometimes ( 1 from 3 tryies, sometimes 1 from 20 or even 1
from 40)

looks like
a bb
c
cc



I've tryied this code with OpenBSD 4.7, OpenBSD CURRENT, CentOS Linux,
FreeBSD 8.0 (all i386 arch), but the problem occurs only at OpenBSD (both
versions).

Does anyone know please where could be the problem? Because I have
really no idea.

Thanks a lot,
Milan Bartos



 CODE ---

#include stdio.h
#include stdlib.h

void decomp(unsigned int N){
char *pole;
pole=malloc( sizeof(char) * N );
char character;
int i,j;
int counter;
while( (character = getchar()) != EOF){
if( isdigit(character) ){
counter=atoi(character);
for( i=0 ; i  N ; i++){
pole[i]=getchar();
}
for( i=0 ; i  counter ; i++){
for( j=0 ; j  N ; j++){
putchar(pole[j]);
}
}

}
else {
putchar(character);
}
}
}

int main(){
  unsigned int N=4;
  decomp(N);
}

- END OF CODE ---



- OUTPUT ---

 ./a  out4.txt
a bb
ccc  
 ./a  out4.txt
a bb
ccc  
 ./a  out4.txt
a bb
c
cc

 ./a  out4.txt
a bb
ccc  


-- END OF OUTPUT ---


-- TEST FILE ---
a bb
2ccc  

-- END OF TEST FILE ---


--
merlyn mer...@merlyn.cz
OpenBSD mail.merlyn.cz 4.7 GENERIC.MP#1 i386

[demime 1.01d removed an attachment of type application/pgp-signature]



Re: RAID support

2010-10-09 Thread Jean-François SIMON
Hi,

Can we add, remove or change the chunks hard drives, rebuild, without
re-constructing the RAID ?

Regards

2010/10/7 Jean-Francois jfsimon1...@gmail.com

 Hi,

 Doing tests, I could not always do properly the kick off of a rebuild.
 What is exactly the procedure for doing a rebuild with bioctl -R ?

 In particular I don't understand, when you have say a build with chunks
 sd0a
 and sd1a, then remove one chunk, plug a new one, if it doe'nt appear as sd1
 but sd2 or whatever, then how do you attach it to the raid device - which
 is
 waiting for a sd1a (the offline device) ?

 Regards



help on maximum performance from alix 1d

2010-10-09 Thread Dimitar Vassilev
Hi guys,
I got the following setup
  bridge2 gig
switches---home lab
Inet---alix 1d box with quad gigabit---
  DHCP usr lan

The alix box is alix 1d with 256mb RAM

# dmesg | more
OpenBSD 4.8-current (GENERIC) #363: Wed Sep 22 01:41:57 MDT 2010
dera...@i386.openbsd.org:/usr/src/sys/arch/i386/compile/GENERIC
cpu0: Geode(TM) Integrated Processor by AMD PCS (AuthenticAMD
586-class) 499 MHz
cpu0: FPU,DE,PSE,TSC,MSR,CX8,SEP,PGE,CMOV,CFLUSH,MMX
real mem  = 259284992 (247MB)
avail mem = 245071872 (233MB)
mainbus0 at root
bios0 at mainbus0: AT/286+ BIOS, date 06/16/08, BIOS32 rev. 0 @ 0xfa960
apm0 at bios0: Power Management spec V1.2 (slowidle)
apm0: AC on, battery charge unknown
pcibios0 at bios0: rev 2.1 @ 0xf/0xdfb4
pcibios0: PCI IRQ Routing Table rev 1.0 @ 0xfdf40/112 (5 entries)
pcibios0: bad IRQ table checksum
pcibios0: PCI BIOS has 5 Interrupt Routing table entries
pcibios0: PCI Exclusive IRQs: 5 10 11
pcibios0: no compatible PCI ICU found
pcibios0: Warning, unable to fix up PCI interrupt routing
pcibios0: PCI bus #1 is the last bus
bios0: ROM list: 0xc/0x8000 0xc8000/0xa800 0xef000/0x1000!
cpu0 at mainbus0: (uniprocessor)
amdmsr0 at mainbus0
pci0 at mainbus0 bus 0: configuration mode 1 (bios)
pchb0 at pci0 dev 1 function 0 AMD Geode LX rev 0x31
vga1 at pci0 dev 1 function 1 AMD Geode LX Video rev 0x00
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
glxsb0 at pci0 dev 1 function 2 AMD Geode LX Crypto rev 0x00: RNG AES
ppb0 at pci0 dev 12 function 0 Hint HB6 PCI-PCI rev 0x11
pci1 at ppb0 bus 1
vge0 at pci1 dev 8 function 0 VIA VT612x rev 0x11: irq 11, address
00:0c:42:1a:32:60
ciphy0 at vge0 phy 1: CS8201 10/100/1000TX PHY, rev. 2
vge1 at pci1 dev 9 function 0 VIA VT612x rev 0x11: irq 5, address
00:0c:42:1a:32:61
ciphy1 at vge1 phy 1: CS8201 10/100/1000TX PHY, rev. 2
vge2 at pci1 dev 10 function 0 VIA VT612x rev 0x11: irq 10, address
00:0c:42:1a:32:62
ciphy2 at vge2 phy 1: CS8201 10/100/1000TX PHY, rev. 2
vge3 at pci1 dev 11 function 0 VIA VT612x rev 0x11: irq 11, address
00:0c:42:1a:32:63
ciphy3 at vge3 phy 1: CS8201 10/100/1000TX PHY, rev. 2
vr0 at pci0 dev 13 function 0 VIA VT6105M RhineIII rev 0x96: irq 11,
address 00:0d:b9:0d:47:94
ukphy0 at vr0 phy 1: Generic IEEE 802.3u media interface, rev. 3: OUI
0x004063, model 0x0034
iwi0 at pci0 dev 14 function 0 Intel PRO/Wireless 2915ABG rev 0x05:
irq 10, address 00:13:ce:8a:8e:0a
glxpcib0 at pci0 dev 15 function 0 AMD CS5536 ISA rev 0x03: rev 3,
32-bit 3579545Hz timer, watchdog, gpio
gpio0 at glxpcib0: 32 pins
pciide0 at pci0 dev 15 function 2 AMD CS5536 IDE rev 0x01: DMA,
channel 0 wired to compatibility, channel 1 wired to compatibility
wd0 at pciide0 channel 0 drive 0: CF CARD 4GB
wd0: 1-sector PIO, LBA, 3847MB, 7880544 sectors
wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 2
pciide0: channel 1 ignored (disabled)
auglx0 at pci0 dev 15 function 3 AMD CS5536 Audio rev 0x01: irq 11,
CS5536 AC97
ac97: codec id 0x414c4770 (Avance Logic ALC203 rev 0)
ac97: codec features headphone, 20 bit DAC, 18 bit ADC, No 3D Stereo
audio0 at auglx0
ohci0 at pci0 dev 15 function 4 AMD CS5536 USB rev 0x02: irq 5,
version 1.0, legacy support
ehci0 at pci0 dev 15 function 5 AMD CS5536 USB rev 0x02: irq 5
usb0 at ehci0: USB revision 2.0
uhub0 at usb0 AMD EHCI root hub rev 2.00/1.00 addr 1
isa0 at glxpcib0
isadma0 at isa0
com0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo
com0: console
com1 at isa0 port 0x2f8/8 irq 3: ns16550a, 16 byte fifo
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
pcppi0 at isa0 port 0x61
spkr0 at pcppi0
lpt0 at isa0 port 0x378/4 irq 7
wbsio0 at isa0 port 0x2e/2: W83627HF rev 0x41
lm1 at wbsio0 port 0x290/8: W83627HF
npx0 at isa0 port 0xf0/16: reported by CPUID; using exception 16
usb1 at ohci0: USB revision 1.0
uhub1 at usb1 AMD OHCI root hub rev 1.00/1.00 addr 1
biomask f365 netmask ff65 ttymask 
mtrr: K6-family MTRR support (2 registers)
softraid0 at root
root on wd0a swap on wd0b dump on wd0b



Re: High Resolution Timer

2010-10-09 Thread Luis Useche
Hi Phillip,

Thanks for the response.

I guess I don't know much about hardware to at least have some direction.
From what I have read, it seems like timers implemented with the hpet device
could give me the granularity I am looking for. If I understand correctly,
the getitimer function in Linux uses hpet.

The problem of using busy loop is that the CPU should be free for the
benchmark I want to run.

In case it is relevant, the machine is an AMD Opteron with nVidia
motherboard.

Luis.

On Sat, Oct 9, 2010 at 2:40 AM, Philip Guenther guent...@gmail.com wrote:

 On 9/29/10, Luis Useche use...@gmail.com wrote:
  I need to read a performance monitoring counter (RDPMC) every 100
  microseconds or so. I found a way to do this on linux using the normal
  getitimer library. However, the resolution of this timer in OBSD is 10
  milliseconds. Do you know a way to have a higher resolution of the timer
 in
  OBSD? One way is to do a busy loop, but this is not feasible in my
 problem.

 You don't really give enough information to give good advice
 (platform?  how is the RDPMC read?  notice how many replies you've
 gotten?), but depending on the details, writing a kernel driver may be
 the most natural way.  Otherwise, a busy loop in userspace watching
 the CPU's performance counter might be an option.


 Philip Guenther



help on maximum performance from alix 1d

2010-10-09 Thread Dimitar Vassilev
Hi guys,
I got the following setup
  bridge2 gig
switches---home lab
Inet---alix 1d box with quad gigabit---
  DHCP usr lan

The alix box is alix 1d with 256mb RAM and from home lab 2 home lab
segment I'm able to get gigabit speed. my problem is that from usr lan
to home lab, I'm able to get 150 mbit/s max though all interfaces are
gig ones.
If someone can point me where my fault is - e.g. bad pf rules or etc,
I'd be very grateful
Below are the details of my setup. Sorry for hitting the send button
too quickly.
Best regards,
Dimitar

# dmesg | more
OpenBSD 4.8-current (GENERIC) #363: Wed Sep 22 01:41:57 MDT 2010
dera...@i386.openbsd.org:/usr/src/sys/arch/i386/compile/GENERIC
cpu0: Geode(TM) Integrated Processor by AMD PCS (AuthenticAMD
586-class) 499 MHz
cpu0: FPU,DE,PSE,TSC,MSR,CX8,SEP,PGE,CMOV,CFLUSH,MMX
real mem  = 259284992 (247MB)
avail mem = 245071872 (233MB)
mainbus0 at root
bios0 at mainbus0: AT/286+ BIOS, date 06/16/08, BIOS32 rev. 0 @ 0xfa960
apm0 at bios0: Power Management spec V1.2 (slowidle)
apm0: AC on, battery charge unknown
pcibios0 at bios0: rev 2.1 @ 0xf/0xdfb4
pcibios0: PCI IRQ Routing Table rev 1.0 @ 0xfdf40/112 (5 entries)
pcibios0: bad IRQ table checksum
pcibios0: PCI BIOS has 5 Interrupt Routing table entries
pcibios0: PCI Exclusive IRQs: 5 10 11
pcibios0: no compatible PCI ICU found
pcibios0: Warning, unable to fix up PCI interrupt routing
pcibios0: PCI bus #1 is the last bus
bios0: ROM list: 0xc/0x8000 0xc8000/0xa800 0xef000/0x1000!
cpu0 at mainbus0: (uniprocessor)
amdmsr0 at mainbus0
pci0 at mainbus0 bus 0: configuration mode 1 (bios)
pchb0 at pci0 dev 1 function 0 AMD Geode LX rev 0x31
vga1 at pci0 dev 1 function 1 AMD Geode LX Video rev 0x00
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
glxsb0 at pci0 dev 1 function 2 AMD Geode LX Crypto rev 0x00: RNG AES
ppb0 at pci0 dev 12 function 0 Hint HB6 PCI-PCI rev 0x11
pci1 at ppb0 bus 1
vge0 at pci1 dev 8 function 0 VIA VT612x rev 0x11: irq 11, address
00:0c:42:1a:32:60
ciphy0 at vge0 phy 1: CS8201 10/100/1000TX PHY, rev. 2
vge1 at pci1 dev 9 function 0 VIA VT612x rev 0x11: irq 5, address
00:0c:42:1a:32:61
ciphy1 at vge1 phy 1: CS8201 10/100/1000TX PHY, rev. 2
vge2 at pci1 dev 10 function 0 VIA VT612x rev 0x11: irq 10, address
00:0c:42:1a:32:62
ciphy2 at vge2 phy 1: CS8201 10/100/1000TX PHY, rev. 2
vge3 at pci1 dev 11 function 0 VIA VT612x rev 0x11: irq 11, address
00:0c:42:1a:32:63
ciphy3 at vge3 phy 1: CS8201 10/100/1000TX PHY, rev. 2
vr0 at pci0 dev 13 function 0 VIA VT6105M RhineIII rev 0x96: irq 11,
address 00:0d:b9:0d:47:94
ukphy0 at vr0 phy 1: Generic IEEE 802.3u media interface, rev. 3: OUI
0x004063, model 0x0034
iwi0 at pci0 dev 14 function 0 Intel PRO/Wireless 2915ABG rev 0x05:
irq 10, address 00:13:ce:8a:8e:0a
glxpcib0 at pci0 dev 15 function 0 AMD CS5536 ISA rev 0x03: rev 3,
32-bit 3579545Hz timer, watchdog, gpio
gpio0 at glxpcib0: 32 pins
pciide0 at pci0 dev 15 function 2 AMD CS5536 IDE rev 0x01: DMA,
channel 0 wired to compatibility, channel 1 wired to compatibility
wd0 at pciide0 channel 0 drive 0: CF CARD 4GB
wd0: 1-sector PIO, LBA, 3847MB, 7880544 sectors
wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 2
pciide0: channel 1 ignored (disabled)
auglx0 at pci0 dev 15 function 3 AMD CS5536 Audio rev 0x01: irq 11,
CS5536 AC97
ac97: codec id 0x414c4770 (Avance Logic ALC203 rev 0)
ac97: codec features headphone, 20 bit DAC, 18 bit ADC, No 3D Stereo
audio0 at auglx0
ohci0 at pci0 dev 15 function 4 AMD CS5536 USB rev 0x02: irq 5,
version 1.0, legacy support
ehci0 at pci0 dev 15 function 5 AMD CS5536 USB rev 0x02: irq 5
usb0 at ehci0: USB revision 2.0
uhub0 at usb0 AMD EHCI root hub rev 2.00/1.00 addr 1
isa0 at glxpcib0
isadma0 at isa0
com0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo
com0: console
com1 at isa0 port 0x2f8/8 irq 3: ns16550a, 16 byte fifo
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
pcppi0 at isa0 port 0x61
spkr0 at pcppi0
lpt0 at isa0 port 0x378/4 irq 7
wbsio0 at isa0 port 0x2e/2: W83627HF rev 0x41
lm1 at wbsio0 port 0x290/8: W83627HF
npx0 at isa0 port 0xf0/16: reported by CPUID; using exception 16
usb1 at ohci0: USB revision 1.0
uhub1 at usb1 AMD OHCI root hub rev 1.00/1.00 addr 1
biomask f365 netmask ff65 ttymask 
mtrr: K6-family MTRR support (2 registers)
softraid0 at root
root on wd0a swap on wd0b dump on wd0b

# more hostname.bridge0
add vlan10
add vlan11
blocknonip vlan10
blocknonip vlan11
maxaddr 2000
up


# more hostname.vlan11
up vlan 10 vlandev vge3 descr IPMP_NODE2
# more hostname.vlan10
inet xxx NONE vlan 10 vlandev vge2 descr IPMP_NODE1
!route add -net /24 
#


# more /etc/pf.conf
#   $OpenBSD: pf.conf,v 1.49 2009/09/17 06:39:03 jmc Exp $
#
# See pf.conf(5) for syntax and examples.
# Remember to 

Re: C - really weird behavior only at openbsd

2010-10-09 Thread patrick keshishian
On Sat, Oct 9, 2010 at 9:36 AM, merlyn mer...@merlyn.cz wrote:
 Hi all,

 I'm facing really weird behavior of simple C program
 running under OpenBSD (4.7 and CURRENT).

 The code follows. The output also. The file to test the program with
 is also inline attached.

 The decomp procedure reads input, writes it to the stdout. All 4-chars
 preceeded by number are printer number times (e.g. 4abcd -
 abcdabcdabcdabcd).

 ./a.c  test_file.txt
 should have output
 a bb
 ccc  

 however it sometimes ( 1 from 3 tryies, sometimes 1 from 20 or even 1
 from 40)

 looks like
 a bb

c
 cc
 


 I've tryied this code with OpenBSD 4.7, OpenBSD CURRENT, CentOS Linux,
 FreeBSD 8.0 (all i386 arch), but the problem occurs only at OpenBSD (both
 versions).

 Does anyone know please where could be the problem? Because I have
 really no idea.

 Thanks a lot,
 Milan Bartos



  CODE ---

 #include stdio.h
 #include stdlib.h

 void decomp(unsigned int N){
char *pole;
pole=malloc( sizeof(char) * N );
char character;
int i,j;
int counter;
while( (character = getchar()) != EOF){
if( isdigit(character) ){
counter=atoi(character);

really? character is _not_ a C-string. This is your bug.

--patrick


for( i=0 ; i  N ; i++){
pole[i]=getchar();
}
for( i=0 ; i  counter ; i++){
for( j=0 ; j  N ; j++){
putchar(pole[j]);
}
}

}
else {
putchar(character);
}
}
 }

 int main(){
  unsigned int N=4;
  decomp(N);
 }

 - END OF CODE ---



 - OUTPUT ---

 ./a  out4.txt
 a bb
 ccc  
 ./a  out4.txt
 a bb
 ccc  
 ./a  out4.txt
 a bb

c
 cc
 
 ./a  out4.txt
 a bb
 ccc  


 -- END OF OUTPUT ---


 -- TEST FILE ---
 a bb
 2ccc  

 -- END OF TEST FILE ---


 --
 merlyn mer...@merlyn.cz
 OpenBSD mail.merlyn.cz 4.7 GENERIC.MP#1 i386

 [demime 1.01d removed an attachment of type application/pgp-signature]