Saturday, October 24, 2020

Modifying payload/padding size for packets

For $application I'd like to modify traffic so each packet is a constant size. MTU size would be ideal. For that I want to zero pad the packets, the zeros then get stripped off on the other end so it looks like the normal packet again.

UDP and TCP has padding but I guess when changing the value to MTU I won't have space for data left since padding comes before data (correct me if I am wrong)

Any other ways to do that? Some easy way to rewrite the payload in user space? It does not need to be efficient, I don't need to push packets at gbits. I found the QUEUE target for iptables which could be useful. Any alternatives or maybe already existent tools?



No comments:

Post a Comment