RE: vmwareport does not work

2000-11-16 Thread Reinier Bezuidenhout

Hi ... 
I'll give my worth of what the messages actually mean ..

 i get 
 
 kldload: can't load /usr/local/lib/vmware/lib/modules/vmmon_up.ko: File
 exists

This means the vmmon_up is already loaded  - do a   kldstat

 sysctl: unknown oid 'net.link.ether.bridge_refresh'

Seems like you do not have bridging compiled into the kernel ??

 kldload: can't load if_tap.ko: File exists

This also axists already - same as vmmon_up above

 ifconfig: ioctl (SIOCAIFADDR): File exists

The ifconfig fails because it has already been done on bootup
with the vmnet device - that's why the error  "File exists"

 
 what' s wrong then ? 
 

There doesn't seem to be anything wrong ... except that bridging
isn't on (I think), but depending on how you use vmware networking
it is not a show stopper.

Reinier

###
# #
#  R.N. Bezuidenhout  NetSeq Firewall #
#  [EMAIL PROTECTED]   http://www.nanoteq.co.za#  
# #
###

--
Date: 16-Nov-00
Time: 11:21:04

This message was sent by XFMail
--


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message



RE: To those with ATA probe problems

2000-11-10 Thread Reinier Bezuidenhout

I applied the diff-5.0 to my current and everything seems to work
ok now :) got my drinks-tray back :)

Unfortunately I dodn't boot vrbose ... but the dmesg is
inlcuded.  Thanks !! :)

Reinier


On 10-Nov-00 Soren Schmidt wrote:
 
 I've put patches for 4.2-BETA (diff-4.2) and for -current (diff-5.0)
 on ftp://freebsd.dk/pub/ATA
 Please try them and mail me the dmesg from your system.
 
 Thanks!
 
 -Søren
 
 
 To Unsubscribe: send mail to [EMAIL PROTECTED]
 with "unsubscribe freebsd-current" in the body of the message

###
# #
#  R.N. Bezuidenhout  NetSeq Firewall #
#  [EMAIL PROTECTED]   http://www.nanoteq.co.za#  
# #
###

--
Date: 10-Nov-00
Time: 15:17:11

This message was sent by XFMail
--

 dmesg


RE: (KAME-snap 3327) Re: Panic on current (12 Sept)

2000-09-18 Thread Reinier Bezuidenhout

Hi ...

Without starting the racoon daemon and doing a secure connect
everything works fine without a problem.  If I start racoon,
do a tunnel connection and then run daily, the machine panics ..

Reinier


On 16-Sep-00 Shoichi 'Ne' Sakane wrote:
 I'm running a current machine of 12 Sept although this problem 
 also occured on a current of a few days earlier ...
 
 This only happens when using the IPv6 IPSec code during the day,
 it is readily reproduceable.
 
 If during the day I load the racoon daemon and load keys and
 establish a IPSec tunnel connection everything works fine till
 2:00 am when the daily script runs OR if I run the daily script
 by hand ...  I generated the following dump and backtrace ...
 
 It seems to crash in a makedev routine using FOREACH list macro's.
 
 The problem doesn't seem to be with the list or the makedev function
 in kern_conf.c.  It seems to me that something in the kernel 
 corrupts the static list dev_hash when using the IPSec code.
 
 Summary - when ising IPSec ... machine panics during daily
 script execution.
 
 I think IPsec is not relative to this issue.  To make sure,
 does your machine run healthy without IPsec ?
 Please try the following.
   case 1) with option IPSEC, but no SPD entry.
   case 2) without option IPSEC

###
# #
#  R.N. Bezuidenhout  NetSeq Firewall #
#  [EMAIL PROTECTED]   http://www.nanoteq.co.za#  
# #
###

--
Date: 18-Sep-00
Time: 10:04:59

This message was sent by XFMail
--


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message



Re: (KAME-snap 3327) Re: Panic on current (12 Sept)

2000-09-18 Thread Reinier Bezuidenhout

As far as I recall ... the first kernel was before any of the SMP
commits ... but in case it was not ... how do I go about
going back to a "coarse grain lock" kernel ... can I set
something in the config file or do I have to checkout old
sources ??

Reinier


