Forum Discussion

posiczko_73022's avatar
posiczko_73022
Icon for Nimbostratus rankNimbostratus
Jan 18, 2008

How to modify IP payload (UDP checksum)?

Hello,

 

 

This may be a novice question, but how does one modify IP payload? I need to modify UDP checksum in a packet, alas this seems close to impossible. UDP has UDP::payload, as does TCP, but IP doesn't?

 

 

Would replacing the payload with original payload force calculation of a checksum, like so:

 

 

when CLIENT_DATA {

 

set length [UDP::payload length]

 

set payload [UDP::payload]

 

UDP::payload replace 0 0 $payload

 

}

 

 

Thanks!

 

 

Pawel
  • Deb_Allen_18's avatar
    Deb_Allen_18
    Historic F5 Account
    Hi Pawel -

     

     

    We don't yet have the ability to manipulate L3 payload / L4 headers.

     

     

    I'm not sure if replacing the payload would recalculate the checksum, but it's worth trying.

     

     

    /deb