nopasaran.utils.set_UDP_payload

nopasaran.utils.set_UDP_payload(packet, payload_bytes)

Replace the payload of a UDP packet with payload_bytes without recreating the entire packet.

If a Raw layer already exists, update its load; otherwise, append a new Raw layer.