urgent question regarding IP-in-IP encapsulation

2002-01-16 Thread radhika sinha
Hi, I have a question regarding Ip-in-IP encapsulation in freeBSD. In my implementation, I want a multicast router to encapsulate multicast packets destined for certain groups with an extra IP header before forwarding them out. I am giving below some of the code: if(IN_MULTICAST(ntohl(ip->ip_dst

kevent() in another thread

2002-01-16 Thread Floris 'Tamama' van Gog
Hi, I have made a small servent (client + server) that uses kqueue()/kevent(). This works like a charm. However now I want to connect from another thread to a server, and add a kevent on the socket. I read that kevent/kqueue weren't very thread-safe. Is this safely possible, or would I need to ma

Re: Need review of NFS patch set for server .. missing/wrong vput() issues

2002-01-16 Thread Matthew Dillon
:http://www.freebsd.org/cgi/cvsweb.cgi/src/sys/ufs/ffs/ffs_softdep.c :#2: 1.104 :#3: 1.103 : :BTW is the VDRAINED stuff in your patch just left over from something :else? It doesn't seem to be present in -current. : :Ian It's left over from testing. It's not part of the drain_o

Re: [nicole@unixgirl.com: What is biord?]

2002-01-16 Thread Alfred Perlstein
* David Malone <[EMAIL PROTECTED]> [020116 14:30] wrote: > On Wed, Jan 16, 2002 at 02:18:25PM -0800, Josef Grosch wrote: > > I have a mysql database that seems slow and when looking at it in top it > > always seems to be in a state of biord > > What the heck is biord I can't find this anywere >

Re: [nicole@unixgirl.com: What is biord?]

2002-01-16 Thread Rogier R. Mulhuijzen
> > Hello > I have a mysql database that seems slow and when looking at it in top it >always seems to be in a state of biord > What the heck is biord I can't find this anywere > > Thanks Block I/O ReaD (if I'm not terribly mistaken. I'm thinking it could be Buf IO too, but that would be co

Re: [nicole@unixgirl.com: What is biord?]

2002-01-16 Thread David Malone
On Wed, Jan 16, 2002 at 02:18:25PM -0800, Josef Grosch wrote: > I have a mysql database that seems slow and when looking at it in top it > always seems to be in a state of biord > What the heck is biord I can't find this anywere 22:21:gonzo 3% fgrep biord /usr/src/sys/kern/* /usr/src/sys/kern/v

[nicole@unixgirl.com: What is biord?]

2002-01-16 Thread Josef Grosch
- Forwarded message from Hodge Podge <[EMAIL PROTECTED]> - X-Mailer: XFMail 1.4.0 on FreeBSD Date: Wed, 16 Jan 2002 14:18:23 -0800 (PST) From: Hodge Podge <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] Subject: to post Hello I have a mysql database that seems slow and when looking at it i

PCI DMA codes

2002-01-16 Thread Hyong-Youb Kim
To the great minds of the freebsd hackers, I am trying to measure the amount of data (plus # of bytes required to set up a dma transfer) transferred via DMA transfers between a PCI device and the main memory. I am wondering if any one knows what source codes I should look for. Thanks. John To

Re: Need review of NFS patch set for server .. missing/wrong vput() issues

2002-01-16 Thread Ian Dowse
In message <[EMAIL PROTECTED]>, Matthew Dillon wri tes: >NFS fix). I think Ian's mknod tests are a no-brainer. They should >just go in, as should my mknod fix. I agree here - Matt's mknod fix and the S_IFMT mode bits corruption bug that I fixed are simple fixes and they are both effecti

Re: interesting open() issue

2002-01-16 Thread Terry Lambert
Foldi Tamas wrote: > > Hello hackers, > > I tried the following program on Tru64, FreeBSD and linux: > > #include > #include > #include > #include > main() { > int fd; > fd = open ( "/tmp/foobar", (O_RDWR | O_CREAT), 0020); > perror("open"); > close(

Re: Almost diskless workstation

2002-01-16 Thread Alfred Perlstein
* Robert Thoelen III <[EMAIL PROTECTED]> [020116 11:29] wrote: > Sorry about the previous empty post. I am trying > create a filesystem on a server running FreeBSD at > work. I would like to create a floppy that would > mount the filesystem by NFS. This way, on any given > machine at work, I co

RE: multilpe ddb_regs definitions

2002-01-16 Thread John Baldwin
On 16-Jan-02 Matthew Jacob wrote: > > I've had problems compiling alpha kernels for the last week or so- this > occurs (with or w/o DDB optioned in). > > subr_pcpu.o: In function `pcpu_init': > /tstsys/alpha/compile/GPLUS/../../../kern/subr_pcpu.c(.data+0x8): multiple > definition of `ddb_regs'

Re: Almost diskless workstation

2002-01-16 Thread Chris Faulhaber
On Wed, Jan 16, 2002 at 11:29:25AM -0800, Robert Thoelen III wrote: > Sorry about the previous empty post. I am trying > create a filesystem on a server running FreeBSD at > work. I would like to create a floppy that would > mount the filesystem by NFS. This way, on any given > machine at work,

Almost diskless workstation

2002-01-16 Thread Robert Thoelen III
Sorry about the previous empty post. I am trying create a filesystem on a server running FreeBSD at work. I would like to create a floppy that would mount the filesystem by NFS. This way, on any given machine at work, I could put the floppy in and turn it into a BSD workstation, without manipul

[no subject]

2002-01-16 Thread Robert Thoelen III
= Robert Thoelen III E-mail: [EMAIL PROTECTED] __ Do You Yahoo!? Send FREE video emails in Yahoo! Mail! http://promo.yahoo.com/videomail/ To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of t

Re: Need review of NFS patch set for server .. missing/wrong vput() issues

2002-01-16 Thread Alfred Perlstein
* Matthew Dillon <[EMAIL PROTECTED]> [020116 10:51] wrote: > > : > :In message <[EMAIL PROTECTED]>, Matthew Dillon wri > :tes: > :>Ok, cool. I'll get the commit gears started for the > :>first part of the patch. > : > :FYI, I was able to reproduce this and confirm that the first part >

multilpe ddb_regs definitions

2002-01-16 Thread Matthew Jacob
I've had problems compiling alpha kernels for the last week or so- this occurs (with or w/o DDB optioned in). subr_pcpu.o: In function `pcpu_init': /tstsys/alpha/compile/GPLUS/../../../kern/subr_pcpu.c(.data+0x8): multiple definition of `ddb_regs' kern_mutex.o:/tstsys/alpha/compile/GPLUS/../../.

Re: New DOC/FAQ entry.. kernel contribution guidance

2002-01-16 Thread Alfred Perlstein
* Julian Elischer <[EMAIL PROTECTED]> [020116 10:40] wrote: > > > On Wed, 16 Jan 2002, K S Sreeram wrote: > > > Hi > > > > My name is K.S.Sreeram, and i am very much interested in contributing to > > the > [...] > > Sounds like you are ideally suited to this:-) > > here are some starting

Re: Need review of NFS patch set for server .. missing/wrong vput() issues

2002-01-16 Thread Matthew Dillon
: :In message <[EMAIL PROTECTED]>, Matthew Dillon wri :tes: :>Ok, cool. I'll get the commit gears started for the :>first part of the patch. : :FYI, I was able to reproduce this and confirm that the first part :of your patch fixes it. All that it takes is for the mknod to fail :because

Re: New DOC/FAQ entry.. kernel contribution guidance

2002-01-16 Thread Julian Elischer
On Wed, 16 Jan 2002, K S Sreeram wrote: > Hi > > My name is K.S.Sreeram, and i am very much interested in contributing to > the [...] Sounds like you are ideally suited to this:-) here are some starting tips. Tip 1: "no-one is going to ask you to do some particular thing". We are all vo

