Re: Problem with usb in FreeBSD 4.8....help!!!

2004-03-28 Thread Toni Andjelkovic
On Sun, Mar 28 2004 (02:51:56 -0800), jitendra pande wrote: > My application uses libusb for iinteracting with the usb devices... > libusb on freeBSD 4.8 tries to find /debv/ugen0, /dev/ugen1 and so > onhence couldn't able to detect more then one device. ... > FreeBSD 4.8 and FreeBSD 5.0 Note

Re: kldstat and module ref count

2004-03-25 Thread Toni Andjelkovic
On Fri, Mar 26 2004 (09:15:26 +1100), Sam Lawrance wrote: > I've tried to find the answer to this but am stuck. How can I prevent a > kld module being unloaded if it is still in use? > > Filesystem modules give "device busy" if you try to kldunload them while > still in use. Any sort of quick poin

Re: kernel modules programming: struct proc question

2004-03-17 Thread Toni Andjelkovic
On Wed, Mar 17 2004 (17:00:02 +0200), Artis Caune wrote: > "pid_t" is signed int type, or am I missing something? You are right, pid_t is __int32_t, which is signed, so "%d" is the correct format. I assumed that in this case, the signed integer overflowed, so maybe interpreting it as an unsigned

Re: kernel modules programming: struct proc question

2004-03-16 Thread Toni Andjelkovic
On Tue, Mar 16 2004 (19:39:56 +0300), Roman Bogorodskiy wrote: [...] > printf("open(2): %s pid: %i\n", name, (int)p->p_pid); [...] > Mar 16 19:15:44 nov kernel: open(2): /tmp/asfdasfsaf pid: -1002890624 pid_t is an unsigned number, so try "%u" in printf() instead. There's no need to

Re: using devel/libusb to access USB

2003-11-25 Thread Toni Andjelkovic
On Mon, Nov 24 2003 (09:25:52 -0500), Dan Langille wrote: > We have been looking at the devel/libusb port and experimenting with > testlibusb which is a part of that port. We have noticed that > usb_find_devices() does not find any devices. Looking at the usb.c > code within libusb, we found t

Re: tcp raw socket programming recvfrom()

2003-07-10 Thread Toni Andjelkovic
On Wed, Jul 09 2003 (12:45:14 +0300), Alin-Adrian Anton wrote: > Usually? What does usually mean? I know I can use bpf. But is there > another way to look at incoming TCP packet ? What I did is I sent a TCP > SYN packet and the server answers with a TCP SYN_ACK packet. How can I > look at the SY

Re: 5 "Advanced" networking questions

2003-07-07 Thread Toni Andjelkovic
On Mon, Jul 07 2003 (18:02:52 +0200), Socketd wrote: > Ok, anyway to prevent sending ICMP's when ttl = 0? Or do I need a > firewall? Yes, you'd need a firewall. Cheers, Toni ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/fr

Re: 5 "Advanced" networking questions

2003-07-07 Thread Toni Andjelkovic
On Mon, Jul 07 2003 (01:22:05 +0200), Socketd wrote: > 1. Reading "man blackhole" I found that net.inet.udp.blackhole=1 will > prevent traceroute. Is this only if the host is the end target? or will > it simply disable sending an ICMP packet when it get's a packet with > ttl=1? Look in sys/netinet