On 17-Sep-00 [EMAIL PROTECTED] wrote:
 
 I'm running a current machine of 12 Sept although this problem 
 also occured on a current of a few days earlier ...
 
   "current machine" meaning FreeBSD-current?  if so, are there any
   locking behavior changes due to the introduction of fine grain locks?
   what happens if you go back to coarse grain lock kernel?
 
 itojun
 
 
 To Unsubscribe: send mail to [EMAIL PROTECTED]
 with "unsubscribe freebsd-current" in the body of the message

###
# #
#  R.N. Bezuidenhout  NetSeq Firewall #
#  [EMAIL PROTECTED]   http://www.nanoteq.co.za#  
# #
###

--
Date: 18-Sep-00
Time: 09:59:11

This message was sent by XFMail
--


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message



FW: (KAME-snap 3318) Panic on current (12 Sept)

2000-09-14 Thread Reinier Bezuidenhout

Hi ...

I'm running a current machine of 12 Sept although this problem 
also occured on a current of a few days earlier ...

This only happens when using the IPv6 IPSec code during the day,
it is readily reproduceable.

If during the day I load the racoon daemon and load keys and
establish a IPSec tunnel connection everything works fine till
2:00 am when the daily script runs OR if I run the daily script
by hand ...  I generated the following dump and backtrace ...

It seems to crash in a makedev routine using FOREACH list macro's.

The problem doesn't seem to be with the list or the makedev function
in kern_conf.c.  It seems to me that something in the kernel 
corrupts the static list dev_hash when using the IPSec code.

Summary - when ising IPSec ... machine panics during daily
script execution.

If you need more info from the dumps, just ask !

Reinier


- gdb bt follows qith a few prints -

(kgdb) 
#5  0xc0283d53 in trap (frame={tf_fs = 16, tf_es = -65520, tf_ds = -904265712, 
  tf_edi = 196611, tf_esi = 197379, tf_ebp = -904254412, 
  tf_isp = -90425, tf_ebx = 5, tf_edx = 2, tf_ecx = -1057628672, 
  tf_eax = 197374, tf_trapno = 12, tf_err = 0, tf_eip = -1072335336, 
  tf_cs = 8, tf_eflags = 66050, tf_esp = 197379, tf_ss = -905316928})
at ../../i386/i386/trap.c:436
436 (void) trap_pfault(frame, FALSE, eva);
(kgdb) 
#6  0xc0157618 in makedev (x=3, y=196611) at ../../kern/kern_conf.c:232
232 LIST_FOREACH(si, dev_hash[hash], si_hash) {
(kgdb) li
227
228 if (x == umajor(NOUDEV)  y == uminor(NOUDEV))
229 Debugger("makedev of NOUDEV");
230 udev = (x  8) | y;
231 hash = udev % DEVT_HASH;
232 LIST_FOREACH(si, dev_hash[hash], si_hash) {
233 if (si-si_udev == udev)
234 return (si);
235 }
236 si = allocdev();
(kgdb) p hash
$1 = 5
(kgdb) p dev_hash[hash]
$2 = {lh_first = 0x2}
(kgdb) p dev_hash[1]
$3 = {lh_first = 0xc0fb7980}
(kgdb) p dev_hash[2]
$4 = {lh_first = 0xc0fb7900}
(kgdb) p dev_hash[3]
$5 = {lh_first = 0xc0fb9d80}
(kgdb) p dev_hash[4]
$6 = {lh_first = 0x200}   - OOPS !!
(kgdb) p dev_hash[5]
$7 = {lh_first = 0x2} - OOPS - the one we use ...
(kgdb) p dev_hash[6]
$8 = {lh_first = 0xc0fb5980}
(kgdb) 

-- panic message --

Fatal trap 12: page fault while in kernel mode
fault virtual address   = 0x1e
fault code  = supervisor read, page not present
instruction pointer = 0x8:0xc0157618
stack pointer   = 0x10:0xca1a2c28
frame pointer   = 0x10:0xca1a2c34
code segment= base 0x0, limit 0xf, type 0x1b
= DPL 0, pres 1, def32 1, gran 1
processor eflags= interrupt enabled, resume, IOPL = 0
current process = 1910 (find)
trap number = 12
panic: page fault

syncing disks... 31 31 8 8 3 3 
done
Uptime: 11h37m7s



###
# #
#  R.N. Bezuidenhout  NetSeq Firewall #
#  [EMAIL PROTECTED]   http://www.nanoteq.co.za#  
# #
###

--
Date: 14-Sep-00
Time: 11:43:22

This message was sent by XFMail
--


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message



RE: VMWare on -current, how fast should I expect it to be?

2000-09-12 Thread Reinier Bezuidenhout

I have seen this too ...

Let me first ask ... do you use the "suspend/resume" option??

If Yes then  :)

