Re: cannot nfs mount an mfs

2008-12-01 Thread Alexander Hall

[EMAIL PROTECTED] wrote:

I'm trying to export an mfs filesystem, but it seems not to work.

fstab reads

/dev/wd0b  /tmp mfs rw,nosuid,-s=524288 0 0

exports reads

/tmp-maproot=root -alldirs clientname

The client can mount but any I/O results in

# mkdir /tmp/shared
# mount -t nfs 192.168.1.10:/tmp /tmp/shared
# ls /tmp/shared
ls: /tmp/shared: Input/output error

If I try to export a subdirectory, and mount that, I get a file protection
error on the mount attempt.

Is this possible, or is there simply no solution?


I've also failed doing this and no, and I don't think its expected to 
work. I pretty sure similar issues exists for exporting other types of 
filesystems too (e.g. msdos).


/Alexander



Re: bioctl and RAID0 -- RAID1+0 and 0+1?

2008-12-01 Thread Lars Noodén
Marco Peereboom wrote:
 This will work although I have not written all the magic to make it
 pretty.  

Is there any information you would like collected?  I might get some old
Dell Pentium IV's and old WD400-something IDE drives working for either
a 4-piece RAID O or else try RAID 0+1 and RAID 1+0.

 I will at some point make this into an actual raid type so that
 it is a single create statement instead of several.  I do not recommend
 using it this way.


-Lars



Re: OpenBSD 4.4-release installation hangs on large disk (x86)

2008-12-01 Thread Chris
On Mon, Dec 1, 2008 at 12:19 AM, Richard Toohey
[EMAIL PROTECTED] wrote:
 I've got a couple of Dell SC440s with the same sort of set-up, and
 no problems here.

 Two 500Gb drives, wd0 and wd1:

I have resolved this issue. I tried the installation again and this
time selected fdisk before selecting disk label. Under fdisk I could
see 4 partitions 0, 1, 2 and 3 (#3 is where OpenBSD was installed); 0,
1 and 2 were labeled as unused. I flagged 0, 1 and 2 as disable and
the installation went smoothly.



Re: cannot nfs mount an mfs

2008-12-01 Thread Alexander Hall

Alexander Hall wrote:

[EMAIL PROTECTED] wrote:

I'm trying to export an mfs filesystem, but it seems not to work.

fstab reads

/dev/wd0b  /tmp mfs rw,nosuid,-s=524288 0 0

exports reads

/tmp-maproot=root -alldirs clientname

The client can mount but any I/O results in

# mkdir /tmp/shared
# mount -t nfs 192.168.1.10:/tmp /tmp/shared
# ls /tmp/shared
ls: /tmp/shared: Input/output error

If I try to export a subdirectory, and mount that, I get a file 
protection

error on the mount attempt.

Is this possible, or is there simply no solution?


I've also failed doing this and no, and I don't think its expected to 
work. I pretty sure similar issues exists for exporting other types of 
filesystems too (e.g. msdos).


Came up with a somewhat hack-like solution to this issue though:

1. Create an mfs somewhere.
2. Create an empty file filling the entire mfs
3. Configure a vnd device to use the image file
4. Initialize the vnd disk (fdisk + disklabel) and create an
   ordinary ffs filesystem.
5. newfs the filesystem
6. mount the filesystem
7. export the filesystem

(Test output below)

Worked for me! :-)

What did _not_work for me was using a file with holes (eg using dd with 
seek=...) but I suspect that is a limitation or feature of vnd rather 
than an nfs related issue.


/Alexander

- - - - - - - - - - - - - - - - - -

$ cd /tmp
$ mkdir mfs
$ sudo mount_mfs -s 40960 swap /tmp/mfs
$ cd /tmp/mfs/
$ dd if=/dev/zero of=image bs=64k

/tmp/mfs: write failed, file system is full
dd: image: No space left on device
294+0 records in
293+0 records out
19202048 bytes transferred in 0.058 secs (330414661 bytes/sec)
$ sudo vnconfig /dev/vnd0c image
$ cd ..
$ mkdir mfs.ffs
$ sudo fdisk -yi /dev/rvnd0c

-
-- ATTENTION - UPDATING MASTER BOOT RECORD --
-
Warning CHS values out of bounds only saving LBA values
$ echo 'a\na\n\n\n\nw\nq\n' | sudo disklabel -E /dev/rvnd0c
# Inside MBR partition 3: type A6 start 100 size 37400
Treating sectors 100-37500 as the OpenBSD portion of the disk.
You can use the 'b' command to change this.

Initial label editor (enter '?' for help at any prompt)
 partition: [a] offset: [100] size: [37400] FS type: [4.2BSD]   No 
label changes.

$ sudo newfs /dev/rvnd0a
newfs: reduced number of fragments per cylinder group from 2336 to 2320 
to enlarge last cylinder group

