Netgraph question

2005-06-14 Thread Aziz Kezzou
Hi all, I worked a bit with netgraph nodes and I find them very amazing and powerfull... Since my netgraph experience is still quite limited ( they are out of the scope of my project actually) I would like to know if the following claim is true, I need to be sure because it is for my master thesis

FreeBSD Memory Management questions ?

2005-06-14 Thread Aziz Kezzou
Hi all, I have two questions concerning FreeBSD Memory management : 1 - Right now to access the memory address space of a user process from kernel mode, I only have to set, on x86 systems, the register CR3 to the right value. How can I do that on other architectures ? is there an architecture-ind

How to do a routing lookup inside the kernel in FreeBSD ?

2005-06-09 Thread Aziz Kezzou
Hi all, I am trying to figure out from the kernel source code (FreeBSD 5.3) how can I perform a routing lookup in a KLD module. Since I am short in time, if anyone knows how do to do this I would appreciate. Any pointers to the right portion of the code are also apperciated. Thanks, -aziz _

Routing loop + raw IP packets : looking for clues ...

2005-05-31 Thread Aziz Kezzou
Hi all, For the purpose of my project I am simpulating a 3-hop network with QEMU on my workstation, as follows : |-| |---| |-| |Daemon1(user process)|---tun0---| Daemon 2 on QEMU

Re: Pseudo-device driver & select ??

2005-05-26 Thread Aziz Kezzou
> > > > Aziz Kezzou wrote: > > > Hi all, > > > I am trying to implement a small kld pseudo-device driver on FreeBSD 5.3 > > > that > > > behaves just like a socket with regards to the select system call. > > > > > > Currentl

Re: Pseudo-device driver & select ??

2005-05-26 Thread Aziz Kezzou
> > Aziz Kezzou wrote: > > Hi all, > > I am trying to implement a small kld pseudo-device driver on FreeBSD 5.3 > > that > > behaves just like a socket with regards to the select system call. > > > > Currently, I am using the sample echo pseudo-device

Pseudo-device driver & select ??

2005-05-26 Thread Aziz Kezzou
Hi all, I am trying to implement a small kld pseudo-device driver on FreeBSD 5.3 that behaves just like a socket with regards to the select system call. Currently, I am using the sample echo pseudo-device driver from http://www.freebsd.org/doc/en_US.ISO8859-1/books/arch-handbook/driverbasics-char

weird NFS problem ?

2005-05-25 Thread Aziz Kezzou
Hi all, I am experiencing a weird problem while mounting nfs files. Configuration : - NFS client : FreeBSD 5.3 running on QEMU, IP = 192.168.0.2 - NFS server : FC3, the host, IP = 192.168.0.1 Firewalling: absolutely everything is authorized from 192.168.0.2 on 192.168.0.1 Problem : some UDP po

generic network protocols parser ?

2005-03-04 Thread Aziz KEZZOU
Hi all, I am wondering if any one knows about a generic parser which takes a packet (mbuf) of a certain protocol (e.g RSVP ) as input and generates some data structre representing the packet ? I've been searching for a while and found that ethereal and tcpdump for example use specific data struct

netgraph question : how to intercept incoming IP packets of a certain type?

2005-03-01 Thread Aziz KEZZOU
Hi folks, Here is what I want to do : "Intercept all incoming IP packets on an Ethernet interface of a certain type (e.g RSVP) and call my own function to process, all inside the kernel" Netgraph nodes : ng_iface, nf_bpf (and probably ng_ether) look promising for this task but I can not figure out