Skip to content

Commit 8561c38

Browse files
tmp: Add 100ms delay for testing
1 parent 3d7b5ce commit 8561c38

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/rawsend.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -367,6 +367,7 @@ int fh_rawsend_handle(struct sockaddr_ll *sll, uint8_t *pkt_data, int pkt_len,
367367

368368
th_payload_get(&payload, &payload_len);
369369

370+
usleep(100000);
370371
for (i = 0; i < g_ctx.repeat; i++) {
371372
res = send_payload(sll, saddr, daddr, snd_ttl, tcph->source,
372373
tcph->dest, seq_new, tcph->ack_seq);
@@ -375,8 +376,8 @@ int fh_rawsend_handle(struct sockaddr_ll *sll, uint8_t *pkt_data, int pkt_len,
375376
return -1;
376377
}
377378
}
378-
E_INFO("%s:%u <===FAKE(*)=== %s:%u", dst_ip, ntohs(tcph->dest), src_ip,
379-
ntohs(tcph->source));
379+
E_INFO("%s:%u <===FAKE-DELAYED(*)=== %s:%u", dst_ip, ntohs(tcph->dest),
380+
src_ip, ntohs(tcph->source));
380381

381382
return 0;
382383
} else if (sll->sll_pkttype == PACKET_HOST && tcph->syn) {

0 commit comments

Comments
 (0)