[Click] Help! - Logging packets to /proc

Praveen Balasubramanian praveen_b at mail.utexas.edu
Thu Nov 23 19:03:22 EST 2006


Hi,

I would like to achieve the same functionality in a Click element rather than a
spearate driver. But I would surely like to have a look at how your driver gets
Click packets and writes them to /proc/touserX.

Thanks and Regards,
Praveen

Quoting rchertov at purdue.edu:

> I have created two device drivers that are integrated with Click. One allows
> a
> user level app to write raw IP packets to Click, and the other one allows a
> user
> level app to read raw IP packets out of click. (i.e. read from /dev/touserX
> or
> write to /dev/toclickX) Both drivers just maintain two circular buffers and
> are
> thread safe.  If there is interest in these I can release them.
>
> Roman
>
> > Hi all,
> >
> > I am using a Click router configuration in kernel mode.
> > I want to add an element that logs packets in /proc. I tried using
> > read_handler function (add_read_handler), but that is static and hence
> > can't be used by multiple element instances.
> > Should I add /proc handling code to the element or is there any way to
> > use an existing Click interface to do the same?
> >
> > Regards,
> > Praveen
> > _______________________________________________
> > click mailing list
> > click at amsterdam.lcs.mit.edu
> > https://amsterdam.lcs.mit.edu/mailman/listinfo/click
> >
>
>





More information about the click mailing list