This caused the same "lockup" every few seconds on my machine too -
a much slower 400 PII.  As soon as I "shutdown" Win9X and rebooted
it worked fine.

I guess it is something in VMware that syncs to a resume/suspend
state file.  You can see this in that the second and there after
times you press the suspend button it doesn't say "Saving state"
or what ever, it just suspends immediately.

So bottom line - I've stopped using the suspend/resume and since
then so "hick-ups" every few seconds ...

Hope this helps

Reinier

On 12-Sep-00 Nik Clayton wrote:
 Hi guys,
 
 For those of you running VMWare (2) on -current, how fast do you expect it to
 be?
 
 I'm running it quite successfully on a 750MHz PIII w/ 128MB RAM, and the 
 following disk controller / disk
 
 atapci0: Intel PIIX4 ATA33 controller port 0xfc90-0xfc9f at device 7.1
 on pci0
 ata0: at 0x1f0 irq 14 on atapci0
 ata1: at 0x170 irq 15 on atapci0
 ad0: 17301MB FUJITSU MHJ2181AT [35152/16/63] at ata0-master using
 UDMA33
 
 This is -current from about three weeks ago.  It works, but it's a bit slow.
 Applications themselves run at a reasonable speed, but every now and then
 (can be as frequent as 10-15 seconds) the guest OS (Windows 98 in this case)
 will freeze or run very slowly -- the mouse pointer doesn't track properly,
 keystrokes are queued up.  After a couple of second things settle back down,
 the queued keystrokes and mouse movements manifest in the window, and so on,
 only to repeat shortly afterwards.  I don't have this sort of problem with
 other apps (unless I load 56 copies of Netscape, naturally).
 
 Is this a common issue people are seeing?
 
 N
 -- 
 Internet connection, $19.95 a month.  Computer, $799.95.  Modem, $149.95.
 Telephone line, $24.95 a month.  Software, free.  USENET transmission,
 hundreds if not thousands of dollars.  Thinking before posting, priceless.
 Somethings in life you can't buy.  For everything else, there's MasterCard.
   -- Graham Reed, in the Scary Devil Monastery
 
 
 To Unsubscribe: send mail to [EMAIL PROTECTED]
 with "unsubscribe freebsd-current" in the body of the message

###
# #
#  R.N. Bezuidenhout  NetSeq Firewall #
#  [EMAIL PROTECTED]   http://www.nanoteq.co.za#  
# #
###

--
Date: 12-Sep-00
Time: 16:35:32

This message was sent by XFMail
--



To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message



Realplayer and Yamaha 740C on current

2000-08-22 Thread Reinier Bezuidenhout

Hi ...

I have a 5.0-current .. kernel compiled of a day or so ago.

When I'm using Realplayer7 or plaympeg (package smpeg) to play
real audio or mpegs I just get this load "hissing" noise.

When I use mpg123 to play a mp3 the sound is OK .. CD sound
works fine and games too.

Any idea why realaudio (even when playing a local file) and
plaympeg seems to corrupt the sound ??

Somehow I recall that this used to work .. but I can't confirm it :)

Thanx
Reinier

###
# #
#  R.N. Bezuidenhout  NetSeq Firewall #
#  [EMAIL PROTECTED]   http://www.nanoteq.co.za#  
# #
###

--
Date: 22-Aug-00
Time: 15:16:54

This message was sent by XFMail
--


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message



Realplayer and Yamaha 740C on current - update

2000-08-22 Thread Reinier Bezuidenhout

Dit another test ... 

Used mpg123 with the "-m" option for mono sound (all the thins
that "broke" was in mono) and got the same noise ... seems like
"mono" sound for the 740C Yamaha is broken ??

