variable size too large?

2003-03-14 Thread Ferruccio Vitale
Hi all, I'm writing a little multithread program: in my thread function, I allocated a char variable of IP_MAXPACKET size; when I try to compile it, everything goes well, but when I run it, it dies, making a core file. Assume that: 1) the same code, with only one thread, linked to libc, runs

Re: divert socket

2003-03-10 Thread Ferruccio Vitale
I try to explain better my problem: when my daemon tries to read from this socket, recv tells me it read 68 bytes, for example, which is about message size at application layer, but what I read is not I expect (string without sense). Is there a particular way to read from a raw socket or a

divert socket

2003-03-09 Thread Ferruccio Vitale
Hi hackers, I've a daemon which create and open a divert socket, which is feeded by a 'tee rule' in ipfw rulset; my doubt is: what is it passed to this socket? entire packet or at least layer-3 information (tcp/udp/...)? Regards, Ferruccio To Unsubscribe: send mail to [EMAIL PROTECTED] with

MAKEDEV not present

2002-12-19 Thread Ferruccio Vitale
Hi hackers, I just upgraded my 4.7 box to 5.0 and 'everything' works fine... ;-) Looking at my /dev directory, I can't find MAKEDEV file. I tried to rebuild everything, to create that file, to copy, but it always say that this operation is not allowed. What's gone wrong? How can I copy it

Re: MAKEDEV not present

2002-12-19 Thread Ferruccio Vitale
that's ok. I'll explain better my problem :-) Both 'mixer' and 'umix' port see only pcm volume, when, with FreeBSD 4.7, I was able to control cd-rom output, line in, bass/treble and so on. I thought it was a device trouble, but it seems not. Any suggestions? Ferruccio To Unsubscribe: send mail

Re: kernel thread

2002-06-11 Thread Ferruccio Vitale
Hiten Pandya wrote: Ok, I cant find any man page called shutdown_kproc in either 4.3 or 4.4. Anyway, he wants to destroy a thread, and not an internal daemon/process. To destroy a kernel thread, you need to make use of the kthread_exit() operation. It is prototyped as follows: void

kernel thread

2002-06-10 Thread Ferruccio Vitale
Hi, how can I destroy a kernel thread that I previously created? Regards, Ferruccio To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-hackers in the body of the message

Re: kernel thread

2002-06-10 Thread Ferruccio Vitale
Andy Sporner wrote: man ktread_shutdown To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-hackers in the body of the message I can't find any man pages about it; I searched on the net, grep'ed /usr/src entirely but any results. I've freebsd 4.6RC release. Any advice?

kernel event module

2002-06-04 Thread Ferruccio Vitale
Hi, I'm trying to write a kernel module which make use of kernel event. is there anyone who knows where I can find documentation about this? Regards, Ferruccio To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-hackers in the body of the message

Re: Newbie needs help!!!!!

2002-06-04 Thread Ferruccio Vitale
O Senhor wrote: hello, In the FreeBSD home page, there is docomentations for developers, that talk about it. On Wed, 2002-05-29 at 06:29, Ferruccio Vitale wrote: Hi, I'm trying to write a kernel module which make use of kernel event. is there anyone who knows where I can find

Newbie needs help!!!!!

2002-06-03 Thread Ferruccio Vitale
Hi, I'm trying to write a kernel module which make use of kernel event. is there anyone who knows where I can find documentation about this? Regards, Ferruccio To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-hackers in the body of the message