[Click] Read data from a real IP address

Nicholas Weaver nweaver at ICSI.Berkeley.EDU
Fri Apr 16 14:07:14 EDT 2010


On Apr 16, 2010, at 11:03 AM, Jimmy wrote:

> Hi all,
> 
> Is it possible to read packets data from a real IP address using user level?
> 
> So FromDevice.u reads packets from the kernel that were received on
> the network controller named DEVNAME, but if I want to read data from
> a specific IP address, how to do that?

An IPClassifier element to only have relevant packets passed further on.

> How can I identify my own computer's network controller name?

Ifconfig and read the results into your script.

> 
> Thanks a lot.
> 
> J.
> 
> -- 
> Best Regards,
> 
> Jimmy
> _______________________________________________
> click mailing list
> click at amsterdam.lcs.mit.edu
> https://amsterdam.lcs.mit.edu/mailman/listinfo/click




More information about the click mailing list