Reinier


On 22-Aug-00 Reinier Bezuidenhout wrote:
 Hi ...
 
 I have a 5.0-current .. kernel compiled of a day or so ago.
 
 When I'm using Realplayer7 or plaympeg (package smpeg) to play
 real audio or mpegs I just get this load "hissing" noise.
 
 When I use mpg123 to play a mp3 the sound is OK .. CD sound
 works fine and games too.
 
 Any idea why realaudio (even when playing a local file) and
 plaympeg seems to corrupt the sound ??
 
 Somehow I recall that this used to work .. but I can't confirm it :)
 
 Thanx
 Reinier
 
###
# #
#  R.N. Bezuidenhout  NetSeq Firewall #
#  [EMAIL PROTECTED]   http://www.nanoteq.co.za#  
# #
###
 
 --
 Date: 22-Aug-00
 Time: 15:16:54
 
 This message was sent by XFMail
 --
 
 
 To Unsubscribe: send mail to [EMAIL PROTECTED]
 with "unsubscribe freebsd-current" in the body of the message

###
# #
#  R.N. Bezuidenhout  NetSeq Firewall #
#  [EMAIL PROTECTED]   http://www.nanoteq.co.za#  
# #
###

--
Date: 22-Aug-00
Time: 16:14:17

This message was sent by XFMail
--


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message



Re: Realplayer and Yamaha 740C on current - update

2000-08-22 Thread Reinier Bezuidenhout

Roger ..

I cvs-ed the sources for the kernel from yesterday .. but I'll
get the latest ones now .. I'm just not sure if Cameron has
committed the changes yet .. but in any case ... thanx
Cameron !! :)

Rgds
Reinier


On 22-Aug-00 Roger Hardiman wrote:
 Reinier
 
 seems like "mono" sound for the 740C Yamaha is broken ??
 
 
 I found 'mono' audio was broken on my Yamaha 724F PCI card
 at the weekend.
 
 Cameron said several users have reported this and he has
 reworked the code in -current to hopefully work around
 this problem.
 
 Roger

###
# #
#  R.N. Bezuidenhout  NetSeq Firewall #
#  [EMAIL PROTECTED]   http://www.nanoteq.co.za#  
# #
###

--
Date: 22-Aug-00
Time: 16:42:39

This message was sent by XFMail
--


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message



RE: RSA problem with SSH ...

2000-07-21 Thread Reinier Bezuidenhout

Hi 

I had the same problem ... but in my case I did not have the
RANDOMDEV compiled in ... so I loaded the kld and whala ... it
worked ...


Try loading the KLD .. also check that the lib's actually do
include the RSA stuff (nm libname | grep RSA ) might help.

Reinier


On 21-Jul-00 The Hermit Hacker wrote:
 
 Just upgraded to the newest -current, and now can't use SSH:
 
 ssh: no RSA support in libssl and libcrypto.  See ssl(8).
 
 Tried to read the 'ssl(8)' man page, but it comes back as:
 
 man 8 ssl
 No entry for ssl in section 8 of the manual
 man ssl
 No manual entry for ssl

 
 Did mergemaster and saw the 'MAKE_RSAINTL' setting in
 /etc/defaults/make.conf, so did that and did a new 'make world' ...
 
 Even saw the note about /usr/ports/security/rsaref and installed that, no
 difference ...
 
 Read through /usr/src/UPDATING and can't seem to find anything that
 applies other then the mentioning of RANDOMDEV, which I have configured in
 ...
 
 So ... what am I missing that this missing man page seems to be indicated
 as the answer? :)
 
 Thanks ...
 
 Marc G. Fournier   ICQ#7615664   IRC Nick:
 Scrappy
 Systems Administrator @ hub.org 
 primary: [EMAIL PROTECTED]   secondary:
 scrappy@{freebsd|postgresql}.org 
 
 
 
 To Unsubscribe: send mail to [EMAIL PROTECTED]
 with "unsubscribe freebsd-current" in the body of the message

###
# #
#  R.N. Bezuidenhout  NetSeq Firewall #
#  [EMAIL PROTECTED]   http://www.nanoteq.co.za#  
# #
###