Re: interesting open() issue

2002-01-16 Thread Julian Elischer
He's talking about the different 'group' setting.. I think. it's different because SYSV (linux is based on the semantics of sysV) and BSD have a differnt semantic on this and always have.. BSD makes the file get the same group as the directory. Linux gives it the primary group of the creator. Lin

Re: how to go about writing a device driver (built-in NIC for Toshibalaptop)

2002-01-16 Thread Julian Elischer
start with the * -current *** version of /usr/share/examples/drivers/make_device_driver.sh On Wed, 16 Jan 2002, Fook Sheng Chan wrote: > Hi > > I wish to learn to write a device driver for toshiba > satellite 1800-A500. How do i go about doing it? > > Do i need info from Toshiba? i don't

kernel contribution guidance

2002-01-16 Thread K S Sreeram
Hi My name is K.S.Sreeram, and i am very much interested in contributing to the freebsd kernel. I have been browsing through the kernel code, but i was not able to follow it much, and i dont know where to begin, I would be happy, if somebody can help me through the process, as i feel confident,

Re: USB UHCI speed issue ?

2002-01-16 Thread Josef Karthauser
On Tue, Jan 15, 2002 at 05:50:45PM -0800, Ulf Zimmermann wrote: > Has this been fixed in -CURRENT ? And if so, can someone point me > at what files I can try to get onto -STABLE to get a higher speed > out ? I am working on an application and 64,000/sec is slow to test > things. I've been doing

Re: interesting open() issue

2002-01-16 Thread Greg Black
Foldi Tamas wrote: | Hello hackers, Don't send this sort of newbie programmer question to the hackers list (or to any of the FreeBSD lists). | I tried the following program on Tru64, FreeBSD and linux: | | #include | #include | #include | #include | main() { | int fd; |

Re: interesting open() issue

2002-01-16 Thread Andrew
On Wed, 16 Jan 2002, Foldi Tamas wrote: > The program ran successfully, but the created file was different. > On Linux: > -w1 crow crow0 Jan 16 10:32 /tmp/foobar > > On Tru64/FreeBSD: > --1 crow users 0 Jan 16 10:30 /tmp/foobar What

how to go about writing a device driver (built-in NIC for Toshiba laptop)

2002-01-16 Thread Fook Sheng Chan
Hi I wish to learn to write a device driver for toshiba satellite 1800-A500. How do i go about doing it? Do i need info from Toshiba? i don't seem to be able to get any info from their website thanks alot fook sheng __ Do You Yahoo!? Send FREE

Re: interesting open() issue

2002-01-16 Thread Justin C . Walker
My first guess is that the 'umask' differs in your various systems. "man 2 umask". Regards, Justin On Wednesday, January 16, 2002, at 01:59 AM, Foldi Tamas wrote: > Hello hackers, > > I tried the following program on Tru64, FreeBSD and linux: > > #include > #include > #include > #in

interesting open() issue

2002-01-16 Thread Foldi Tamas
Hello hackers, I tried the following program on Tru64, FreeBSD and linux: #include #include #include #include main() { int fd; fd = open ( "/tmp/foobar", (O_RDWR | O_CREAT), 0020); perror("open"); close(fd); } The program ran successfully, but the