/dev/rvnd0a: 18.3MB in 37400 sectors of 512 bytes
5 cylinder groups of 4.53MB, 290 blocks, 640 inodes each
super-block backups (for fsck -b #) at:
 32, 9312, 18592, 27872, 37152,
$ sudo mount /dev/vnd0a mfs.ffs
$ cd mfs.ffs
$ sudo touch testfile
$
I-search:
$ sudo mount /dev/vnd0a mfs.ffs
$ sudo vi /etc/exports
$ sudo pkill -HUP mountd



Mail-ClamAV

2008-12-01 Thread Mariusz Makowski
Hello,

I am trying to compile perl Mail-ClamAV-0.22
(http://search.cpan.org/~sabeck/Mail-ClamAV-0.22/ClamAV.pm) for
Mailscanner clamavmodule  for virus checking.


At the beginning i had problem with:


-- shell --
seth:~/Mail-ClamAV-0.22 # perl Makefile.PL
Checking if your kit is complete...
Looks good
Note (probably harmless): No library found for -lclamav
Writing Makefile for Mail::ClamAV
-- shell --


And i solved the problem with editing two files:


/usr/libdata/perl5/i386-openbsd/5.8.8/Config.pm
/usr/libdata/perl5/i386-openbsd/5.8.8/Config_heavy.pl


Replacing line in
Config.pl
From: libpth = '/usr/lib',
To: libpth = '/usr/lib /usr/local/lib',

And
Config_heavy.pl
From: libpth='/usr/lib'
To: libpth='/usr/lib /usr/local/lib'


And now there are no errors with missing library:


-- shell --
seth:~/Mail-ClamAV-0.22 # perl Makefile.PL
Checking if your kit is complete...
Looks good
Writing Makefile for Mail::ClamAV
-- shell --


And also make accomplished successfully
Now i have another problem with make test and pthreads:


-- shell --
seth:~/Mail-ClamAV-0.22 # make test
PERL_DL_NONLAZY=1 /usr/bin/perl -MExtUtils::Command::MM -e
test_harness(0, 'blib/lib', 'blib/arch') t/*.t
t/Mail-ClamAV/usr/bin/perl:/usr/local/lib/libclamav.so.8.0:
undefined symbol 'pthread_create'
/usr/bin/perl:/usr/local/lib/libclamav.so.8.0: undefined symbol
'pthread_getspecific'
/usr/bin/perl:/usr/local/lib/libclamav.so.8.0: undefined symbol
'pthread_key_delete'
/usr/bin/perl:/usr/local/lib/libclamav.so.8.0: undefined symbol
'pthread_once'
/usr/bin/perl:/usr/local/lib/libclamav.so.8.0: undefined symbol
'pthread_key_create'
/usr/bin/perl:/usr/local/lib/libclamav.so.8.0: undefined symbol
'pthread_mutex_unlock'
/usr/bin/perl:/usr/local/lib/libclamav.so.8.0: undefined symbol
'pthread_mutex_lock'
/usr/bin/perl:/usr/local/lib/libclamav.so.8.0: undefined symbol
'pthread_join'
/usr/bin/perl:/usr/local/lib/libclamav.so.8.0: undefined symbol
'pthread_setspecific'
t/Mail-ClamAVok 1/10LibClamAV Warning:
***
LibClamAV Warning: ***  This version of the ClamAV engine is
outdated. ***
LibClamAV Warning: *** DON'T PANIC! Read
http://www.clamav.net/support/faq ***
LibClamAV Warning:
***
t/Mail-ClamAVdubious
Test returned status 0 (wstat 139, 0x8b)
DIED. FAILED tests 3-10
Failed 8/10 tests, 20.00% okay
Failed Test Stat Wstat Total Fail  Failed  List of Failed
---
t/Mail-ClamAV.t0   13910   16 160.00%  3-10
Failed 1/1 test scripts, 0.00% okay. 8/10 subtests failed, 20.00% okay.
*** Error code 255

Stop in /home/cnav/Mail-ClamAV-0.22 (line 761 of Makefile).
-- shell --


--  line 761 of Makefile --
Line 761:
test_dynamic :: pure_all
  PERL_DL_NONLAZY=1 $(FULLPERLRUN) -MExtUtils::Command::MM -e
test_harness($(TEST_VERBOSE), '$(INST_LIB)', '$(INST_ARCHLIB)')
$(TEST_FILES)
--  line 761 of Makefile --


And now i am not quite sure how to solve this problem.
Here are additional output from my system:



-- shell --
seth:~/Mail-ClamAV-0.22 # clamav-config --libs
-L/usr/local/lib -lz -L/usr/local/lib -lbz2 -R/usr/local/lib
-L/usr/local/lib -lgmp -R/usr/local/lib -liconv

seth:~/Mail-ClamAV-0.22 # pkg_info | grep clamav
clamav-0.93.3   virus scanner
-- shell --


As far as i checked in ports clamav is builded with pthread support.


-- random cut clamav Makefile from ports --
WANTLIB=c milter pthread wrap z
CONFIGURE_ENV+=   LDFLAGS=-lpthread -L/usr/lib -L../libclamav/.libs
-L${LOCALBASE}/lib \
  CPPFLAGS=-I/usr/include -I${LOCALBASE}/include
-- random cut clamav Makefile from ports --


If any of you have any ideas how to solve this problem, please help.


Regards,
 Mariusz Makowski



OpenBSD and XenSource

2008-12-01 Thread Stephan A. Rickauer
Those of you interested in running OpenBSD as a Xen guest in
XenEnterprise might want to use this opportunity to raise their voice:

http://forums.citrix.com/thread.jspa?threadID=151525

(Please note I have no intention to discus the boon and bane of
virtualization...)

Cheers,
Stephan

-- 
---
StarTek - secure by design   Tel  ++41 44 500 111-0
Postfach 19  Fax  ++41 44 500 111-2
CH-8118 Pfaffhausen/ZH   Web  http://startek.ch

RSA public key: http://startek.ch/people/star/publickey.asc
---



Re: bash for root?

2008-12-01 Thread Juan Miscaro
2008/11/30 Nick Holland [EMAIL PROTECTED]:
 farhan ahmed wrote:
 Question is how can you make shell statically linked? I thought when you
 install package it should be linked rather than manual compiling and
 installing

 I think that is best left as an exercise for the asker.

 Here's what it boils down to:
 There is nothing wrong with a properly implemented 'bash' or any
 other shell for root.  Hint: when the system comes up single user
 mode, it will ASK you what shell to use.  The statically compiled
 part isn't even critical in OpenBSD, unless you are intent on
 running bash in single-user mode before all partitions are mounted.

 The problem is when you break things, you break 'em BIG.  Original
 thread is a case in point.  You win awards for courage, not wisdom,
 for still being intent on using bash as the root shell while you are
 still walking with a limp from your last experience.

 There's a lot of stuff that can go wrong when changing a user's
 default shell over the lifecycles of the system (think upgrades!),
 virtually all operator error, all avoidable, but errors that can
 happen tend to happen.  When you break JoeAverage's account, no big
 deal, as long as you can get back as root and fix it.  When you
 break root, you have a problem.  Yes, the goal is to do everything
 right, but another goal is to make it more difficult to do things
 wrong.

 If you don't know how to do it right, test it right, and recover it
 right, don't change the root shell.  I realize how it is such finger
 breaking work to type the five keystrokes b a s h [enter] at a
 command prompt after logging in...so horrible, I know, but until you
 know what you are doing, just manually invoke bash.

 You will know you know what you are doing when you realize you don't
 need or want to use bash on OpenBSD.  The only good reason I've
 found to use bash on OpenBSD is to make it feel like some other OS,
 and that's really not a good thing when you are administering the
 system (i.e., logging in as root!).

 ksh rocks on OpenBSD. :)

 Nick.



Why not set up a user (ex: bigguy) and then force his uid and gid to
be 0 and 0 with vipw?  Give that user a nice coloured bash prompt and
set up directories in his home.  This way you get a customized
superuser while keeping the real root environment pristine.

/juan



Re: cannot nfs mount an mfs

2008-12-01 Thread j
 Alexander Hall wrote:
 snip...


Thanks!  Somehow I find this hack both very creative and amusing at the
same time.  (How deep are the filesystem layers?)

I wonder if there is a technical reason why plain exports do not work.


--John



Re: cannot nfs mount an mfs

2008-12-01 Thread Christiano Farina Haesbaert
Try removing the nosuid option from fstab, I had a similar problem and it
fixed.

Best Regards.

2008/12/1 [EMAIL PROTECTED]

 I'm trying to export an mfs filesystem, but it seems not to work.

 fstab reads

 /dev/wd0b  /tmp mfs rw,nosuid,-s=524288 0 0

 exports reads

 /tmp-maproot=root -alldirs clientname

 The client can mount but any I/O results in

 # mkdir /tmp/shared
 # mount -t nfs 192.168.1.10:/tmp /tmp/shared
 # ls /tmp/shared
 ls: /tmp/shared: Input/output error

 If I try to export a subdirectory, and mount that, I get a file protection
 error on the mount attempt.

 Is this possible, or is there simply no solution?


 --John



sendmail and PF

2008-12-01 Thread Jay Torrini
Hi there,

I am trying to use sendmail to send messages from a self-protecting
server running PF. I'm only interested in sending mail from the
server itself so the default configuration of sendmail is fine. Sendmail
works as expected when PF is disabled, and fails (obviously) when it's
enabled. I have a default-deny policy for PF. What do I need to do to
allow sendmail to work properly behind my firewall? I've been playing
with all sorts of things but so far I've had no luck.
I'd really appreciate any help or pointers here.



Deadline for DCBSDCon 2009 Call for Papers

2008-12-01 Thread Jason Dixon
A quick reminder that today is the last day for CFP submissions for the
2009 DCBSDCon conference!  Interested speakers should submit their
abstracts to [EMAIL PROTECTED]

Main Website: http://www.dcbsdcon.org/
Call For Papers: http://www.dcbsdcon.org/cfp.html

Thanks,

-- 
Jason Dixon
DixonGroup Consulting
http://www.dixongroup.net/



Re: bash for root?

2008-12-01 Thread Jurjen Oskam
On Sun, Nov 30, 2008 at 11:11:53AM -0500, Nick Holland wrote:

 need or want to use bash on OpenBSD.  The only good reason I've
 found to use bash on OpenBSD is to make it feel like some other OS,

Another reason I've found is the option set -o pipefail, which is
handy when you want the ERR trap to fire when any single command
of a set of piped commands exits non-zero.

(If there's a better way of doing things, I'd love to hear about it...)

-- 
Jurjen Oskam

Savage's Law of Expediency:
You want it bad, you'll get it bad.



Re: sendmail and PF

2008-12-01 Thread Jason Dixon
On Mon, Dec 01, 2008 at 10:43:25AM -0700, Jay Torrini wrote:
 Hi there,
 
 I am trying to use sendmail to send messages from a self-protecting
 server running PF. I'm only interested in sending mail from the
 server itself so the default configuration of sendmail is fine. Sendmail
 works as expected when PF is disabled, and fails (obviously) when it's
 enabled. I have a default-deny policy for PF. What do I need to do to
 allow sendmail to work properly behind my firewall? I've been playing
 with all sorts of things but so far I've had no luck.
 I'd really appreciate any help or pointers here.
 
Short answer:
pass out on $ext_if from ($ext_if) to any port smtp

Long answer:
Show us your ruleset so we can give you a useful answer.


(ok, os that was only a few bytes longer)

-- 
Jason Dixon
DixonGroup Consulting
http://www.dixongroup.net/



Re: voip card

2008-12-01 Thread Stuart Henderson
On 2008-12-01, sonjaya [EMAIL PROTECTED] wrote:
 Dear all

 do you have anyone here using voip card ( digium , sangoma etc ) in
 openbsd , i will be thank's if someone share 


no, but there are PSTN/SIP gateways which cost about the same as the
cards (e.g. patton)



Re: sendmail and PF

2008-12-01 Thread Jay Torrini
Just need to know what to let in.

ext_if=dc0
trusted = REMOVED
webports = { http }
table blockedips persist file /etc/pf.blockedip.conf

set block-policy return
set optimization aggressive
scrub in all

antispoof for $ext_if

pass in quick on $ext_if inet proto tcp from $trusted to $ext_if port ssh

block in log (all) all

block in quick from blockedips

pass in on $ext_if proto tcp from any to $ext_if port $webports

pass in on $ext_if inet proto tcp from any to any port domain
pass in on $ext_if inet proto tcp from any to any port smtp

On Mon, Dec 1, 2008 at 11:26 AM, Jason Dixon [EMAIL PROTECTED] wrote:

 Short answer:
 pass out on $ext_if from ($ext_if) to any port smtp

 Long answer:
 Show us your ruleset so we can give you a useful answer.


 (ok, os that was only a few bytes longer)

 --
 Jason Dixon
 DixonGroup Consulting
 http://www.dixongroup.net/



Re: bash for root?

2008-12-01 Thread Nick Holland

Juan Miscaro wrote:
...

Why not set up a user (ex: bigguy) and then force his uid and gid to
be 0 and 0 with vipw?  Give that user a nice coloured bash prompt and
set up directories in his home.  This way you get a customized
superuser while keeping the real root environment pristine.


Other than generating duplicate user number error reports from the 
nightly security check, the generally bad idea of duplicate user 
numbers, creating confusion and ambiguity that doesn't need to be there, 
the likelihood that you will have forgot the 'root' password when you 
need it and being a really silly way to solve a completely non-problem? 
 No reason at all.


Why not switch the keycaps around on your keyboard?
Why not wear mis-matched shoes?
(those are bad examples, I can come up with justifications for doing 
them...)


Some people are really convinced their feet need holes.  The 
(non)problem doesn't justify your solution -- and the real problems it 
would create.



Nick.



Re: OpenBSD and XenSource

2008-12-01 Thread tico

Stephan A. Rickauer wrote:

Those of you interested in running OpenBSD as a Xen guest in
XenEnterprise might want to use this opportunity to raise their voice:

http://forums.citrix.com/thread.jspa?threadID=151525
  
Stephan, thanks for the notice -- I just posted my $0.02 on that board 
as well. If you manage to make any progress in your efforts (or any one 
else's) to run OpenBSD under Xen with any amount of usefulness, I'd be 
interested to hear about it. Feel free to contact me off-list.


Cheers!
-Tico



tester: disregard

2008-12-01 Thread Steven
tester: disregard



dmesg Asus EEE Box 202

2008-12-01 Thread Sven Wolf
Hello,

I've successfully installed OpenBSD -current on a Asus EEE Box 202.
There are some minor issues:

- only the bsd.rd and bsd.mp kernel boots the system, bsd just stops at
entry point 0x200120

- re0 detected wrong media options (10BaseT), so I set it manually to
100basetx full-duplex


I didn't test sound and wireless lan but as far as I know ral0 and
azalia0 are the same than in the Asus EEE PC 1000H and there wireless
lan and sound works without any problems.

Best regards,
Sven
[EMAIL PROTECTED]@[EMAIL PROTECTED] at acpi0: PWRB

acpivideo at acpi0 not configured

bios0: ROM list: 0xc/0xec00! 0xcf000/0x1000

cpu0: unknown Enhanced SpeedStep CPU, msr 0x060f0c2606000c26

cpu0: using only highest and lowest power states

cpu0: Enhanced SpeedStep 1600 MHz (1308 mV): speeds: 1600, 800 MHz

pci0 at mainbus0 bus 0: configuration mode 1\^C\M-`\^_\M-=\^C\M-p\^_\M-=\^C 
\M-=\^C\^P \M-=\^C  \M-=\^C0 \M-=\^C@ \M-=\^CP \M-=\^C` \M-=\^Cp \M-=\^C\M^@ 
\M-=\^C\M^P \M-=\^C\240 \M-=\^C\M-0 \M-=\^C\M-@ \M-=\^C\M-P \M-=\^C\M-` 
\M-=\^C\M-p \M-=\^C!\M-=\^C\^P!\M-=\^C [EMAIL PROTECTED]@[EMAIL PROTECTED]

wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)

w\^C\M-`\M-=\^C\M-p\M-=\^C#\M-=\^C\^P#\M-=\^C [EMAIL PROTECTED]@[EMAIL 
PROTECTED] [EMAIL PROTECTED]@[EMAIL PROTECTED] at vga1

drm0 at inteldrm0

Intel 82945GM Video rev 0x03\^C\M-`%\M-=\^C\M-p%\M-=\^C\M-=\^C\^P\M-=\^C 
\M-=\^C0\M-=\^C@\M-=\^CP\M-=\^C`\M-=\^Cp\M-=\^C\M^@\M-=\^C\M^P\M-=\^C\240\M-=\^C\M-0\M-=\^C\M-@\M-=\^C\M-P\M-=function
 0 Intel 82801GB HD Audio rev 0x02: apic 2 int 16 (irq 5)

azalia0: codecs: Realtek ALC888

audio0 at azalia0

ppb0 at pci0 dev 28 function 0 Intel 82801GB PCIE rev 0x02: apic 2 int 16 
(irq 5)

pci1 at ppb0 bus 4

re0 at pci1 dev 0 function 0 
Realt\^C\M-`*\M-=\^C\M-p*\M-=\^C+\M-=\^C\^P+\M-=\^C [EMAIL PROTECTED]@[EMAIL 
PROTECTED]), address 00:23:54:xx:yy:zz

rgephy0 at re0 phy 7: 
RTL8169S/8110\^C\M-`,\M-=\^C\M-p,\M-=\^C-\M-=\^C\^P-\M-=\^C [EMAIL 
PROTECTED]@[EMAIL PROTECTED] rev 0x02: apic 2 int 17 (irq 10)

pci2 at ppb1 bus 3

ral0 at pc\^C\M-`.\M-=\^C\M-p.\M-=\^C/\M-=\^C\^P/\M-=\^C 
/\M-=\^C0/\M-=\^C@/\M-=\^CP/\M-=\^C`/\M-=\^Cp/\M-=\^C\M^@/\M-=\^C\M^P/\M-=\^C\240/\M-=\^C\M-0/\M-=\^C\M-@/\M-=\^C\M-P/\M-=\^C\M-`/\M-=\^C\M-p/\M-=\^C0\M-=\^C\^P0\M-=\^C
 [EMAIL PROTECTED]@[EMAIL PROTECTED] [EMAIL PROTECTED]@[EMAIL PROTECTED] PCIE 
rev 0x02: apic 2 int 18 (irq 11)

pci3 at ppb2 bus 1

uhci0 at pci0 dev 29 function 0 Intel 82801GB USB rev 0x02: apic 2 int 23 
(irq 3)

uhci1 at pci0 dev 29 function 1 Intel 82801GB USB rev 0x02: apic 2 int 19 
(irq 7)

uhci2 at pci0 dev 29 functio\^C\M-`5\M-=\^C\M-p5\M-=\^C6\M-=\^C\^P6\M-=\^C 
[EMAIL PROTECTED]@[EMAIL PROTECTED] pci0 dev 29 function 3 Intel 82801GB USB 
rev 0x02: apic 2 in\^C\M-`7\M-=\^C\M-p7\M-=\^C8\M-=\^C\^P8\M-=\^C [EMAIL 
PROTECTED]@[EMAIL PROTECTED] rev 0x02: apic 2 int 23 (irq 3)

usb0 at ehci0: USB revision 2.0

uhub0 at usb0 Intel EHCI root hub rev 2.00/1.00 addr 1

ppb3 a\^C\M-`:\M-=\^C\M-p:\M-=\^C;\M-=\^C\^P;\M-=\^C 
;\M-=\^C0;\M-=\^C@;\M-=\^CP;\M-=\^C`;\M-=\^Cp;\M-=\^C\M^@;\M-=\^C\M^P;\M-=\^C\240;\M-=\^C\M-0;\M-=\^C\M-@;\M-=\^C\M-P;\M-=\^C\M-`;\M-=\^C\M-p;\M-=\^C\M-=\^C\^P\M-=\^C
 
\M-=\^C0\M-=\^C@\M-=\^CP\M-=\^C`\M-=\^Cp\M-=\^C\M^@\M-=\^C\M^P\M-=\^C\240\M-=\^C\M-0\M-=\^C\M-@\M-=\^C\M-P\M-=GBM
 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 0 drive 0: ST9160310AS

wd0: 16-sector PIO, LBA48, 152627MB, 312581808 sectors

wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 5

ichiic0 at pci0 dev 31 function 3 Intel 82801GB SMBus rev 0x02: apic 2 int 19 
(irq 7)

iic0 at ichiic0

spdmem0 at iic0 add\^C\M-`C\M-=\^C\M-pC\M-=\^CD\M-=\^C\^PD\M-=\^C [EMAIL 
PROTECTED]@[EMAIL PROTECTED] [EMAIL PROTECTED]@[EMAIL PROTECTED]

usb1 at uhci0: USB revision 1.0

uhub1 at usb1 Intel UHCI roo\^C\M-`F\M-=\^C\M-pF\M-=\^CG\M-=\^C\^PG\M-=\^C 
[EMAIL PROTECTED]@[EMAIL PROTECTED] at usb2 Intel UHCI root hub rev 1.00/1.00 
addr 1

usb3 at uhc\^C\M-`H\M-=\^C\M-pH\M-=\^CI\M-=\^C\^PI\M-=\^C [EMAIL 
PROTECTED]@[EMAIL PROTECTED] [EMAIL PROTECTED]@[EMAIL PROTECTED] [EMAIL 
PROTECTED]@[EMAIL PROTECTED] [EMAIL PROTECTED]@[EMAIL PROTECTED] [EMAIL 
PROTECTED]@[EMAIL PROTECTED] [EMAIL PROTECTED]@N\M-=\^C\M^PN\M-=\^C\240N\M-=!
 [EMAIL PROTECTED] speaker

spkr0 at pcppi0

wbsio0 at isa0 port 0x2e/2: 
W83627DH\^C\M-`O\M-=\^C\M-pO\M-=\^CP\M-=\^C\^PP\M-=\^C [EMAIL PROTECTED]@[EMAIL 
PROTECTED] [EMAIL PROTECTED]@[EMAIL PROTECTED] MTRR support

umass0 at uhub0 port 6 configuration 1 interface 0 Generic USB2.0-CRW rev 
2.00/58.87 addr 2

umass0: using SCS\^C\M-`S\M-=\^C\M-pS\M-=\^CT\M-=\^C\^PT\M-=\^C [EMAIL 
PROTECTED]@[EMAIL PROTECTED] scsibus0 targ 1 lun 0: Generic-, Multi-Card, 
1.00 SCSI0 0/d\^C\M-`U\M-=\^C\M-pU\M-=\^CV\M-=\^C\^PV\M-=\^C [EMAIL 
PROTECTED]@[EMAIL PROTECTED] [EMAIL PROTECTED]@[EMAIL PROTECTED] [EMAIL 
PROTECTED]@[EMAIL PROTECTED] [EMAIL 

news letter

2008-12-01 Thread [EMAIL PROTECTED]
V.A.T Reg. No.4680197417 Reg. No. 2002/024004/07
TEL:(012) 252 7513
FAX:(012) 252 7613
Email: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]
URL: www.newheightsgroup.co.za http://www.newheightsgroup.co.za/

PO BOX 3497 BRITS 0250




IF THIS MAIL IS NOT APPLICABLE TO YOU PLEASE FORWARD IT TO THE RELEVANT
PERSON
WE AT NEW HEIGHTS WOULD LIKE TO INTRODUCE THE BUDGET FRIENDLY FIRE SAFETY
SYSTEM, WHICH WE WOULD LIKE TO IMPLEMENT ON YOUR PREMISES. THE SYSTEM IS A
VERY COST EFFECTIVE SYSTEM AND WILL WORK OUT ON A MONTHLY RATE OF R 8-00 PER
UNIT
E.G. 50 Units x R 8-00 = R 400 per Month (R 4800-00 per Year)
BENEFIT: NOW YOU GET 12 SERVICES INSTEAD OF ONE AT EQUAL MONTHLY RATES
* One Major Service as per SANS per Year
* 11 x Monthly Inspections
* 1 Fire Training Session per Year
* Complete Register System
* Numbering of Equipment
* Annual Survey of Equipment
* One First Aid Manual, One Health  Safety Manual
   and One Incident Investigation Manual (Value Approx R 6000-00)
* All Recharges and Refills
* All Spare Parts
* Check of First Aid Box
EXCLUDES NEW EQUIPMENT WHICH WILL BE QUOTED FOR
PRICES QUOTED IS ALL INCLUSIVE BUT EXCLUDES VAT
Please forward you information with the number of units you have and a
quotation will be forwarded to you as soon as possible

FOR FURTHER INFORMATION VIST OUR WEBSITE AT www.newheightsgroup.co.za

FOR MORE INFORMATION OR TO SET UP AN APPOINTMENT PLEASE CALL

JACO DERCKSEN
082 774 5538UNSUBSCRIBEmailto:[EMAIL PROTECTED]



ftp.openbsd.org welcome message out of date

2008-12-01 Thread Jean-Philippe Ouellet
When logging into the ftp server I get the nice ascii puffy, but it also 
says OpenBSD 4.4 is available for pre-order! Now that 4.4 is out the 
CDs are not *pre-ordered* but ordered. This is not a problem, but since 
nobody has brought it up before nor has the ftp server been updated, i'm 
letting you know.


If this does not belong on misc, then please point me in the right 
direction.


If you didn't allready pre-order the cd, please remember to order your 
CDs to support the project.




Re: ftp.openbsd.org welcome message out of date

2008-12-01 Thread Jean-Philippe Ouellet
and yes i sent this to beck too. (I think that's who would be incharge 
of updating it).


Jean-Philippe Ouellet wrote:
When logging into the ftp server I get the nice ascii puffy, but it also 
says OpenBSD 4.4 is available for pre-order! Now that 4.4 is out the 
CDs are not *pre-ordered* but ordered. This is not a problem, but since 
nobody has brought it up before nor has the ftp server been updated, i'm 
letting you know.


If this does not belong on misc, then please point me in the right 
direction.


If you didn't allready pre-order the cd, please remember to order your 
CDs to support the project.




Re: sendmail and PF

2008-12-01 Thread ropers
2008/12/1 Jay Torrini [EMAIL PROTECTED]:
 Just need to know what to let in.

 ext_if=dc0
 trusted = REMOVED
 webports = { http }
 table blockedips persist file /etc/pf.blockedip.conf

 set block-policy return
 set optimization aggressive
 scrub in all

 antispoof for $ext_if

 pass in quick on $ext_if inet proto tcp from $trusted to $ext_if port ssh

 block in log (all) all

 block in quick from blockedips

 pass in on $ext_if proto tcp from any to $ext_if port $webports

 pass in on $ext_if inet proto tcp from any to any port domain
 pass in on $ext_if inet proto tcp from any to any port smtp

Jason has given you this short answer before you posted your pf.conf:
 pass out on $ext_if from ($ext_if) to any port smtp

If I understand you correctly, then PF and sendmail are running on the
same host and you'd like to send emails from that host to somewhere
else. This means you have, in the first instance, to allow smtp
traffic OUT. (Once state is established, the conversation with the
other MTA will proceed anyway, and replies from the remote MTA will be
let through.) None of your quoted rules appear to allow smtp traffic
OUT, just in but that's irrelevant, for the said reason. Jason's rule
should sort you out.

'Hope I'm not mistaken/overlooking something, and 'hope this helps,
Cheers,
--ropers



Re: PANIC on latest source

2008-12-01 Thread David Gwynne
hi,

can you please try this diff and see if it solves your panics?

Index: if_em.c
===
RCS file: /cvs/src/sys/dev/pci/if_em.c,v
retrieving revision 1.199
diff -u -p -r1.199 if_em.c
--- if_em.c 29 Nov 2008 10:23:29 -  1.199
+++ if_em.c 2 Dec 2008 02:36:08 -
@@ -31,7 +31,7 @@ POSSIBILITY OF SUCH DAMAGE.
 
 ***/
 
-/* $OpenBSD: if_em.c,v 1.199 2008/11/29 10:23:29 sthen Exp $ */
+/* $OpenBSD: if_em.c,v 1.197 2008/11/26 00:14:48 dlg Exp $ */
 /* $FreeBSD: if_em.c,v 1.46 2004/09/29 18:28:28 mlaier Exp $ */
 
 #include dev/pci/if_em.h
@@ -164,6 +164,12 @@ void em_update_stats_counters(struct em_
 void em_txeof(struct em_softc *);
 int  em_allocate_receive_structures(struct em_softc *);
 int  em_allocate_transmit_structures(struct em_softc *);
+#ifdef __STRICT_ALIGNMENT
+void em_realign(struct em_softc *, struct mbuf *, u_int16_t *);
+#else
+#define em_realign(a, b, c) /* a, b, c */
+#endif
+int  em_rxfill(struct em_softc *);
 void em_rxeof(struct em_softc *, int);
 void em_receive_checksum(struct em_softc *, struct em_rx_desc *,
 struct mbuf *);
@@ -798,6 +804,11 @@ em_intr(void *arg)
 
if (ifp-if_flags  IFF_RUNNING) {
em_rxeof(sc, -1);
+   if (em_rxfill(sc)) {
+   /* Advance the Rx Queue #0 Tail Pointer. */
+   E1000_WRITE_REG(sc-hw, RDT,
+   sc-last_rx_desc_filled);
+   }
em_txeof(sc);
}
 
@@ -1448,15 +1459,15 @@ em_stop(void *arg)
struct em_softc *sc = arg;
ifp = sc-interface_data.ac_if;
 
+   /* Tell the stack that the interface is no longer active */
+   ifp-if_flags = ~(IFF_RUNNING | IFF_OACTIVE);
+
INIT_DEBUGOUT(em_stop: begin);
em_disable_intr(sc);
em_reset_hw(sc-hw);
timeout_del(sc-timer_handle);
timeout_del(sc-tx_fifo_timer_handle);
 
-   /* Tell the stack that the interface is no longer active */
-   ifp-if_flags = ~(IFF_RUNNING | IFF_OACTIVE);
-
em_free_transmit_structures(sc);
em_free_receive_structures(sc);
 }
@@ -2287,51 +2298,54 @@ int
 em_get_buf(struct em_softc *sc, int i)
 {
struct mbuf*m;
-   bus_dmamap_tmap;
-   struct em_buffer *rx_buffer;
+   struct em_buffer *pkt;
+   struct em_rx_desc *desc;
int error;
 
+   pkt = sc-rx_buffer_area[i];
+   desc = sc-rx_desc_base[i];
+
+   if (pkt-m_head != NULL) {
+   printf(%s: em_get_buf: slot %d already has an mbuf\n,
+   sc-sc_dv.dv_xname, i);
+   return (ENOBUFS);
+   }
+
MGETHDR(m, M_DONTWAIT, MT_DATA);
if (m == NULL) {
sc-mbuf_alloc_failed++;
return (ENOBUFS);
}
-   MCLGET(m, M_DONTWAIT);
+   MCLGETI(m, M_DONTWAIT, sc-interface_data.ac_if, MCLBYTES);
if ((m-m_flags  M_EXT) == 0) {
m_freem(m);
sc-mbuf_cluster_failed++;
return (ENOBUFS);
}
m-m_len = m-m_pkthdr.len = MCLBYTES;
-
if (sc-hw.max_frame_size = (MCLBYTES - ETHER_ALIGN))
m_adj(m, ETHER_ALIGN);
 
-   /*
-* Using memory from the mbuf cluster pool, invoke the
-* bus_dma machinery to arrange the memory mapping.
-*/
-   error = bus_dmamap_load_mbuf(sc-rxtag, sc-rx_sparemap,
-   m, BUS_DMA_NOWAIT);
+   error = bus_dmamap_load_mbuf(sc-rxtag, pkt-map, m, BUS_DMA_NOWAIT);
if (error) {
m_freem(m);
return (error);
}
 
-   rx_buffer = sc-rx_buffer_area[i];
-   if (rx_buffer-m_head != NULL)
-   bus_dmamap_unload(sc-rxtag, rx_buffer-map);
+   bus_dmamap_sync(sc-rxtag, pkt-map, 0, pkt-map-dm_mapsize,
+   BUS_DMASYNC_PREREAD);
+   pkt-m_head = m;
 
-   map = rx_buffer-map;
-   rx_buffer-map = sc-rx_sparemap;
-   sc-rx_sparemap = map;
+   bus_dmamap_sync(sc-rxdma.dma_tag, sc-rxdma.dma_map,
+   sizeof(*desc) * i, sizeof(*desc), BUS_DMASYNC_POSTWRITE);
 
-   bus_dmamap_sync(sc-rxtag, rx_buffer-map, 0,
-   rx_buffer-map-dm_mapsize, BUS_DMASYNC_PREREAD);
+   bzero(desc, sizeof(*desc));
+   desc-buffer_addr = htole64(pkt-map-dm_segs[0].ds_addr);
 
-   rx_buffer-m_head = m;
+   bus_dmamap_sync(sc-rxdma.dma_tag, sc-rxdma.dma_map,
+   sizeof(*desc) * i, sizeof(*desc), BUS_DMASYNC_PREWRITE);
 
-   sc-rx_desc_base[i].buffer_addr = 
htole64(rx_buffer-map-dm_segs[0].ds_addr);
+   sc-rx_ndescs++;
 
return (0);
 }
@@ -2359,33 +2373,18 @@ em_allocate_receive_structures(struct em
 
sc-rxtag = sc-osdep.em_pa.pa_dmat;
 
-   error = bus_dmamap_create(sc-rxtag, MCLBYTES, 1, MCLBYTES,
-

Fw: your photos

2008-12-01 Thread Sara Dubai
HR Manager
(%COMPANY_NAME%) 
(%LOCATION%)  (%P.O.BOX%) 
Tel: (%TELE%)  Fax: (%FAX%) 
e-mail: misc@openbsd.org 


From The market leader in International Recruitment  Manpower main source in 
the Middle East, now you can get 

The International Recruitment Guide book 2008 - 2009 is now released, click 
here to download it free 
 



All what HR manager needs of tools and research, the first guide of its kind

Enjoy free downloads with the UAE HR club 

UAE VIP HR Club

Dubai, Al Garhoud, Sara Building
Tel: +971-4-2833350
Fax: +971-4-2833722
http://www.VIPHRclub.com/

International Recruitment  Manpower Sources; call to recruit worldwide:
Dubai: Tel: +971-4-2833350To Recruit world wide, the Market Leader 
Arabian Centers
Sharjah:   Tel: +971-6-5737579Manpower Recruitment Center
Syria: Tel +963-31-2470366The Only and First Legal International 
Recruiter in Syria
Lebanon:   Tel: +961-4-722115 To Recruit From Lebanon 
Tunisia:   Tel: +216-71750472 Only Legal International Recruitment 
Center Operating with fullintegration in ATCT/ Government offices
Egypt: Tel: +20-222627442 Recruitment main Center for Egypt 
Moldova:   Tel: +373-22887111 Recruit from Moldova and East Europe 
Kyrgyzstan:Tel: 0612 903271   Recruit Russian Speaking Staff
India: Tel: 0354 2259477  The most professional source in India
Morocco:   Fez  Tel: 35614042 Morocco Recruitment Center 

---
One Group in 14 Countries, The International Recruitment Market Leader, Tel: 
+971-4-2833350 Arabian Centers Group

Disclaimer : You have received this message because you / your friend has 
registered on our newsletter services. To unsubscribe, simply click here.



Re: PANIC on latest source

2008-12-01 Thread Insan Praja SW

On Tue, 02 Dec 2008 11:17:42 +0700, David Gwynne [EMAIL PROTECTED] wrote:


hi,

can you please try this diff and see if it solves your panics?



Hi David and Misc@,
I already use the rev1.199 source code which back out the 1.197 source  
code. But I'm going to give it a try on a non-production machine with  
identical h/w.

Thanks,


Index: if_em.c
===
RCS file: /cvs/src/sys/dev/pci/if_em.c,v
retrieving revision 1.199
diff -u -p -r1.199 if_em.c
--- if_em.c 29 Nov 2008 10:23:29 -  1.199
+++ if_em.c 2 Dec 2008 02:36:08 -
@@ -31,7 +31,7 @@ POSSIBILITY OF SUCH DAMAGE.
***/
-/* $OpenBSD: if_em.c,v 1.199 2008/11/29 10:23:29 sthen Exp $ */
+/* $OpenBSD: if_em.c,v 1.197 2008/11/26 00:14:48 dlg Exp $ */
 /* $FreeBSD: if_em.c,v 1.46 2004/09/29 18:28:28 mlaier Exp $ */
#include dev/pci/if_em.h
@@ -164,6 +164,12 @@ void em_update_stats_counters(struct em_
 void em_txeof(struct em_softc *);
 int  em_allocate_receive_structures(struct em_softc *);
 int  em_allocate_transmit_structures(struct em_softc *);
+#ifdef __STRICT_ALIGNMENT
+void em_realign(struct em_softc *, struct mbuf *, u_int16_t *);
+#else
+#define em_realign(a, b, c) /* a, b, c */
+#endif
+int  em_rxfill(struct em_softc *);
 void em_rxeof(struct em_softc *, int);
 void em_receive_checksum(struct em_softc *, struct em_rx_desc *,
 struct mbuf *);
@@ -798,6 +804,11 @@ em_intr(void *arg)
if (ifp-if_flags  IFF_RUNNING) {
em_rxeof(sc, -1);
+   if (em_rxfill(sc)) {
+   /* Advance the Rx Queue #0 Tail Pointer. */
+   E1000_WRITE_REG(sc-hw, RDT,
+   sc-last_rx_desc_filled);
+   }
em_txeof(sc);
}
@@ -1448,15 +1459,15 @@ em_stop(void *arg)
struct em_softc *sc = arg;
ifp = sc-interface_data.ac_if;
+   /* Tell the stack that the interface is no longer active */
+   ifp-if_flags = ~(IFF_RUNNING | IFF_OACTIVE);
+
INIT_DEBUGOUT(em_stop: begin);
em_disable_intr(sc);
em_reset_hw(sc-hw);
timeout_del(sc-timer_handle);
timeout_del(sc-tx_fifo_timer_handle);
-   /* Tell the stack that the interface is no longer active */
-   ifp-if_flags = ~(IFF_RUNNING | IFF_OACTIVE);
-
em_free_transmit_structures(sc);
em_free_receive_structures(sc);
 }
@@ -2287,51 +2298,54 @@ int
 em_get_buf(struct em_softc *sc, int i)
 {
struct mbuf*m;
-   bus_dmamap_tmap;
-   struct em_buffer *rx_buffer;
+   struct em_buffer *pkt;
+   struct em_rx_desc *desc;
int error;
+   pkt = sc-rx_buffer_area[i];
+   desc = sc-rx_desc_base[i];
+
+   if (pkt-m_head != NULL) {
+   printf(%s: em_get_buf: slot %d already has an mbuf\n,
+   sc-sc_dv.dv_xname, i);
+   return (ENOBUFS);
+   }
+
MGETHDR(m, M_DONTWAIT, MT_DATA);
if (m == NULL) {
sc-mbuf_alloc_failed++;
return (ENOBUFS);
}
-   MCLGET(m, M_DONTWAIT);
+   MCLGETI(m, M_DONTWAIT, sc-interface_data.ac_if, MCLBYTES);
if ((m-m_flags  M_EXT) == 0) {
m_freem(m);
sc-mbuf_cluster_failed++;
return (ENOBUFS);
}
m-m_len = m-m_pkthdr.len = MCLBYTES;
-
if (sc-hw.max_frame_size = (MCLBYTES - ETHER_ALIGN))
m_adj(m, ETHER_ALIGN);
-   /*
-* Using memory from the mbuf cluster pool, invoke the
-* bus_dma machinery to arrange the memory mapping.
-*/
-   error = bus_dmamap_load_mbuf(sc-rxtag, sc-rx_sparemap,
-   m, BUS_DMA_NOWAIT);
+   error = bus_dmamap_load_mbuf(sc-rxtag, pkt-map, m, BUS_DMA_NOWAIT);
if (error) {
m_freem(m);
return (error);
}
-   rx_buffer = sc-rx_buffer_area[i];
-   if (rx_buffer-m_head != NULL)
-   bus_dmamap_unload(sc-rxtag, rx_buffer-map);
+   bus_dmamap_sync(sc-rxtag, pkt-map, 0, pkt-map-dm_mapsize,
+   BUS_DMASYNC_PREREAD);
+   pkt-m_head = m;
-   map = rx_buffer-map;
-   rx_buffer-map = sc-rx_sparemap;
-   sc-rx_sparemap = map;
+   bus_dmamap_sync(sc-rxdma.dma_tag, sc-rxdma.dma_map,
+   sizeof(*desc) * i, sizeof(*desc), BUS_DMASYNC_POSTWRITE);
-   bus_dmamap_sync(sc-rxtag, rx_buffer-map, 0,
-   rx_buffer-map-dm_mapsize, BUS_DMASYNC_PREREAD);
+   bzero(desc, sizeof(*desc));
+   desc-buffer_addr = htole64(pkt-map-dm_segs[0].ds_addr);
-   rx_buffer-m_head = m;
+   bus_dmamap_sync(sc-rxdma.dma_tag, sc-rxdma.dma_map,
+   sizeof(*desc) * i, sizeof(*desc), BUS_DMASYNC_PREWRITE);
-	sc-rx_desc_base[i].buffer_addr =  
htole64(rx_buffer-map-dm_segs[0].ds_addr);

+

Re: cannot nfs mount an mfs

2008-12-01 Thread j
Try removing the nosuid option from fstab, I had a similar problem and it
fixed.

This did not work for me.  I have tried variations, minimizing the options
and selections, and have not succeeded.

Can you post your actual configuration as an example?

thanks

--John



Re: PANIC on latest source

2008-12-01 Thread David Gwynne

On 02/12/2008, at 15:51, Insan Praja SW [EMAIL PROTECTED] wrote:

On Tue, 02 Dec 2008 11:17:42 +0700, David Gwynne [EMAIL PROTECTED]  
wrote:



hi,

can you please try this diff and see if it solves your panics?



Hi David and Misc@,
I already use the rev1.199 source code which back out the 1.197  
source code. But I'm going to give it a try on a non-production  
machine with identical h/w.


That would be much appreciated, thank you.



Thanks,


Index: if_em.c
===
RCS file: /cvs/src/sys/dev/pci/if_em.c,v
retrieving revision 1.199
diff -u -p -r1.199 if_em.c
--- if_em.c29 Nov 2008 10:23:29 -1.199
+++ if_em.c2 Dec 2008 02:36:08 -
@@ -31,7 +31,7 @@ POSSIBILITY OF SUCH DAMAGE.
*** 
*** 
*** 
**/

-/* $OpenBSD: if_em.c,v 1.199 2008/11/29 10:23:29 sthen Exp $ */
+/* $OpenBSD: if_em.c,v 1.197 2008/11/26 00:14:48 dlg Exp $ */
/* $FreeBSD: if_em.c,v 1.46 2004/09/29 18:28:28 mlaier Exp $ */
#include dev/pci/if_em.h
@@ -164,6 +164,12 @@ void em_update_stats_counters(struct em_
void em_txeof(struct em_softc *);
int  em_allocate_receive_structures(struct em_softc *);
int  em_allocate_transmit_structures(struct em_softc *);
+#ifdef __STRICT_ALIGNMENT
+void em_realign(struct em_softc *, struct mbuf *, u_int16_t *);
+#else
+#define em_realign(a, b, c) /* a, b, c */
+#endif
+int  em_rxfill(struct em_softc *);
void em_rxeof(struct em_softc *, int);
void em_receive_checksum(struct em_softc *, struct em_rx_desc *,
struct mbuf *);
@@ -798,6 +804,11 @@ em_intr(void *arg)
   if (ifp-if_flags  IFF_RUNNING) {
   em_rxeof(sc, -1);
+if (em_rxfill(sc)) {
+/* Advance the Rx Queue #0 Tail Pointer. */
+E1000_WRITE_REG(sc-hw, RDT,
+sc-last_rx_desc_filled);
+}
   em_txeof(sc);
   }
@@ -1448,15 +1459,15 @@ em_stop(void *arg)
   struct em_softc *sc = arg;
   ifp = sc-interface_data.ac_if;
+/* Tell the stack that the interface is no longer active */
+ifp-if_flags = ~(IFF_RUNNING | IFF_OACTIVE);
+
   INIT_DEBUGOUT(em_stop: begin);
   em_disable_intr(sc);
   em_reset_hw(sc-hw);
   timeout_del(sc-timer_handle);
   timeout_del(sc-tx_fifo_timer_handle);
-/* Tell the stack that the interface is no longer active */
-ifp-if_flags = ~(IFF_RUNNING | IFF_OACTIVE);
-
   em_free_transmit_structures(sc);
   em_free_receive_structures(sc);
}
@@ -2287,51 +2298,54 @@ int
em_get_buf(struct em_softc *sc, int i)
{
   struct mbuf*m;
-bus_dmamap_tmap;
-struct em_buffer *rx_buffer;
+struct em_buffer *pkt;
+struct em_rx_desc *desc;
   int error;
+pkt = sc-rx_buffer_area[i];
+desc = sc-rx_desc_base[i];
+
+if (pkt-m_head != NULL) {
+printf(%s: em_get_buf: slot %d already has an mbuf\n,
+sc-sc_dv.dv_xname, i);
+return (ENOBUFS);
+}
+
   MGETHDR(m, M_DONTWAIT, MT_DATA);
   if (m == NULL) {
   sc-mbuf_alloc_failed++;
   return (ENOBUFS);
   }
-MCLGET(m, M_DONTWAIT);
+MCLGETI(m, M_DONTWAIT, sc-interface_data.ac_if, MCLBYTES);
   if ((m-m_flags  M_EXT) == 0) {
   m_freem(m);
   sc-mbuf_cluster_failed++;
   return (ENOBUFS);
   }
   m-m_len = m-m_pkthdr.len = MCLBYTES;
-
   if (sc-hw.max_frame_size = (MCLBYTES - ETHER_ALIGN))
   m_adj(m, ETHER_ALIGN);
-/*
- * Using memory from the mbuf cluster pool, invoke the
- * bus_dma machinery to arrange the memory mapping.
- */
-error = bus_dmamap_load_mbuf(sc-rxtag, sc-rx_sparemap,
-m, BUS_DMA_NOWAIT);
+error = bus_dmamap_load_mbuf(sc-rxtag, pkt-map, m,  
BUS_DMA_NOWAIT);

   if (error) {
   m_freem(m);
   return (error);
   }
-rx_buffer = sc-rx_buffer_area[i];
-if (rx_buffer-m_head != NULL)
-bus_dmamap_unload(sc-rxtag, rx_buffer-map);
+bus_dmamap_sync(sc-rxtag, pkt-map, 0, pkt-map-dm_mapsize,
+BUS_DMASYNC_PREREAD);
+pkt-m_head = m;
-map = rx_buffer-map;
-rx_buffer-map = sc-rx_sparemap;
-sc-rx_sparemap = map;
+bus_dmamap_sync(sc-rxdma.dma_tag, sc-rxdma.dma_map,
+sizeof(*desc) * i, sizeof(*desc), BUS_DMASYNC_POSTWRITE);
-bus_dmamap_sync(sc-rxtag, rx_buffer-map, 0,
-rx_buffer-map-dm_mapsize, BUS_DMASYNC_PREREAD);
+bzero(desc, sizeof(*desc));
+desc-buffer_addr = htole64(pkt-map-dm_segs[0].ds_addr);
-rx_buffer-m_head = m;
+bus_dmamap_sync(sc-rxdma.dma_tag, sc-rxdma.dma_map,
+sizeof(*desc) * i, sizeof(*desc), BUS_DMASYNC_PREWRITE);
-sc-rx_desc_base[i].buffer_addr = htole64(rx_buffer-map- 
dm_segs[0].ds_addr);

+sc-rx_ndescs++;
   return (0);
}
@@ -2359,33 +2373,18 @@ em_allocate_receive_structures(struct em
   sc-rxtag = sc-osdep.em_pa.pa_dmat;
-error = bus_dmamap_create(sc-rxtag, MCLBYTES, 1, MCLBYTES,
-0, BUS_DMA_NOWAIT, sc-rx_sparemap);
-if (error != 0) {
-printf(%s: 

Hardware recomendations please

2008-12-01 Thread nuffnough
Hey there.

My firewalls are getting old, so I thought it would be a great idea to
replace them.  I figured that a budget of around $1500 would be more
than adequate,  but because no one makes mobos with 5 pci slots
anymore I am struggling to get these under $2800.

I have requirements for 6 legs plus the carp sync (which I could do
with a usb nowadays,  so that means just 6).  The rest of the system
is relatively undemanding, so 4 gig RAM is overkill, and it doesn't
require huge CPU grunt either.  It would be great if I could fit it
into a small formfactor case to save rackspace, but this isn't worth
$2k to me.

Please recommend mobo/NIC combo that would fit within the budget!

TIA

nuffi



Re: Hardware recomendations please

2008-12-01 Thread James Shupe
I'd recommend building some Supermicro boxes on the 512L-260B/PDSBM-LN2+
(1u, s775, 946gz) platform. You can build a very nice box and pair it
with riser card and a quad port DFE-570TX NIC and come in well under
your $1500 budget. If you need exact part numbers, I can get you the
ones we use.

On Tue, 2008-12-02 at 17:43 +1100, nuffnough wrote:
 Hey there.

 My firewalls are getting old, so I thought it would be a great idea to
 replace them.  I figured that a budget of around $1500 would be more
 than adequate,  but because no one makes mobos with 5 pci slots
 anymore I am struggling to get these under $2800.

 I have requirements for 6 legs plus the carp sync (which I could do
 with a usb nowadays,  so that means just 6).  The rest of the system
 is relatively undemanding, so 4 gig RAM is overkill, and it doesn't
 require huge CPU grunt either.  It would be great if I could fit it
 into a small formfactor case to save rackspace, but this isn't worth
 $2k to me.

 Please recommend mobo/NIC combo that would fit within the budget!

 TIA

 nuffi

--
James Maurice Shupe   | HermeTek Network Solutions
[EMAIL PROTECTED]   | *NIX Consulting and Hosting
GPG signed mail preferred | http://www.hermetek.com
Plain text mail preferred | 1.866.325.6207

Key fingerprint: D484 EACC 9D0F A2A5 5277 C4A8 5704 1987 A938 DF3A


This Email is covered by the Electronic Communications Privacy Act,
18 U.S.C. 2510-2521 and is legally privileged. The information
contained in this Email is intended only for use of the individual
or entity named above. If the reader of this message is not the intended
recipient, or the employee or agent responsible to deliver it to the
intended recipient, you are hereby notified that any dissemination,
distribution or copying of this communication is strictly prohibited.
If you have received this communication in error, please immediately
notify us by telephone 1.866.325.6207 and destroy the original message.

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



Re: voip card

2008-12-01 Thread Zafer Daştan
Stuart Henderson yazm}~:
 On 2008-12-01, sonjaya [EMAIL PROTECTED] wrote:
   
 Dear all

 do you have anyone here using voip card ( digium , sangoma etc ) in
 openbsd , i will be thank's if someone share 

 

 no, but there are PSTN/SIP gateways which cost about the same as the
 cards (e.g. patton)

   
I used Sangoma FXS/FXO+asterisk cards in 3.8 in experimental network and 
it worked well.  if zaptel is ported properly, I think there will be no 
problem. (one point voip cards are no longer supported for OpenBSD)

-- 

Zafer Da~tan

*Z-Sistem*
*]nternet Serv. Bili~im Tekno. Veri G|v. San Tic. Ltd. ^ti.*
Adres : Beyler Cad. Dost Kent Yan} No:4 Gayyolu / ANKARA TR 06530
Tel : +90 (0) 312 238 24 15
Faks  : +90 (0) 312 238 24 18
GSM  : +90 (0) 532 548 28 30
http://www.z-sistem.com http://www.z-sistem.com/ 
http://www.i-bekci.com http://www.i-bekci.com/



Re: bash for root?

2008-12-01 Thread farhan ahmed
Hi Guys,

Thanks a lot for all replies and discussion, I have recovered root shell today
after scheduling down time. Thanks a lot, excellent forum

Thanks,

Farhan






 Date: Mon, 1 Dec 2008 07:55:48 -0500
 From: [EMAIL PROTECTED]
 To: misc@openbsd.org
 Subject: Re: bash for root?

 Juan Miscaro wrote:
 ...
  Why not set up a user (ex: bigguy) and then force his uid and gid to
  be 0 and 0 with vipw?  Give that user a nice coloured bash prompt and
  set up directories in his home.  This way you get a customized
  superuser while keeping the real root environment pristine.

 Other than generating duplicate user number error reports from the
 nightly security check, the generally bad idea of duplicate user
 numbers, creating confusion and ambiguity that doesn't need to be there,
 the likelihood that you will have forgot the 'root' password when you
 need it and being a really silly way to solve a completely non-problem?
   No reason at all.

 Why not switch the keycaps around on your keyboard?
 Why not wear mis-matched shoes?
 (those are bad examples, I can come up with justifications for doing
 them...)

 Some people are really convinced their feet need holes.  The
 (non)problem doesn't justify your solution -- and the real problems it
 would create.


 Nick.


_
Net yourself a bargain. Find great deals on eBay.
http://a.ninemsn.com.au/b.aspx?URL=http%3A%2F%2Frover%2Eebay%2Ecom%2Frover%2F
1%2F705%2D10129%2D5668%2D323%2F4%3Fid%3D10_t=763807330_r=hotmailTAGLINES_m
=EXT