--
Date: 21-Jul-00
Time: 13:50:54

This message was sent by XFMail
--


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message



8 Feb current install failures

2000-02-10 Thread Reinier Bezuidenhout

Hi ...

I checked out a -current of about midnight 8 Feb ...

After doing a "make buildworld" (which finished ok) ... did
a "make installworld" which failed because my /usr/bin/install
was not updated and thus dit not support the -fschg option.

I copied the newly build install to /usr/bin and the "make installworld"
completed without errors so I thought .. ok ... now it works.

I compiled a new kernel and rebooted.

But now everything which uses libstdc++.so.3 failes because of ...


/usr/libexec/ld-elf.so.1: /usr/lib/libstdc++.so.3: Undefined symbol "_vt$9exception"

So now my KDE etc. doesn't start anymore :) HELP

I've made sure that all the libraries are the latest ... I also updated
/usr/src/contrib again and /usr/src/gnu

Reinier


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message



Re: newpcm

2000-01-18 Thread Reinier Bezuidenhout

Hi ...

 
URL:http://www.FreeBSD.org/cgi/getmsg.cgi?fetch=245121+249137+/usr/local/www/db/text/1998/freebsd-multimedia/19980215.freebsd-multimedia
 
 I (and many others, I'm sure) would be very grateful if somebody would
 implement Luigi's first suggestion, to wit:

I get the hint :)

 
  1) complete the SETFRAGMENT (or whatever it is called) implementation
 (not hard, you just need to reduce the blocksize in the dma buffer
 descriptor and reset the dma channel;

I had a look at the current pcm in -current ... there is code to change
the second snd buffer size when it is requested ... but I'm not exactly
sure what is the difference between the first and second buffer 

I stil have to find out how to "reset" the dma channel ... because I 
don't see that that is done anywhere 

Anyone with some help  :)

 
 The ioctl in question is SNDCTL_DSP_SETFRAGMENT. Its semantics are
 described in the "Making audio complicated" section of the OSS
 Programmer's Guide: URL:http://www.opensound.com/pguide/audio2.html.

I'm having a look at this too :)

Reinier


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message



Re: Flash (was: Re: Sound card support)

1999-12-09 Thread Reinier Bezuidenhout

Hi ..

Under current the flash plugin works with the linux version of
Netscape and the linuxelator ... Sound etc, everything works ok ...
except for the odd crash of netscape which is normal :)

Just get the linux netscape and the linux flash plugin.

Reinier

 [again subject changes]
 
 -On [19991209 16:00], Donn Miller ([EMAIL PROTECTED]) wrote:
 On Thu, 9 Dec 1999, Motoyuki Konno wrote:
 
  Please see Netscape plugin port (ports/www/flashplugin) to find
  out why we still have to need a.out support.
 
 Wow -- there's a flash plugin for Netscape?  That's what I needed for a
 couple of web sites.
 
 Good luck using it under current.
 
 First site you hit quits netscape without reasons...
 
 ...until you drop out of X and see a __sh_getcontext  IIRC warning on
 your console.
 
 I already mailed maintainer about this.
 
 -- 
 Jeroen Ruigrok van der Werven/Asmodai   asmodai@[wxs.nl|bart.nl]
 Documentation nutter.  *BSD: Technical excellence at its best...  
 The BSD Programmer's Documentation Project http://home.wxs.nl/~asmodai
 Atone me to my throes curtail...
 
 
 To Unsubscribe: send mail to [EMAIL PROTECTED]
 with "unsubscribe freebsd-current" in the body of the message
 



To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message



Re: ESS sound drivers and 4.0-current

1999-11-01 Thread Reinier Bezuidenhout

 On Sun, 31 Oct 1999, Donn Miller wrote:
 
  I believe the ESS drivers weren't committed to 4.0-current yet.  When I
  grep ' ESS ' in /sys/i386/isa/sound, the only thing I can come up with is
  the ESS support that was in the old voxware sound code.  Sanpei, who is
  developing the ESS sound drivers, says they were committed to the newpcm
  drivers.  I believe they were not added yet.
  
  From http://home.jp.freebsd.org/~sanpei/:
  
  tarball for 4-current -- our ESS(ISA) code was commited to newpcm driver
  in 4.0-current(1999/09/04) 
 
 The sound drivers for -current are in sys/dev/pcm.

