[Click] uniqueify problem

Eddie Kohler kohler at cs.ucla.edu
Thu Mar 30 18:16:57 EST 2006


You can also use functions such as click_update_in_cksum to change  
the checksum incrementally.  Check out ICMPPingResponder to see how  
it is used.

E



On Mar 30, 2006, at 3:12 PM, Beyers Cronje wrote:

> Koen,
>
> Use the SetIPChecksum and SetUDPChecksum elements.
>
> http://www.read.cs.ucla.edu/click/elements/setipchecksum
> http://www.read.cs.ucla.edu/click/elements/setudpchecksum
>
> Beyers
>
> On 3/30/06, Koen Segers <KoenSegers at scarlet.be> wrote:
>>
>> On Thursday 30 March 2006 21:00, Jason Haas wrote:
>>> Hi Koen,
>>
>> Hi
>>
>>> You can try adding Print elements before your element to verify  
>>> where
>> the
>>> mismatch is. Also, you can try adding debug statements to your  
>>> code and
>>> print out the pointers to verify they point to where you think they
>> should.
>>> You could also save your cast to char* by using ->network_header()
>> instead
>>> of ->ip_header(). If the network header annotation isn't set to  
>>> be an IP
>>> header for some reason, that switch could help.
>>
>> Thx for the advice!
>> I found my problem exactly the way you described it. There was a  
>> double
>> Encap
>> before the packet was sent to other nodes.
>>
>> I have/had though another problem: I also need to change the ip  
>> header of
>> my
>> packet. But I always get an invalid checksum. Can you tell me what  
>> the
>> exact
>> function is I need to call?
>> For the moment I do a strip and an encap. I know it isn't the  
>> proper way,
>> but
>> this way I can carry on coding and adding functionality...
>>
>> greetz
>>
>> --
>>
>> Koen Segers
>>
>>
>> _______________________________________________
>> click mailing list
>> click at amsterdam.lcs.mit.edu
>> https://amsterdam.lcs.mit.edu/mailman/listinfo/click
>>
>>
>>
>>
> _______________________________________________
> click mailing list
> click at amsterdam.lcs.mit.edu
> https://amsterdam.lcs.mit.edu/mailman/listinfo/click



More information about the click mailing list