Handling UDP packets

Douglas S. J. De Couto decouto at lcs.mit.edu
Mon Nov 4 13:03:06 EST 2002


well, if you have a static packet format yu can use an offset from 
p->data().

i'd print out the values of p->data(), the value of the header, the 
header size, etc., and print out the packet using Print or something, 
and make sure everything is consistent.

d


Juan Luis Baptiste wrote:
> Hi douglas,
> 
> I'm already doing that. Any other suggestion?
> 
> I'm working winth DNS packets, and getting it's header all wrong...
> 
> 
> 
> Juan Luis
> 
> --------------------
> you have to make sure that the ip6_header annotation is set before 
> calling p->ip6_header().  You can accomplish this by sending the
> packet 
> through one of CheckIP6Header, MarkIP6Header, etc.
> 
> d
> 
> 
> 



-- 
Douglas S. J. De Couto    decouto at lcs.mit.edu





More information about the click mailing list