I have made a change to the ESS code in the pcm/isa/sb.c to allow
my ESS1869 card to change the volume in both channels ... I'm running
current of a few days ago.

Previously the right hand channel stayed at one volume no matter what
the mixer tells it.

I have previously sent and email with the changes, but I'm happy to do it
again :) ... It works for my card, but I don't know if it breaks
anything else.

Reinier


 snip -- snip --- snip --

jarrow# cvs diff -c sb.c
Index: sb.c
===
RCS file: /home/ncvs/src/sys/dev/pcm/isa/sb.c,v
retrieving revision 1.29
diff -c -r1.29 sb.c
*** sb.c  1999/10/16 15:57:33   1.29
--- sb.c  1999/11/01 10:05:41
***
*** 1191,1197 
val = sb_getmixer(sb, regoffs);
change_bits(iomap, val, dev, LEFT_CHN, left);
sb_setmixer(sb, regoffs, val);
!   if ((*iomap)[dev][RIGHT_CHN].regno != regoffs) { /* Change register */
regoffs = (*iomap)[dev][RIGHT_CHN].regno;
if (regoffs != 0) {
  val = sb_getmixer(sb, regoffs); /* Read the new one */
--- 1191,1197 
val = sb_getmixer(sb, regoffs);
change_bits(iomap, val, dev, LEFT_CHN, left);
sb_setmixer(sb, regoffs, val);
!   if (((*iomap)[dev][RIGHT_CHN].regno != regoffs) || (sb-bd_flags  BD_F_ESS)) 
{ /* Change register */
regoffs = (*iomap)[dev][RIGHT_CHN].regno;
if (regoffs != 0) {
  val = sb_getmixer(sb, regoffs); /* Read the new one */


 
 --
 Doug Rabson   Mail:  [EMAIL PROTECTED]
 Nonlinear Systems Ltd.Phone: +44 181 442 9037
 
 
 
 
 To Unsubscribe: send mail to [EMAIL PROTECTED]
 with "unsubscribe freebsd-current" in the body of the message
 



To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message



KDE 1.1.2 package for current seems broken

1999-10-28 Thread Reinier Bezuidenhout

Hi ...

Anyone tried to install the KDE 1.1.2 current package ??

I tried to install this and it would not startup, it complained
about undefined symbols. I searched for these symbols and found them 
in libqt2.so.2 ... I installed this and tried to start KDE again,
it then complained about symbols only found in libqt.so.2 (qt 1.42)

The executables are only linked to libqt.so.2 (qt 1.42)...

It seems that it is looking for both libraries which is wrong ??

Anyone got this working ??

Reinier


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message



NOT! KDE 1.1.2 package for current seems broken

1999-10-28 Thread Reinier Bezuidenhout

Hi ...

It seems that the qt-1.42 package of current is different than that
of the 3.3. packages ... I just installed the current version of 
qt-1.42 and now kde 1.1.2 is working fine ...

Reinier


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message



Re: HEADS UP: sigset_t changes committed

1999-09-30 Thread Reinier Bezuidenhout

I know this is not topic related, so appologies in advance ... 

Sometimes people deserve a pat on the back.

This is the best thing since Chocolate Chip cookies :)

We're running things like myth2_demo, and it opens the doors
to a whole bunch of applications ... e.g. C++ Builder to follow
next year (for Linux, but probably running in Linuxulator !!)

thanks
Reinier

 BTW: I think that what  you are doing is really great !!
 
 Hmm... I wonder if the volume in the list will increase with cool
 apps such as IBM's ViaVoice which needs your mods to work.
 
   Tnks !
 
 
 -- 
 
  Amancio Hasty
  [EMAIL PROTECTED]
 
 
 
 
 To Unsubscribe: send mail to [EMAIL PROTECTED]
 with "unsubscribe freebsd-current" in the body of the message
 



To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message



pnp in userconfig

1999-09-15 Thread Reinier Bezuidenhout

Hi ...

I've got a -current of about a week ago .. when I boot in user config,
pnp is no longer listed as a command.  when executing pnp .. it
says 
"Invalid command or syntax.  Type `?' for help."

Is pnp command no longer in user config in -current ???

Thanx
Reinier


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message



Endless loop in libpcap 2.2.x/3.x/-current

1999-09-10 Thread Reinier Bezuidenhout

Hi ...

We are running a system where we use the libpcap to capture
packets from an ethernet device.  We've been observing a problem where
the monitor program goes into an endless loop and spins for ever.

I've compiled the program with debugging on and observed that the
call-back function is called repeatedly from the libpcap library.

I examined the library and ended up in the pcap_read function in 
pcap-bpf.c

The code follows
snip - snip - snip

round line 110 in 2.2.x  and in -current

--

#define bhp ((struct bpf_hdr *)bp)
ep = bp + cc;
while (bp  ep) {
register int caplen, hdrlen;
caplen = bhp-bh_caplen;
hdrlen = bhp-bh_hdrlen;
/*
 * XXX A bpf_hdr matches a pcap_pkthdr.
 */
(*callback)(user, (struct pcap_pkthdr*)bp, bp + hdrlen);
bp += BPF_WORDALIGN(caplen + hdrlen);
if (++n = cnt  cnt  0) {
p-bp = bp; 
p-cc = ep - bp;
return (n);
}
}
#undef bhp
p-cc = 0;
return (n);

--

In our case (from the debug info obtained from our program, I can see that
bhp-bh_caplen and bhp-bh_hdrlen are both zero (0).

(gdb) p *(struct bpf_hdr *)pkt
$11 = {bh_tstamp = {tv_sec = 16652, tv_usec = 0}, bh_caplen = 0, 
  bh_datalen = 33555200, bh_hdrlen = 0}

pkt is bp received back from libpcap.

cnt is -1 when we installed the callback function.

As can be seen ... caplen and hdrlen is then set to 0. bp is smaller
than ep because cc 0 (data was read)

It enters the while loop, set caplen, hdrlen to 0, calls the callback
function.  libpcap then tries to increment bp with the BPF_WORDALIGN
macro.
From bpf.h
#define BPF_ALIGNMENT sizeof(long)
#define BPF_WORDALIGN(x) (((x)+(BPF_ALIGNMENT-1))~(BPF_ALIGNMENT-1))

This concludes to 
(gdb) p (((0)+(sizeof(long)-1))~(sizeof(long)-1))
$12 = 0

so bp is NOT incremented and the whole process is repeated and here it
gets stuck in the loop.

I attached a possible fix for this, please review, edit as necessar and
commit :)

The patch is to -current file, put should apply to most other versions
too.

Thankyou

Reinier


Index: pcap-bpf.c
===
RCS file: /home/freebsd-cvs/src/contrib/libpcap/pcap-bpf.c,v
retrieving revision 1.1.1.3
diff -c -r1.1.1.3 pcap-bpf.c
*** pcap-bpf.c  1998/09/15 19:28:05 1.1.1.3
--- pcap-bpf.c  1999/09/10 10:11:49
***
*** 117,122 
--- 117,130 
 * XXX A bpf_hdr matches a pcap_pkthdr.
 */
(*callback)(user, (struct pcap_pkthdr*)bp, bp + hdrlen);
+   /* 
+* If we can't increment bp, get out of the while 
+* We've atleast called the callback with the data 
+* we have at out disposal - NB : it might be garbage
+*/
+   if (!BPF_WORDALIGN(caplen + hdrlen)) {
+   break;
+   }
bp += BPF_WORDALIGN(caplen + hdrlen);
if (++n = cnt  cnt  0) {
p-bp = bp;



make port and bsd.port.mk

1999-02-03 Thread Reinier Bezuidenhout
Hi ...

I recently upgraded from 3.0-current to 3.0-STABLE ...

When running 3.0-current I was able to build ports
without a problem.

In the new system ... I get the following error :

/usr/share/mk/bsd.port.mk, line 2: Could not find /usr/ports/Mk/bsd.port.mk
make: fatal errors encountered -- cannot continue


There is no /usr/ports/Mk directory on my machine 

(I did a make buildworld and a installworld )

Where can I find these files or is it a bug ??

Reinier

To Unsubscribe: send mail to majord...@freebsd.org
with unsubscribe freebsd-current in the body of the message