Fix TCP data: send all zeros, not 0x07 header
All checks were successful
CI / test (push) Successful in 1m20s
All checks were successful
CI / test (push) Successful in 1m20s
MITM capture showed MikroTik sends all-zero TCP data streams. Our server was setting packet[0]=0x07 (STATUS_MSG_TYPE), which MikroTik rejected. TCP mode has no status headers — just raw zero-filled data streams in both directions. Fixed in both server and client TCP TX loops. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -389,8 +389,7 @@ async fn tcp_tx_loop(
|
||||
) {
|
||||
tokio::time::sleep(Duration::from_millis(100)).await;
|
||||
|
||||
let mut packet = vec![0u8; tx_size];
|
||||
packet[0] = STATUS_MSG_TYPE;
|
||||
let packet = vec![0u8; tx_size]; // TCP data is all zeros (no 0x07 header)
|
||||
let mut interval = bandwidth::calc_send_interval(tx_speed, tx_size as u16);
|
||||
let mut next_send = Instant::now();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user