[Click] How to see the packet content?

Eddie Kohler kohler at cs.ucla.edu
Tue Sep 27 02:56:22 EDT 2005


What Beyers said; also, check out the Packet::data() method.  Once  
you figure out the offset "off" of the data within the (say) TCP  
header, use packet->data() + off.

On Sep 23, 2005, at 9:40 AM, lz6 at njit.edu wrote:

> Hello, everyone,
>
> Given a Packet pointer *p, how can I take a look at the data  
> content of this
> packet? I know I can use all kinds of header pointer to take a look  
> at ip,
> tcp .. headers. But how can I take a look at the data part of the  
> packet
> besides all the headers?
>
> Thanks a lot
>
> Li
> _______________________________________________
> click mailing list
> click at amsterdam.lcs.mit.edu
> https://amsterdam.lcs.mit.edu/mailman/listinfo/click
>



More information about the click mailing list