tcp_probe: avoid modulus operation and wrap fix